Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
ennowulff
Active Contributor
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...
3 Comments