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 exporting list to memory and return; background execution

Former Member
0 Likes
1,513

Hello everybody,

i have a report A, that calls a report B using "SUBMIT B EXPORTING LIST TO MEMORY AND RETURN". Then in report A the result of report B is read from ABAP Memory using FM "LIST_FROM_MEMORY". Works.

But when i call Report A in background, the result of report B is written to SPOOL instead of ABAP memory. Seems there is no ABAP memory for the background execution ?

What can i do, do i have to use "SUBMIT B TO SAP-SPOOL AND RETURN" and then read the list from SPOOL ? Will this work in fore- and background execution ? Or is there another (more simple) way ?

Thank you,

Andreas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
913

Hi,

Use IMPORT/EXPORT or SET/GET parameters to read the variables instead of FM. For background execution, you need to use FMs, JOB_OPEN and JOB_CLOSE etc. and SUBMIT and RETURN.

1 REPLY 1
Read only

Former Member
0 Likes
914

Hi,

Use IMPORT/EXPORT or SET/GET parameters to read the variables instead of FM. For background execution, you need to use FMs, JOB_OPEN and JOB_CLOSE etc. and SUBMIT and RETURN.