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

Submit/Export/Import in a report

Former Member
0 Likes
1,172

Hi all ,

I have a report ZPP and know i am to developing a new report 'ZPP01' where i want to use the final internal table ITAB of 'ZPP' how to directly get the value of Final ITAB of ZPP into my report 'ZPP01' so that i use it's value directly in new report.

Thanks in advance,

Vivek

Hi all ,

I have a report ZPP and know i am to developing a new report 'ZPP01' where i want to use the final internal table ITAB of 'ZPP' how to directly get the value of Final ITAB of ZPP into my report 'ZPP01' so that i use it's value directly in new report.

Thanks in advance,

Vivek

2 REPLIES 2
Read only

Former Member
0 Likes
626

Hello Vivek,

For better understanding about export and import then see the below sample programs.

Create one program and paste below code :

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'.

Now create one more program and paste below code :

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.

Now finally you will have idea about how to pass the data between two programs.

Thanks

Seshu

Read only

Former Member
0 Likes
626

Check this thread for more details, this will help oyu in your design.

;�

You can also use SUBMIT, this link expains the same with example.