03-27-2009 11:51 AM
Hi all,
How can I define global variable( Table ) which I can use when it come back to same user exit where I defined and stored some data.
What I mean is I want to define 1 global table.
In user exit when it comes I store some information. and again when it will come I will have that stored information so I can use it.
Thanks a lot in advance.
03-27-2009 12:04 PM
You can use EXPORT TO MEMORY ID and IMPORT FROM MEMORY ID Statement for this.
EXPORT T_ITAB FROM T_ITAB TO MEMORY ID 'ABC'.
IMPORT T_ITAB TO T_ITAB FROM MEMORY ID 'ABC.'
03-27-2009 12:21 PM
Hello,
the global table should be defined in the TOP include of the program where the user exits belongs to. Normally, there is an include provided for customer definitions. For example, in the sales document processing program SAPMV45A, you can define global variables and tables in the include MV45ATZZ.
Best regards
David