Skip to Content
avatar image
Former Member

export/import memory ID in OO

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Aug 31, 2007 at 07:09 AM

    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'.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 31, 2007 at 07:13 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 31, 2007 at 07:20 AM

    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>

    Add comment
    10|10000 characters needed characters exceeded