Application Development and Automation 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: 
Read only

Control from screen to Function module

Former Member
0 Likes
690

Hi friends,

I am calling a screen from a function module. After the processing in the PAI of the screen is done, I need to revert back to the FM which called the screen at runtime.

Please help.

4 REPLIES 4
Read only

Former Member
0 Likes
585

Hi Soumya,

Just add "LEAVE TO SCREEN 0" in your PAI and you will get back to you FM.

Regards,

John.

Read only

Former Member
0 Likes
585

HI John,

Thanks for the tip. I have tried the same but, in the PAI I have three values that I need to pass to the FM. How do I do that?

Thanks in advance.

Read only

0 Likes
585

Hi Soumya,

I suppose you call the screen from within the FM? Then you just have to define your variables globally (in the TOP include of the FM) and your data is available in the FM.

Regards,

John.

Read only

Former Member
0 Likes
585

Thanks a lot John