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

PROBLEMS WITH BACKGROUND JOB SCHEDULING WITH MULTIPLE STEPS

Former Member
0 Likes
1,825

HI Guys

Hope you are all doing well and good !!

Can you please update me is there any way to give a Constrain while Defining Multiple Steps for a Particular Job in SAP

i.e For Example..Until Unless STEP 2 is finished STEP 3 should not be executed

Please update me if you have any answers

Thanks in advance

Regards

Shivakumar Bandari

4 REPLIES 4
Read only

0 Likes
1,193

Hi Shiva,

When you define steps in a background Job, they get executed in the sequence mentioned.

Step2 will not get executed unless and untill step1 has been succesfully executed and so on. This is by default.

Also, you can use AFTER JOB as your start condition.....this is just a workaround....

Create different Background jobs and select START CONDITION as the PREVIOUS JOB NAME that you want it to depend upon.....

Best Regards,

Ankit Kumar

Read only

Former Member
0 Likes
1,193

Hi Shiva,

Defining the background job using SM36 will be executed in sequential order. Step 1, Step 2 & Step 3. Output of Step 1 might be the input for the Step 2 and output of Step 2 might be input for Step 3. So they will be executed in sequential order.

Let me know if more details are required.

Regards

Sravan

Read only

0 Likes
1,193

Thanks fro the Reply Shravan and Ankit

I will eloborate my query

I have step1 which Creates a Session for Sales order using a ZPROGRAM and Step2 to process that session using RSBDCSUB and Step 3 to update the order created in Ztable and also it updates the header and item text, created for the sales order

When I Schedule the Job with this three steps. It looks like JOB log shows that Step3 has started successfully but there is no spool generated and also the ZTABLE with the new Order created is not getting updated. It is as simple as step3 as not at all run

When I Run the STEP3 as the seperate Job a Spool gets created for it and also it updates ZTABLE,Header texts and Items texts successfully.

In this Process I have understood that this is because of my second step being a processing of session and third started which could not find input from the second Step hence it failed to update anything.

I know there is an option in REDWOOD Software to keep the constraint..which I cannot find in SAP.

Please update me if you have any updates or if you faced similar senario's or issues

Regards

Shivakumar

Read only

0 Likes
1,193

Hi Shiva,

I have not faced any such scenario so not sure how will this workout, but you can try the following:

1) Create 1st Background Job with STEP 1 and STEP2

2) Create 2nd Background Job with STEP 3 alone in it,

Make sure that you assign 1st background Job as the start condition for the 2nd Background Job.

Hope This Helps.

Regards,

Ankit Kumar