Controlling Batch Input Sessions
Batch Input Sessions are a special type of SAP job that process incoming data. A particular OS directory is designated in SAP as the Batch Input Folder. Other applications can then send data in a special SAP format called iDocs to the SAP System by placing a file in this directory.
To process the incoming data, you submit the ABAP program RSBDCSUB
. This program reads the batch input folder and submits a new SAP job for every file found in this folder. Unfortunately, RSBDCSUB
does not wait for the processing jobs to finish.
It is, therefore, very difficult to build dependencies within SAP using RSBDCSUB
, because the start job does not wait for the processing to finish and it is not known beforehand what the child jobs will be. With the standard CCMS scheduler you are forced to resort to ABAP programming to find the child jobs and then wait for them to finish.
If you use BC-XBP 2.0, Redwood Server will automatically realize that RSBDCSUB
has created child jobs and will automatically delay setting the RSBDCSUB Redwood Server process to a final state until all these jobs are finished. So when BC-XBP 2.0 is used, you can schedule RSBDCSUB
just like any other job. This behavior also works when the RSBDCSUB job is intercepted. In both cases any dependencies made on this process in Redwood Server will only start once all child jobs are finished.
Procedure
- Navigate to "Definitions > Processes".
- Choose Submit form the context-menu of the SAP_AbapRun process definition.
- Fill in SAP System, SAP job name and enter
RSBDCSUB
into the ABAP program field. - Choose Submit and navigate to "Monitoring > Processes" to locate the processes.