Skip to Content
avatar image
Former Member

How to export internal table data from 1 report to another report?

Hi Experts,

I am calling one report in another report .

i want the output of first report(fianl itab) to be stored in second reports itab.

so that from second report i can download that itab to EXcel.

so i want to know how internal tables are exported and imported between programs.

if any body knows the solution reply me as soon as possible.

Regards,

Imran

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jun 26, 2010 at 09:03 AM

    HI ,

    Use

    EXPORT itab to memory id 'MEM' . " This is from ur 1st program after the itab is created

    then use import in the 2nd program

    IMPORT itab from memory id 'MEM'.

    if u have any issues u can get help by writing export and pressing F1 on it .

    Hope this may help

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 26, 2010 at 09:10 AM

    Hi Imran,

    Export the content of the final table from first report by using EXPORT.

    Syntax:-

    EXPORT <itab>  TO MEMORY ID 'table'.     " If <itab> is without header line
    EXPORT <itab[]>  TO MEMORY ID 'table'.     " If <itab> is with header line
    

    Import the content from the memory id to itab in second report

    IMPORT <itab>  FROM MEMORY ID 'table'.     " If <itab> is without header line
    IMPORT <itab[]>  FROM MEMORY ID 'table'.     " If <itab> is with header line
    

    Now download the <itab> to excel.

    Regards

    DKS

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 26, 2010 at 05:58 PM

    Moderator message - Please do not ask or answer basic questions - thread locked Rob

    Add comment
    10|10000 characters needed characters exceeded