调用cl_gui_cfw=>set_new_ok_code( pa_ucomm ) 即可。分类: SAP ABAP 好文要顶 关注我 收藏该文 微信分享 weiaini1220 粉丝- 0 关注- 4 +加关注 0 0 升级成为会员 posted @ 2023-03-06 09:57 weiaini1220 阅读(605) 评论(1) 编辑 收藏 举报 ...
(3) 定时器并不会自动触发PAI事件,如有必要则可以在handle_timer中CALL METHOD cl_gui_cfw=>set_new_ok_code来触发; (4) 虽然我们的例子是基于screen的,但是基于List也是完全可行的。
代码如下,需要说明的是,由于cl_gui_timer是SAPGUI的一个控件,必须使用CALLMETHODcl_gui_cfw=>set_new_ok_code来触发USER-COMMAND事件,而不是SETUSER-COMMAND语句,大家不妨试下。 <!--StartFragment --><!--StartFragment -->REPORTz04_gui_timer. CLASSlcl_event_handlerDEFINITIONDEFERRED. DATA:go_timerTYPE...
MODULE status_0100 OUTPUT. * SET PF-STATUS "STATUS_0". *CALL METHOD CL_GUI_CFW=>SET_NEW_OK_CODE * EXPORTING NEW_CODE = "PF21". * WRITE "PRESS TO BEGIN". PERFORM out."屏幕输出 LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 100. LEAVE SCREEN."离开屏幕 * LEAVE SCREEN. * SET TITLE...
* SET PF-STATUS "STATUS_0". *CALL METHOD CL_GUI_CFW=>SET_NEW_OK_CODE * EXPORTING NEW_CODE = "PF21". * WRITE "PRESS TO BEGIN". PERFORM out."屏幕输出 LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 100. LEAVE SCREEN."离开屏幕 ...
CALL METHOD cl_gui_cfw=>set_new_ok_code EXPORTING new_code = 'PF21'. LEAVE LIST-PROCESSING. AT PF26. PERFORM fig_move USING 'DOWN' CHANGING err. PERFORM out. IF err = 'X'. PERFORM fig_append. PERFORM check_full_line. PERFORM put_next_fig. ...
CALL METHOD cl_gui_cfw=>set_new_ok_code EXPORTING new_code = 'PF21'. LEAVE LIST-PROCESSING.AT PF26. PERFORM fig_move USING 'DOWN' CHANGING err. PERFORM out. IF err = 'X'. PERFORM fig_append. PERFORM check_full_line. PERFORM put_next_fig. ...
* Used for the sytem event call method cl_gui_cfw=>set_new_ok_code exporting new_code = 'SHOW'. * Read the position of the double click CALL METHOD sender->get_selection_pos IMPORTING from_line = from_line from_pos = from_pos to_line = to_line to_pos * = to_pos. Texts in ...
CALL METHOD cl_gui_cfw=>set_new_ok_code EXPORTING new_code = '&NTE'. endmethod. endclass. data: test type i, receiver type ref to lcl_receiver, timer type ref to cl_gui_timer. *---* START-OF-SELECTION. create object timer. create object receiver. set handler receiver->handle_fini...
*3)creategui-statusstatus_0andinsert *3.1)freefunctionalkeys *---* *f5pf21drop(f5) *f6pf22left(f6) *f7pf23rotate(f7) *f8pf24right(f8) *shift-f1pf25return *shift-f6pf26down *---* *3.2)buttons *---