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 carry variable to another module pool program.

Former Member
0 Likes
1,069

Hi,

I am facing difficulty in passing variable from one module pool program to another module pool program.

I have screen in one module pool where user log in with log in-id and password.

if login is successful i am calling another transaction where user can perform his operations.

for this i want to transfer his login id . how can i do this?

thanks in advance.

Hari.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
660

hii Hari

you can use export and import parameter method for this

export first screen input data using export method

and import it in other screen and make sure your varibale names are same in both module pools

Regards

Gaurav

2 REPLIES 2
Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
660

Hi Hari,

Use system variable sy-uname to for userid/login id.

or use field symbols


DATA: field(50).

FIELD-SYMBOLS: <fs> TYPE any.


field = '(programname)fieldname'.
     ASSIGN (field) TO <fs>.


thanks

Read only

Former Member
0 Likes
661

hii Hari

you can use export and import parameter method for this

export first screen input data using export method

and import it in other screen and make sure your varibale names are same in both module pools

Regards

Gaurav