Creating Chain Definitions for Multiple SAP Systems
The SAP jobs of a chain definition require parameters, there are two parameter classes, scheduling parameters and chain process parameters.
Scheduling parameters define the status of the chain at submit time, the queue and the priority of the process.
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 Redwood Server 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.
Procedure
- Choose "Definitions > Chains" in the Navigation bar.
- Choose New Chain Definition from the context-menu.
- Choose the Chain Definition tab and fill in a name for the chain definition, choose Save.
- On the Chain Definition tab, choose the name of the chain definition.
- Choose Add Step from the context-menu, notice that a new step with the caption Step 1 has been added.
- Choose Add Chain Process from the context-menu of Step 1.
- Choose chain process 1 and enter the part of the process definition name into the Process Definition field.
- Choose the desired process definition out of the list of available process definitions.
- Under Scheduling, enter a parameter for Queue.
- Perform steps 6 to 9 for every chain process.
- Choose Save to save the chain definition.
Example
A chain definition with two steps each containing one chain process will be created, the two processes (Redwood Server process definition SAP_Info and SAP ABAP RSUSR000 ) will be run on separate SAP Systems (PR0 and PR1).
- Choose "Definitions > Chains" in the Navigation bar.
- Choose New Chain Definition from the context-menu.
- Choose the Chain 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 Chain Definition tab.
- Choose Add Step from the context-menu of green box.
- Choose Add Chain Process from the context-menu of Step 1.
- Choose chain process 1 and enter info into the Process Definition field.
- Choose SAP_Info from the list of available process 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 Chain Definition.
- Choose Add Step from the context-menu of MSLN_CTRL_INV.
- Choose Add Chain Process from the context-menu of Step 2.
- Choose Chain Process 1 and enter ABAP into the Process Definition field.
- Choose SAP_AbapRun from the list of available process 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 chain definition.
Parameter Name | Display Order | Value |
---|---|---|
SYSTEM | PR0 | 1 |
ABAP | RSUSR000 | 2 |
JOBNAME | MSLN_TEST | 3 |
See Also
JobChain