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

Problem in Background Execution

former_member212001
Participant
0 Likes
427

Hi All,

My Report is creating background jobs. When I am executing in foreground its working fine.

But when I am executing the same code in background, continuously job is getting created

for every second and getting finished which resulting my server down.

my report contains 2 radio buttons for single data stream processing and multi data stream

(split input data stream into multiple jobs assigned to different work processes) and I executed

report with multi data stream in background which created more jobs.

When I am debugging my background job, I have found that:

1)  After initialisation part in my program, standard code ( function module CONVERSION_EXIT_ISOLA_OUTPUT)

is getting triggered. After function module CONVERSION_EXIT_ISOLA_OUTPUT, at selection-screen output of my program is triggering .

When its reaching at selection-screen radio button single data stream is changed to X and multi data stream got cleared.

2) And also perform output_job ( job-open , submit to sap-spool spool parameters , job close ) which is creating job is in loop.

but that loop is having only 4 entry.so only four job has to get created.

But in foreground its creating 4 jobs as expected.

Please help me to understand how numerous job is getting created in background execution.

Regards,

Priya

1 REPLY 1
Read only

alex_campbell
Contributor
0 Likes
348

It sounds like the 'X' in the radiobutton parameter is what stops the spawned jobs from spawning their own jobs, is that correct? If so, than that may be the culprit. When you execute a report with radiobuttons in teh foreground, one of the radiobutton parameters is always initialized to 'X'. This is not the case when executing in the background. If you're not explicitly setting one of the radiobutton parameters to 'X' in your spawned job, none of them will be set to 'X'.