cancel
Showing results for 
Search instead for 
Did you mean: 

probleam facing when using export command

Former Member
0 Kudos

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,

Accepted Solutions (0)

Answers (2)

Answers (2)

nabheetscn
Active Contributor

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

Former Member
0 Kudos

Answered