How to Schedule dependent Batch job in sequence in SM36?

How to Schedule dependent Batch job in sequence in SM36?

In the time of in-memory, HANA, Fiori, SAPUI5 and other future ABAP, we are pulling you back to the pre-notable time frame. We will discuss planning position which ought to set off after another occupation is finished. To put it plainly, we will perceive how to plan subordinate positions. How to Schedule dependent Batch job in sequence in SM36?

The inspiration for this article is a new encounter where a specialist with over 10 years of involvement couldn’t plan a bunch work which would set off following another occupation would finish.

What number of you have seen this blunder? Let’s start our practical on How to Schedule dependent Batch job in sequence in SM36?

“There is no such thing as work Xxxxxxx or doesn’t have status ‘planned’/delivered'”.

Job XXXXXXX does not exist or does not have status 'scheduled'/'released'

There are numerous unanswered inquiries in famous question and answer discussions for this issue.

Indeed, even following 10 years of SAP insight, on the off chance that you follow the beneath moves toward plan bunch occupations in succession, possibly you have never booked subordinate group occupations which should set off after a task finishes or you were consistently in projects where there were a few committed groups who did all cluster work booking.

Allow us to perceive how the vast majority of the ABAPers wrongly think a reliant bunch occupation ought to be planned.

1. Execute the first program in background mode.

First job is active

The expectation is, when the first active job (in this example, ZWM_UPDATE_SWBS_CHAR) is complete, another job should trigger.

2. Presently, plan the second program which ought to set off after the main program finishes. Go to t-code SM36. Give Occupation Name hit enter (or Steps) and give the Program Name and Variation and hit save.

1
2

3. It would show the variation screen. Hit Back symbol to return to the SM36 beginning screen. Presently hit Start Condition (you realize this is the spot which controls the trigger).

31

4. Hit After Occupation button. Give the primary work name which you planned for stage 1. Hit save and you expected your work was finished.

4

Oh no, you receive this message. “There is no such thing as work or doesn’t have status ‘booked’/delivered'”.

How did you veer off-track?
The response is in the mistake message itself. You can plan subordinate positions just if there should be an occurrence of ancestor occupations which are in status Booked or Delivered. Yet, your most memorable occupation was at that point in Dynamic status when you attempted to plan the second work subject to the first.

Right moves toward plan subordinate positions in arrangement.

Part I – Schedule First Job
1. Go to t-code SM36 to plan the principal work.
Give the work name for the principal program. Hit Step symbol or hit enter. Give the program name and variation. Hit Save.

7

You would be in Sync Rundown Outline screen. Hit back.

8

2. You are back to the underlying screen of SM36. Stir things up around town symbol. You would receive the message “Occupation saved with status: Booked”. Your most memorable occupation would be planned effectively.

9

3. Twofold check that the main occupation is in booked status. Hit Own Positions in the SM36 screen. Our occupation is in booked status.

10_0
10

You have done the initial segment accurately.

Part II – Release Second Job
Presently moves toward plan the reliant positions which ought to set off after the principal work is finished.

4. Go to t-code SM36 to plan the subsequent work.
Give the work name for the subsequent program. Hit Step symbol or hit enter. Give the program name and variation. Hit Save.

11

You would be in Sync Rundown Outline screen. Hit back.

12

5. You are back to the initial screen of SM36. Now hit Start Condition icon.

6. Hit, After Occupation button. Give the primary work name which you planned for the step above. Hit Check and afterward Save symbol.

13

7. You are back to the underlying screen of SM36. Hit Save symbol. You would receive message “Occupation saved with status: Delivered”.

14

8. Twofold check that the subsequent occupation is in delivered status. Hit Own Positions in the SM36 screen. Our subsequent occupation is in delivered status.

16_0

Part III – Trigger/Start first Job

9. Presently we really want to begin our most memorable work. Go to SM36. Hit Own Positions. Select your most memorable work and hit Delivery button. In the following screen, hit Quick button (or Date/Time assuming you need) and hit check and Save symbol.

15


Your most memorable occupation is set off. Check the underneath screen. According to it, the occupation is in Prepared status.

Presently stand by and watch!!! The second the main occupation finishes or drops, the subsequent occupation would quickly set off.

Check the two positions are finished. Likewise, note work 2 started soon after work 1 contended.

16

So in the future assuming somebody gripes that he is getting a blunder “Occupation doesn’t exist or doesn’t have status ‘booked’/delivered'”, you know precisely how to direct him. Blissful Sharing and Learning.

Thank you kindly for your time!!

 

YOU MAY LIKE THIS

SAP ABAP future in next coming years

Oracle VM Virtualbox Windows 11

ABAP Test Cockpit(ATC) – Introduction and Steps

WhatsApp WhatsApp us