Welcome To My BLOG

This site is to give a brief idea for the abap learners who are looking for some real time programs .It consists of collection of programs from my side . I hope these programs are very much used for all of the learners. Please check the links for any information in ABAP.
Please vote for my Blog. And please input me on this mail addrssess.Email me

Share this link with your friends

http://www.rebtel.com/u/15163104576

For every friend who signs up using this link and makes a payment, we'll give you 8 €!


Wednesday, September 22, 2010

Triggering PAI manually

Description
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.

No comments: