Sometime, when you work with ABAP OO GUI objects like ALV grid, tree, HTML control,
etc, you want to trigger the PAI with a specific OKCODE without any interraction from
the user. This is quite simple, you just have to call this small method :
* Execute PAI of actual screen to update ALV
CALL METHOD cl_gui_cfw=>set_new_ok_code
EXPORTING
new_code = 'DUMMY'. "<<==-- Here you put the OKCODE that you want to dispatch* A flush is required to trigger the refresh
CALL METHOD cl_gui_cfw=>flush.
本文介绍了一种在ABAP中触发GUI PAI的方法,通过设置特定的OKCODE实现无用户交互更新ALV网格等GUI对象。只需调用提供的简单方法即可实现。
3214

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



