Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

relaunching the pai

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

andreas_mann3
Active Contributor
0 Kudos

Hi,

look fm SAPGUI_SET_FUNCTIONCODE

regards Andreas

3 REPLIES 3

Former Member
0 Kudos

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.

andreas_mann3
Active Contributor
0 Kudos

Hi,

look fm SAPGUI_SET_FUNCTIONCODE

regards Andreas

0 Kudos

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