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

Avoid Write statement in a Submit.

former_member202771
Contributor
0 Likes
2,198

Hi Experts,

I am writing a report say R1 which has a submit statement to report R2, later R2 submits to R3.

Now there is a write statement in R3. So output of R3 is being displayed.

my problem is that I can make changes only in R1, due to my client standards.

Is there any way to skip this R3 output and show it as output for the R1?

I tried SUBMIT AS JOB, but we cannot use WITH LIST MEMORY with it.

PS : I want to catch output of R3 and show it as output for R1. And the requirement should be achieved without use of back button.

Thanks,

Anil

1 ACCEPTED SOLUTION
Read only

FredericGirod
Active Contributor
0 Likes
1,759

Hi Anil,

why can't you use the SUBMIT .... AND RETURN EXPORTING LIST TO MEMORY.  ?

regards

Fred

9 REPLIES 9
Read only

FredericGirod
Active Contributor
0 Likes
1,760

Hi Anil,

why can't you use the SUBMIT .... AND RETURN EXPORTING LIST TO MEMORY.  ?

regards

Fred

Read only

0 Likes
1,759

Hi Frederic,


SUBMIT .... AND RETURN EXPORTING LIST TO MEMORY.  Still displays the output of 3rd report. then I need to click back button to come back to the Report1.


I actually need to add few more changes in Report1 after this submit statement. And then dispaly the Write statements of third report.


Thanks,

Anil

Read only

0 Likes
1,759

Strange, when I use this statement in this http://scn.sap.com/docs/DOC-42253, I didn't have the output. I have the selection screen, but I ask for this ...

Fred

Read only

0 Likes
1,759

Hi Frederic,

Can you please comment if RETURN EXPORTING LIST TO MEMORY will work for bot Write statements as well as alv_grid format.

I believe this works for alv_grid format and not for Write formats. Please correct me if my understanding about Submit statement is wrong.

thanks,

Anil

Read only

0 Likes
1,759

For me there is not link between ALV and MEMORY

it's like a  NEW PAGE PRINT ON --> send to memory table   and you could catch this result

maybe you have something in your report3 that force the output ?

Read only

0 Likes
1,759

There is only write statements Frederic.

Even after using RETURN EXPORTING LIST TO MEMORY, I see output statements of Report3 and only when i press back, I am coming back to Report1.

Thanks,

Anil

Read only

0 Likes
1,759

Could you past the code to test it on an IDES ? 

Read only

0 Likes
1,759

Hi anil ,

            SUBMIT statement in report R2 should have EXPORTING LIST TO MEMORY AND RETURN.

'EXPORTING LIST TO MEMORY AND RETURN'  in report R1 will skip the list of R2 , not R3.

Read only

0 Likes
1,759

Hi Surendra,

Great. I missed this.

Thanks,
Anil