I am searching for a way to edit items of the Application Toolbar of an SAP Dynpro dynamically via ABAP at runtime. More precisely, I would like to change the icon of such an item. Can anybody help me out with this?
Asked
Active
Viewed 2,311 times
1 Answers
3
Define a global field in your program TEXT_1 TYPE SMP_DYNTXT
. Define your function code text type in your GUI status as dynamic and enter your previously defined field.
At runtime assign your icon and text:
TEXT_1-ICON_ID = '@DL@'.
TEXT_1-ICON_TEXT = 'MY_TEXT'.
This is documented here.

andrecito
- 476
- 5
- 13
-
btw. can I also disable icons (grey out) via this mechanism? – Sebastian Dine Jul 18 '17 at 07:16
-
1For documentation. This helped me figuring out on how to disable/grey out elements of the status bar: https://archive.sap.com/discussions/thread/84401 – Sebastian Dine Jul 19 '17 at 07:47