call method cl_gui_cfw=>set_new_ok_code exporting new_code = 'XXX'. 4).需要重新处理新设置的OK_CODE CASE OK_CODE. WHEN ‘XXX’. …… ENDCASE. 1.2 调用方法 1.2.1 可调用常用方法列表 SET_REGISTERED_EVENTS 注册事件 CONSTRUCTOR 创建对象的时候调用 DELETE_TEXT 删除所有文本 EMPTY_UNDO_BUFFER ...
I now would like to try some alternative and have come across CL_GUI_CFW=>SET_NEW_OK_CODE CL_GUI_CFW=>FLUSH combination. However the examples I have are purely to catch user defined events that then trigger PAI events. In PBO, I'd like to trigger PAI event automatically without ...
调用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) 编辑 收藏 举报 ...
代码如下,需要说明的是,由于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...
CALL METHOD cl_gui_cfw=>set_new_ok_code EXPORTING new_code = 'PF21'. LEAVE LIST-PROCESSING. AT PF26. "F5 DOWN缓下 PERFORM fig_move USING 'DOWN' CHANGING err. PERFORM out. IF err = 'X'."如果方块到底了,则 PERFORM fig_append."出现新的方块 ...
* 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. ...
Within the event handler method, you can use the static method SET_NEW_OK_CODE of the global class CL_GUI_CFW to set a function code and trigger the PAI event yourself. After the PAI has been processed, the PBO event of the next screen is triggered. The advantage of using this techn...
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. ...
* force PAI processing with user function as ok_code cl_gui_cfw=>set_new_ok_code( e_ucomm ). ENDMETHOD. "handle_user_command *&---* *& METHOD handle_data_changed *&---* *& validate changes against duplicate keys and collect the protocol *& of the changes for...