Thursday, 10 June 2021 08:46

Bring SAPGUI mode to the front

Written by Enno Wulff
Rate this item
(0 votes)
Source https://blogs.sap.com/2021/06/11/bring-sapgui-mode-to-the-front/
“© 2020. SAP SE or an SAP affiliate company. All rights reserved.” “Used with permission of SAP SE”

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…

Continue reading here
Read 50 times

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.