problem in module pool
Hi gurus ,
I am creating a module pool program. I am updating some fileds on some condition. In a special case after i update a variable i want the PBO to be called explicitly so that the values will be reflected on the scree. If anybody has any idea please suggest . code will be helpful.
Amarendra Sahoo replied
To trigger the PBO you need to trigger the PAI explicitly. To trigger the PAI by yourself you can use the method SET_NEW_OK_CODE of the global class CL_GUI_CFW to set a function code.
The advantage of using this technique is that the event handler method is executed automatically and there are no conflicts with the automatic input checks associated with the screen. The disadvantage is that the contents of the screen fields are not transported to the program, which means that obsolete values could appear on the next screen. You can work around this by using the SET_NEW_OK_CODE method to trigger field transport and the PAI event after the event handler has finished.
Hope this will be helpful for you.