01-22-2016 3:42 AM
Dear Sir,
We need to declare a variable in a ABAP program . During the execution of ABAP program , an USER-EXIT is being called . We need to access this ABAP program variable value in the called USER-EXIT .
I request members to kindly guide me to address this problem please .
With Regards
B Mittal
01-22-2016 3:49 AM
Hi,
you can use EXPORT and IMPORT statements. Export the variable to the memory then import it in your user exit.
In your main program:
EXPORT <VARIABLE>TO MEMORY ID 'ZABAPmemory'.
In USER-EXIT
declare variable1 of same data type
IMPORT <VARIABLE1> FROM MEMORY ID 'ZABAPmemory'.
thanks!!
01-22-2016 3:46 AM
01-22-2016 3:49 AM
Hi,
you can use EXPORT and IMPORT statements. Export the variable to the memory then import it in your user exit.
In your main program:
EXPORT <VARIABLE>TO MEMORY ID 'ZABAPmemory'.
In USER-EXIT
declare variable1 of same data type
IMPORT <VARIABLE1> FROM MEMORY ID 'ZABAPmemory'.
thanks!!