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

Module pool

Former Member
0 Likes
1,123

Hi abapers,

I have calculated data in one screen and i want this data to be displayed in next screen.

Please guide me in this case

7 REPLIES 7
Read only

Former Member
0 Likes
1,099

Keep teh calculated data in Global internal table and use it in PBO of the second screen

Read only

Former Member
0 Likes
1,099

declare a global varible

pass dataa into into it

and use this variable in next screen.

Read only

former_member755502
Participant
0 Likes
1,099

Hi Jansi,

You can also use ABAP memory. For that you can use, EXPORT and IMPORT statements. You can search for actual syntax in SDN. Plenty of help is available. Through this, you can store, modify and fetch value in ABAP memory.

Regards,

Sambaran Ray.

Read only

Former Member
0 Likes
1,099

Suppose you are storing the Quantity (qty) value in the first screen for the field ztable-qty

i.e. qty = ztable-qty.

Now if you want to see the same quantity in the next screen , then

1. at first declare the qty as a global variable in the module pool report.

2. and then in the PBO of the next screen. write the code:

ztable-qty= qty.

Note: ztable-qty is basically the field name for the screen. It may change in your case.

regards,

Nilay

Read only

Former Member
0 Likes
1,099

This message was moderated.

Read only

awin_prabhu
Active Contributor
0 Likes
1,099

Hi friend,

Declare field name globally inside program.

In the next screen, in layout use same name for the screen field.

It will automatically reflect in PBO of next screen.

Thanks..

Read only

Former Member
0 Likes
1,099

Hi,

This is very simple

1.Declare the variable used for calculation on first screen as Global in the TOP include (as all the vraiables declared in TOP are available in alll the screen and subscreens)

2.Simply use the variable in PAI of screen one for calculation

3.Use the same variable used in Screen 1 ,in the PBO of screen 2 for display.

Hope this help you.

Pooja