Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

unable to export int. table

Former Member
0 Likes
890

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,

4 REPLIES 4
Read only

Former Member
0 Likes
815
Read only

former_member197622
Participant
0 Likes
815

Use:

export name from iTAB to memory ID 'xyz'.

Regards.

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
815

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

Read only

Former Member
0 Likes
815

This message was moderated.