REPORT ZTEST_INVISIBLE_TRICK .*************************************************************
START-OF-SELECTION.
*处理前使SAPGUI的屏幕在用户屏幕列表中不可见
CALL FUNCTION 'SAPGUI_SET_PROPERTY'
DESTINATION 'SAPGUI'
EXPORTING
property = 'VISIBLE'
value = ' '
EXCEPTIONS
system_failure = 1
communication_failure = 2
OTHERS = 3.
************************************************************************
DO 1000 TIMES.
*doing some work which takes lot of time
DO 1000 TIMES.
ENDDO.
*Resetting time counter of dialog process so that time-out does not
*happen. Use this fm within your programs at appropriate locations to
*reset time counter.
CALL FUNCTION 'TH_REDISPATCH'.
ENDDO.
*处理完成后使SAPGUI屏幕可见
CALL FUNCTION 'SAPGUI_SET_PROPERTY'
DESTINATION 'SAPGUI'
EXPORTING
property = 'VISIBLE'
value = 'X'
EXCEPTIONS
system_failure = 1
communication_failure = 2
OTHERS = 3.
Trackback: http://tb.blog.youkuaiyun.com/TrackBack.aspx?PostId=1198383
本文介绍了一种在SAPGUI中进行屏幕管理的方法,通过编程方式让SAPGUI屏幕在处理长时间任务时变得不可见,以避免干扰用户进行其他操作。处理完毕后,屏幕会再次变为可见状态。
469

被折叠的 条评论
为什么被折叠?



