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

passing import parameters into screen

Former Member
0 Likes
1,103

hi,

i got requirement that is i am calling one screen in function module.

how can i pass import paramater to that screen,inorder to use in PAI.

can any give solution regarding this.

points awarded to right answer.

regards

suneetha

1 ACCEPTED SOLUTION
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
843

HI,

IF you need the data that is passed to a FM in a screen then this has to be stored in some global place that is available for the screen. Ideally that will be the TOP include of the Function group.

SO you need to get the data from the import params and then assign it to global data declared in the top include then use it in the screen.

Regards,

Sesh

hi,

i got requirement that is i am calling one screen in function module.

how can i pass import paramater to that screen,inorder to use in PAI.

can any give solution regarding this.

points awarded to right answer.

regards

suneetha

4 REPLIES 4
Read only

Former Member
0 Likes
843

Suneetha,

If the import parameters are defined in the TOP include of the Function group and the screen is created in the same Function Group, the import variables will have data available on the screen also..... Just check what variables are passed to the FM while calling it.... i.e. in CALL FUNCTION command... those variables will have values in the PAI event of the screen as well.

Any confusion write me back.

Susanth.

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
844

HI,

IF you need the data that is passed to a FM in a screen then this has to be stored in some global place that is available for the screen. Ideally that will be the TOP include of the Function group.

SO you need to get the data from the import params and then assign it to global data declared in the top include then use it in the screen.

Regards,

Sesh

Read only

0 Likes
843

hi,

thanks for u r answer.

Read only

Former Member
0 Likes
843

Suneetha,

1. For this you can use SAP memory or ABAP memory concept.

SAP memory :SET PARAMETER & GET PARAMETER.

ABAP Memory : EXPORT PARAMETER & IMPORT PARAMETER.

2. Whatever the parameter you want to assign a variable on screen,

assign the require value to name of the selection screen parameter before calling the screen.

Pls. reward if useful.