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 pass variable value into module pool scren from a report program

Former Member
0 Likes
2,264

Hi,

I have created a report program with selection screen parameters. when the inputs are filled and executed it generates the purchase evaluation sequence number. i have created a screen and passed that number to display on it with print option and back option buttons as required. but variable alone is not getting passed from the program to module pool screen. buttons are working fine. value alone is not coming. can anyone please help me.

regards,

sudha.

4 REPLIES 4
Read only

Former Member
0 Likes
1,198

Hi ,

you need to declare that variable param at Global.

sample code...



report xyz....

data: g_no type ekko-ebeln.


start-of-selection...

g_no = '12345'.

call screen 0100.


Read only

Former Member
0 Likes
1,198

Hi Sudha,

Once check the variable name in the report program and sceen field name are same or not before call screen statement.

Thanks

Haritha Teegala

Read only

0 Likes
1,198

hi,

Thank you. I got the answer after assigning the variable with the name as it is in program (in screen layout get from program).

regards,

sudha.

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,198

If both report and screen are created in one program make your field as global one or else if they are in different program use concept of parameters ids

Nabheet