2010 Sep 03 2:09 PM
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,
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,
2010 Sep 03 2:34 PM
Hi Try
EXPORT TAB = ITAB TO DATA BUFFER XSTR.Also refer
http://help.sap.com/saphelp_nw70/helpdata/en/79/c5549db3dc11d5993800508b6b8b11/frameset.htm
2010 Sep 04 1:36 AM
2010 Sep 05 9:27 PM
here is the solution .
EXPORT ITAB from ITAB to memory id 'ZTEST'.
IMPORT ITAB TO ITAB FROM MEMORY ID 'ZTEST'.
MAKE SURE INTERNALTABLE NAME ARE SAME DURING EXPORT AND IMPORT.
Nippy
2011 Jan 02 6:00 PM