08-10-2005 1:03 PM
i have a table control in a screen, and when i save the screen i need to repeat the code that is in the PAI, so now, i need to play enter for actualize the data, is there any function or mode to relaunch the pai?
Thanks in advance
08-10-2005 1:35 PM
08-10-2005 1:09 PM
HI carl,
U've mentioned that when the screen is saved u gotto trigger pai, rite?
This is simple, U would have assigned uder command to your save button; So when u press save button, PAi will be triggered automatically. All that u gotto do is, Catch that usercommad in ur PAI and write ur logic for that.
module ucomm INPUT.
Case sy-ucomm.
when 'SAVE'.
Do ur coding.
endcase.
u can even trigger pai using, set user-command statement.
So use it appropraitely.
Lemme know u solved it by giving points.
With regards,
praveen.
08-10-2005 1:35 PM
08-10-2005 1:40 PM
Hi Carl,
and write your data selection / display logic in PBO, not in PAI.
Then the follow screen after saving = same screen runs through PBO and refresh is possible without additional enter.
Regards,
Christian