SAP LSMW batch scheduling

Quick links

You are using LSMW (Legacy System Migration Workbench), in Batch Input Recording mode (Fig 1), and want to make an update on several objects, which may take a lot of time, out of business hours ? This, without having to turn on your computer at midnight ? See below how to schedule batch job in sap.

The best way is to use a schedule program with a sap background job that will handle the batch management of the sap batch job for you, with corresponding job scheduling tools.

As a prerequisite, it is necessary to know how to create batch in sap, how to use lsmw, to SAP create LSMW, and the lsmw steps in sap mm. How to use lsmw in sap is necessary in order to use the sap job scheduling tools. Reminder : the lsmw tcode is LSMW.

SAP LSMW batch scheduling : Fig 1 : Batch Input Recording
Fig 1 : Batch Input Recording

This is possible, and even easy using the job scheduler.

To do so, you have several possibilities, after your (or yours) Batch Input Session have been created (Fig 2) :

- Schedule all sessions created under a given Session Name,

- Schedule a single session based on its Queue ID.

SAP LSMW batch scheduling : Fig 2 : Input Session
Fig 2 : Input Session

When you got the information (Session name or Queue ID), go in the ABAP Editor (SE38) (Fig 3), enter the choosen program name, RSBCBTC or RSBDCSUB, and execute it.

1 - several sessions by RSBDCSUB

SAP LSMW batch scheduling : Fig 3 : ABAP Editor
Fig 3 : ABAP Editor
SAP LSMW batch scheduling : Fig 4 : Batch Input : Process All Sessions
Fig 4 : Batch Input : Process All Sessions

Once in the Batch Input: Process All Sessions, you just have to enter your Session Name (Fig 4) in the right place.

You can, and very certainly will have to, select only the sessions that you just created, by entering the sessions creation time slot. This while verifying that the "New" checkbox is checked.

2 - a single session by RSBDCSUB

SAP LSMW batch scheduling : Fig 8 : SE38 RSBCBTC
Fig 8 : SE38 RSBCBTC

If you choose to plan only a Batch Input Session, you just have to enter its Queue ID (Fig 9) in the corresponding field under screen Utility Report For Batch Input.

SAP LSMW batch scheduling : Fig 9 : Utility Report for Batch Input
Fig 9 : Utility Report for Batch Input

Once your sessions are selected, you may want to plan their execution.

To do so, in Program menu, select "Execute in Background F9" (Fig 5). Choose then a printer (Fig 6) (do not hesitate to select a virtual one if you do not want to print anything), validate.

SAP LSMW batch scheduling : Fig 5 : schedule background job in sap
Fig 5 : schedule background job in sap
SAP LSMW batch scheduling : Fig 6 : Select printer
Fig 6 : Select printer

You can now schedule a the run batch job using the batch job scheduling tools (Fig 7). Click on "Date/Time", and enter the starting hour - which will not be exact, as your execution will depend on other active process on the system - and other options.

SAP LSMW batch scheduling : Fig 7 : Execution scheduling
Fig 7 : Execution scheduling

Click then on save, and voilà !

To go further

The SAP job monitoring, or job scheduling and monitoring tools for your sap job scheduling can be accessed in sap job transaction SM37, the sap job tcode SM37 (Fig 10), simply by entering your login and the execution day.

SAP LSMW batch scheduling : Fig 10 : sap batch job tcode SM37 Simple job selection
Fig 10 : sap batch job tcode SM37 Simple job selection

You then see the past, present and future executions in the sap batch job monitoring (Fig 11).

SAP LSMW batch scheduling : Fig 11 : SAP batch management overview
Fig 11 : SAP batch management overview

The SAP job table TBTCO, which is the batch job table in sap, can be used for the sap batch traceability of the batch scheduling jobs, and to find a batch process in the sap job list, with the sap job overview tcode SM37.

Similar articles

Comments (10)

Francis Sutton, 2018-08-19
Thank you, very informative
Kayla Nichols, 2018-08-19
Dzięki, że było to pomocne
Ana Wilson, 2018-08-19
Hatte eine tolle Zeit diese Informationen zu lesen, weiter so die gute Arbeit
Earl Sanders, 2018-08-19
O sa incerc acum, multumesc pentru partajare
BenMy, 2018-08-19
正是我在寻找,完美
dilaiisS, 2018-08-19
واو ، انها حقا بهذه البساطة ، ستحاول ذلك الآن
concejald, 2018-08-19
موقع رائع ، يرجى الاستمرار
crackerjacknm5, 2018-08-19
لا أعرف كيف أشكرك ، لكن هذه عبقرية خالصة ، شكراً
doblavii, 2018-08-19
Wow, itu benar-benar yang mudah, akan mencubanya sekarang
trebolrockt, 2018-08-19
ਬਿਲਕੁਲ ਉਹੀ ਜੋ ਮੈਂ ਲੱਭ ਰਿਹਾ ਸੀ, ਸੰਪੂਰਨ

Leave a comment