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 call a report from a report passing empty IT getting filled IT

Former Member
0 Kudos

Hi everyone,

I hope any genius will be able to help me out. Here is the scenario,.

When condition is true it should be able to pass pchobjid-low(from report 1) and empty IT to objec-objid(of report 2) and get back filled IT.

any idea!!!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Steps

1)

In the calling program use EXPORT.

data: begin of itab occurs 0 ,

matnr like mara-matnr,

end of itab.

EXPORT itab = itab TO MEMORY ID 'ZMEMORY'.

2)

In the called program report use IMPORT.

data: begin of itab occurs 0 ,

matnr like mara-matnr,

end of itab.

IMPORT itab = itab FROM MEMORY ID 'ZMEMORY'.

Thanks,

Naren

4 REPLIES 4

Former Member
0 Kudos

Have report 2 export the table to memory and have report 1 import it.

Rob

0 Kudos

Hi Rob Burbank ,

can you porvide some code? I never work with memory.

Former Member
0 Kudos

Hi,

Steps

1)

In the calling program use EXPORT.

data: begin of itab occurs 0 ,

matnr like mara-matnr,

end of itab.

EXPORT itab = itab TO MEMORY ID 'ZMEMORY'.

2)

In the called program report use IMPORT.

data: begin of itab occurs 0 ,

matnr like mara-matnr,

end of itab.

IMPORT itab = itab FROM MEMORY ID 'ZMEMORY'.

Thanks,

Naren

Former Member
0 Kudos

some code like this from passing program

*****

SUBMIT REPORT_NAME WITH pchobjid-low = objec-objid AND RETURN.

IMPORT INTERNAL_TABLE FROM MEMORY ID 'Z32'.

and from receiving program

******

FREE MEMORY ID 'Z32'.

EXPORT INTERNAL_TABLE to MEMORY ID 'Z32'.