on 09-03-2010 11:33 AM
Hi,
In normal ABAP programming, an internal table is stored in the memory as shown below:
EXPORT itab TO MEMORY ID 'store_itab'.
But when i try to write the same code in a method of a global class, i get an error saying:
"EXPORT var_1,.......var_n TO MEMORY.........is not supported in OO context.
Use EXPORT name_1 from var_1,.......name_n from var_n TO MEMORY.......instead.........".
How can i store this internal table itab into memory.
Thanks a lot in advance for helping.
Best Regards,
Use th efollowing syntax and example.
Let says it_tab is the table to be exported.then write
Export it_tab from it_tab to memory id 'ZTEST'.
Import it_tab to it_tab1 frommemoryid 'ZTEST'.
Make sure Import and export shall have the internal table name.
Hope it Helps
Nabheet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Answered
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.