Creating Job Chains for Multiple SAP Systems 
The SAP jobs of a job chain require parameters, there are two parameter classes, scheduling parameters and job parameters.
Scheduling parameters define the status of the job chain at submit time, the queue and the priority of the job.
For SAP jobs, the queue defines the SAP System where the job runs, when the SAP System parameter is not set.
Note
You may be restricted to connecting to a single SAP System from within SAP CPS at any given time; this depends on the value of ProcessServerService.SAP.limit license key and your privileges. If this is the case, you will not be able to follow this procedure.
Choose in the Navigation bar.
Choose New from the context menu.
Choose the Job Definition tab and fill in a name for the job chain, choose Save.
On the Job Chain tab, choose the name of the job chain.
Choose Add Step from the context menu, notice that a new step with the caption Step 1 has been added.
Choose Add Job from the context menu of Step 1.
Choose Job 1 and enter the part of the job definition name into the Job Definition field.
Choose the desired job definition out of the list of available job definitions.
Under Scheduling, enter a parameter for Queue.
Perform steps 6 to 9 for every job.
Choose Save to save the job chain.
A job chain with two steps each containing one job will be created, the two jobs (SAP CPS job definition SAP_Info and SAP ABAP RSUSR000) will be run on separate SAP Systems (PR0 and PR1).
Choose in the Navigation bar.
Choose New from the context menu.
Choose the Job Definition tab, enter MSLN_CTRL_INV in the Name field.
Choose New next to the Application field, enter MSLN_CTRL into the Name field of the new window, choose Save & Close.
Choose the Job Chain tab.
Choose Add Step from the context menu of green box.
Choose Add Job from the context menu of Step 1.
Choose Job 1 and enter info into the Job Definition field.
Choose SAP_Info from the list of available job definitions.
Choose the Scheduling Parameters tab
Fill PR1_Queue into the Queue field.
Fill 50 into the Expression field.
Choose the Parameters tab, and enter the parameters in the table below, only enter the values in the table, leave all other fields with their defaults.
Choose the Job Chain.
Choose Add Step from the context menu of MSLN_CTRL_INV.
Choose Add Job from the context menu of Step 2.
Choose Job 1 and enter ABAP into the Job Definition field.
Choose SAP_AbapRun from the list of available job definitions.
Choose SAP_AbapRun.
Choose Reference MSLN_CTRL_INV:SYSTEM for SAP System.
Choose Reference MSLN_CTRL_INV:ABAP for ABAP program name.
Choose Reference MSLN_CTRL_INV:JOBNAME for SAP job name.
Fill 200 into the SAP client field. This step is optional, the default client will be used if no client is provided.
Choose Save & Close to save the job chain.
Parameter Name |
Display Order |
Value |
SYSTEM |
PR0 |
1 |
ABAP |
RSUSR000 |
2 |
JOBNAME |
MSLN_TEST |
3 |