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

How to call a Dialog Program from another Dialog Program

Former Member
0 Likes
1,295

Dear All,

How can I call a dialog program with return value from another dialog program?

Regards,

Alok.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
952

Hi Alok,

1. Insted of creating 2 different Dialog program. It's good to create as many screens as you want in same module pool program. Any way you can use the different TCODE for each screen.

2. Another and The best way is to create a function group and then inside function group use the function 2 module... In the function group define a global variable which will be present for both the function group if they are getting executed in sequence. and inside the Function Module call the screens using command " call screen <screenno>".

3. You can use set / get parameter to pass values of a field between two dynpro program.

4 REPLIES 4
Read only

Former Member
0 Likes
953

Hi Alok,

1. Insted of creating 2 different Dialog program. It's good to create as many screens as you want in same module pool program. Any way you can use the different TCODE for each screen.

2. Another and The best way is to create a function group and then inside function group use the function 2 module... In the function group define a global variable which will be present for both the function group if they are getting executed in sequence. and inside the Function Module call the screens using command " call screen <screenno>".

3. You can use set / get parameter to pass values of a field between two dynpro program.

Read only

Former Member
0 Likes
952

Hi Alok,

What Darshan advised is the best way to do it, but if you really cannot put them in a function group then you could also use export/import from memory id if the two transactions will be called in succession in the same session...or you could store the values in a temporary transparent table then delete after retrieval of the second program...

Read only

0 Likes
952

Hi,

Use Call transaction TCODE.

Regards

Arun

Read only

Former Member
0 Likes
952

use call transaction