Application Development 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: 

How to export an internal table to another report while submitting ..

Former Member
0 Kudos

Hi ,

I have 2 reports ZR1 and ZR2 . Both contains an Internal table with same structure IT_DATA. After the output of ZR1 comes,I am submitting ZR2 at a click event. The requirement is to pass the data from IT_DATA from ZR1 to IT_DATA of ZR2 while submitting ZR2.

Hope that the requirement is clear.

Thanks & regards,

Shankar

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You can do this using the EXPORT and IMPORT statements.

In your first program, before submitting the second program, export it to memory.

  export it_data = it_data
              to memory id 'ZTESTRICH'.

In you submitted program, import it.


  import it_data = it_data
              from memory id 'ZTESTRICH'.

Regards,

Rich Heilman

4 REPLIES 4

Former Member
0 Kudos

Hi

You have to use IMPORT/EXPORT statament

REPORT ZREPORT1.

DATA: ITAB LIKE .....

EXPORT ITAB TO MEMORY ID 'ZZZ'.

SUBMIT ZREPORT2.

REPORT ZREPORT2.

DATA ITAB LIKE

INITIALIZATION.

IMPORT ITAB FROM MEMORY ID 'ZZZ'.

Max

Message was edited by: max bianchi

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You can do this using the EXPORT and IMPORT statements.

In your first program, before submitting the second program, export it to memory.

  export it_data = it_data
              to memory id 'ZTESTRICH'.

In you submitted program, import it.


  import it_data = it_data
              from memory id 'ZTESTRICH'.

Regards,

Rich Heilman

Former Member
0 Kudos

Hi,

It can be done with the help of Import/Export parameters.

rgds

Rakesh

naimesh_patel
Active Contributor
0 Kudos

Hello,

IN ZR1,

EXPORT itab = itab to memory id 'ZTEST'.

SUBMIT ZR2.

IN ZR2,

IMPORT itab = itab from memory id 'ZTEST'.

Regards,

Naimesh