‎2010 Oct 22 10:39 AM
Hello,
I am calling zreport1 giving alvlistoutput in background using SUBMIT zreport1 and return from another zreport. After generating spool output i want the itab alv contents obtain in reuse_alv_list_display to be displayed in zreport. I tried through EXPORT/IMPORT itab, but not getting result.
Please help!
Thanks.
‎2010 Oct 22 2:30 PM
Hi Uma,
First you need to execute second report using SUBMIT statement like...
SUBMIT zreprt1 WITH role = 'X'
WITH f_role IN r_role
WITH fdate EQ fdate
WITH tdate EQ tdate
EXPORTING LIST TO MEMORY
AND RETURN.Then use FM LIST_FROM_MEMORY to export the data from memory to abaplist internal table.
Then use FM LIST_TO_ASCI to convert data into ASCII format and then modify the table content got from above FM according to your requiremant.
Thanks
Nitesh
‎2010 Oct 22 11:11 AM
You have to call a report usding SUBMIT ZREPORT AND RETURN, and in calling report you have to Export statement to store data in memory after return you have to receive the data using import it_pos FROM MEMORY ID 'TAB' statment.
Regards
‎2010 Oct 22 2:21 PM
Hi,
Use FM 'LIST_TO_MEMORY' to save the output into memory and
then use FM 'LIST_FROM_MEMORY' to get this list output
and save the ouput in some table and then print the table.
Thanks,
Anmol.
‎2010 Oct 22 2:30 PM
Hi Uma,
First you need to execute second report using SUBMIT statement like...
SUBMIT zreprt1 WITH role = 'X'
WITH f_role IN r_role
WITH fdate EQ fdate
WITH tdate EQ tdate
EXPORTING LIST TO MEMORY
AND RETURN.Then use FM LIST_FROM_MEMORY to export the data from memory to abaplist internal table.
Then use FM LIST_TO_ASCI to convert data into ASCII format and then modify the table content got from above FM according to your requiremant.
Thanks
Nitesh
‎2010 Oct 24 1:18 AM
Hello Nitesh,
If the list fm LIST_TO_ASCI exceeds 255chars, then how to handle??
Regards,
Uma.