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

Former Member
0 Likes
715

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
659

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

4 REPLIES 4
Read only

Former Member
0 Likes
659

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

Read only

Former Member
0 Likes
659

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.

Read only

Former Member
0 Likes
660

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

Read only

0 Likes
659

Hello Nitesh,

If the list fm LIST_TO_ASCI exceeds 255chars, then how to handle??

Regards,

Uma.