‎2014 Dec 15 6:43 AM
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.
‎2014 Dec 15 6:49 AM
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
‎2014 Dec 15 6:48 AM
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
‎2014 Dec 15 6:49 AM
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