Technical Articles
Bring SAPGUI mode to the front
Although the SAPGUI is called to be dead, there are sometimes new things to learn. this week I learned how to bring a SAPGUI mode to the front. The code has been found in the transport organizer where it is needed to bring the popup for request selection when editing a dynpro in the screen painter.
The following demonstration report can be started in two overlapping SAPGUI modes with about one second time shift.
REPORT zz_activate_gui_mode.
DO 10 TIMES.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
text = |Mode: { sy-modno } Index: { sy-index }|.
CALL FUNCTION 'SAPGUI_SET_PROPERTY'
DESTINATION 'SAPGUI'
EXPORTING
property = 'ACTIVATE'
value = 'X'
EXCEPTIONS
OTHERS = 0.
WAIT UP TO 3 SECONDS.
ENDDO.
You will see that rotationally the next mode will come to front.
Maybe you will find a use for this functionality…
just tried. interesting
Thanks for sharing.
It reminds me to the invisible trick, which I've seen about 15 years ago and it's really cool 🙂
Interesting indeed ! Thanks for sharing