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

Call another report with internal table

Former Member
0 Likes
1,018

Hello Everyone,

I am facing one strange situation.

From my report say A, i want to call another report say B.

From report A, i have internal table itab.

I want to send the contents of this internal table itab to report B.

Please let me know how i will get the contents of internal table itab in report B.

Thanks in advance.

Regards,Tarun

7 REPLIES 7
Read only

Former Member
0 Likes
907

Hi !

What you can do is the following.

You can put your internal table into the "ABAP-Memory" using the command Export...TO MEMORY (See help on the EXPORT command).

Then, in your other report, you can do an IMPORT....FROM MEMORY (See help on the IMPORT command).

That will work fine...

Regards

Rainer

Some points would be nice if that helped a bit...

Read only

Former Member
0 Likes
907

Hi,

1. EXPORT the ITAB and IMPORT it in the second program.

2. If its a part of the selection screen, then you can as well pass that via SUBMIT statement.

Regards,

Ravi

Note : Please mark all the helpful answers

Message was edited by: Ravikumar Allampallam

Read only

Former Member
0 Likes
907

Hi tarun,

1. Simple.

2. Program A : ZAM_TEMP00

Program B : ZAM_Temp0

3. Program A will call B

(In B we will get the contents

of ITAB present in program A)

4.

*----


ZAM_TEMP00

report abc.

data : itab like table of t001 with header line.

select * from t001 into table itab.

<b>export itab to memory id 'ITAB'.</b>

submit zam_temp0 and return.

*----


ZAM_TEMP0

report abc.

data : itab like table of t001 with header line.

<b>import itab from memory id 'ITAB'.</b>

break-point.

regards,

amit m.

Read only

Former Member
0 Likes
907

Hi Tarun.

In the first report

Data : begin of itab occurs 0,

--

end of itab.

IMPORT itab[] TO MEMORY ID 'PAR'.

Second report

Data : begin of itab occurs 0,

--

end of itab.

EXPORT itab[] FROM MEMORY ID 'PAR'.

Thanks,

Susmitha

Read only

Former Member
0 Likes
907

Hi,

check this Thread....

Regards

vijay

Read only

Former Member
0 Likes
907

Hi Tarun,

If you want to build the report B from the contents of ITAB in report A, you can use the following statement in

ABAP.

<b>INSERT REPORT 'B' FROM itab.</b>

Regards,

Amit Mishra

Read only

former_member480923
Active Contributor
0 Likes
907

Hi tarun,

Try this

ZREPRTA.

Data: itab type standard table of VBAK initial size 0.

...
...

submit ZreportB via selection screen 
                and return

Hope that helps

Anirban