Google Search - Blog...........

ABAP - Disapperaing SAPGUI For Some Defined Time & Then Bringing It Back Using 'SAPGUI_SET_PROPERTY'

Here is an example for disappearing the SAPGUI for some defined time , and then bringing the SAPGUI back .

REPORT ZSAPGUI .

START-OF-SELECTION.

*SAPGUI screen vanishes from user screen list

CALL FUNCTION 'SAPGUI_SET_PROPERTY'

DESTINATION 'SAPGUI'

EXPORTING

property = 'VISIBLE'

value = ' '

EXCEPTIONS

system_failure = 1

communication_failure = 2

OTHERS = 3.

* make disappering the sapgui for the below time

WAIT UP TO 10 SECONDS.

CALL FUNCTION 'TH_REDISPATCH'.

*wake up the SAPGUI screen

CALL FUNCTION 'SAPGUI_SET_PROPERTY'

DESTINATION 'SAPGUI'

EXPORTING

property = 'VISIBLE'

value = 'X'

EXCEPTIONS

system_failure = 1

communication_failure = 2

OTHERS = 3.

No comments:

Post a Comment