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

Reports

Former Member
0 Likes
524

Hi Experts,

This is my scenario.

report first .

write : ' first report'.

report second.

write : ' second report'.

submit first.

report third.

submit first exporting list to memory and return.

call function 'list_from_memory'.

listobject = t_listobject.

call function 'write_list'

listobject = t_listobject.

is it possible to access "write" statement from report first and second in report three from the abap memory?? if so, guide me.

Thanks in advance,

Regards,

sabari

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
503

Hello,

U can able to acess the write staement from other programs.

So there is no need to export the list to memory.

Just do this.

Report third.
submit second.

The output is:
second report.

first report.

If useful reward.

VAsanth

3 REPLIES 3
Read only

Former Member
0 Likes
504

Hello,

U can able to acess the write staement from other programs.

So there is no need to export the list to memory.

Just do this.

Report third.
submit second.

The output is:
second report.

first report.

If useful reward.

VAsanth

Read only

Former Member
0 Likes
503

hi expert,

i need both the write statements in a single output list..

how to do?

Thanks in advance,

Regards,

sabari

Read only

Former Member
0 Likes
503

Check with below program :

REPORT ZTEST_AMEM1.

tables : lfa1.

data : begin of i_lfa1 occurs 0 ,

lifnr like lfa1-lifnr,

name1 like lfa1-name1,

land1 like lfa1-land1,

end of i_lfa1.

start-of-selection.

select lifnr

name1

land1 from lfa1

into table i_lfa1 up to 100 rows.

  • Export

export i_lfa1 to memory id 'SAP'.

submit ztest_amem2 and return.

write:/ 'hello'.

&----


*& Report ZTEST_AMEM2

*&

&----


*&

*&

&----


REPORT ZTEST_AMEM2.

data : begin of j_lfa1 occurs 0,

lifnr like lfa1-lifnr,

name1 like lfa1-name1,

land1 like lfa1-land1,

end of j_lfa1.

start-of-selection.

import i_lfa1 to j_lfa1 from memory id 'SAP'.

loop at j_lfa1.

write:/ j_lfa1-lifnr,j_lfa1-name1,j_lfa1-land1.

endloop.

Thanks

Seshu