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 program exporting list to memory and return in background

Former Member
0 Likes
1,181

Dear Experts,

I am using the following code in one of my program to get opening and closing stock of a material.

SUBMIT RM07MLBD
         WITH MATNR IN LOC_R_MATNR
         WITH WERKS IN LOC_R_WERKS
         WITH DATUM IN LOC_R_DATE
         WITH PA_SUMFL = WL_X
         AND RETURN
         EXPORTING LIST TO MEMORY.

The program is working fine when executed in foreground. however when executed in background the job is cancelled. I tried to debug in background through SM50 and found that the program is terminated(No short dump but debug screen is closed and i dont see this program running in SM50) when the above code is executed.

I found in the forum that when an ALV report is submitted in background it does not work. In my case the standard program is producing an ALV list (not ALV grid though).

How would i avoid this situation because the program i am submitting is a standard program.

What is the best solution to avoid from background jobs being cancelled when the above code is executed. Is there an alternate way that i can use to submit the program and get data.

Thanks in advance.

Rajesh.

4 REPLIES 4
Read only

Former Member
0 Likes
660

Any inputs on this?

Read only

Former Member
0 Likes
660

Hi Rajesh,

Just excute your standard program with the same input in back ground mode and check

out put is coming or not .

If output is not coming search by sy-batch and make the break points there and Ideantify

the problem.

When you execute the standard program in back ground mode If the output is come it should in your Zreport also.

I tried in my system in background mode also the output is coming for me.

Thnx,

Sam.

Read only

Former Member
0 Likes
660

Solved by myself.

Read only

0 Likes
660

Hi Rajesh,

I meet the same problem with you.

Would you like to share the solution ?

Thanks and Best Regards,

Colin.