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

export/import memory ID in OO

Former Member
0 Likes
4,632

I tried to use the conventional way of EXPORT itab TO MEMORY ID 'itab' and

IMPORT itab FROM MEMORY 'itab' but it is not working in object oriented environment. How to write the correct syntax in object oriented environment?

Thanks

I tried to use the conventional way of EXPORT itab TO MEMORY ID 'itab' and

IMPORT itab FROM MEMORY 'itab' but it is not working in object oriented environment. How to write the correct syntax in object oriented environment?

Thanks

3 REPLIES 3
Read only

Former Member
0 Likes
2,041

try this

data: itab type yourstructure.

itab-yourfield1 = 'X'.

export zzz from itab-yourfield1 to memory id 'mem'.

import zzz to itab-yourfield2 from memory id 'mem'.

Read only

Former Member
0 Likes
2,041

Hi

In oops,its not possible directly to itab to itab.

you should use work area

export .......itab ....wa_itab..

import wa_itab from itab..

check correct syntax.normally you should have work area in oops.

Thanks

Read only

varma_narayana
Active Contributor
0 Likes
2,041

Hi..

Internal table with Header line is not Supported in ABAP OO.

So it may be the reason why you are getting an error.

Declare your ITAB without header line.

Try the Same code.

<b>reward if Helpful</b>