ITPub博客

首页 > 数据库 > 数据库开发技术 > (转)ABPA UI--Triggering PAI manually 通过设置新的OKCODE、触发PAI

(转)ABPA UI--Triggering PAI manually 通过设置新的OKCODE、触发PAI

原创 数据库开发技术 作者:mmccking 时间:2007-09-10 20:20:07 0 删除 编辑
ABPA UI--Triggering PAI manually [@more@]
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.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8356764/viewspace-968807/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
你大爷永远是你大爷

注册时间:2008-03-11

  • 博文量
    94
  • 访问量
    377385