Handling ABAP Programs 
Imported ABAP programs can easily be selected in the submit wizard, only a character sequence of the name needs to be entered; this avoids typos.
ABAP programs can have Variants, which can be removed and/or edited once they are imported. You can also use temporary variants, which will be deleted in the SAP System once the job has finished in the SAP System.
Imported ABAP programs can be scheduled with the following job definitions:
SAP_AbapRun
SAP_AbapRunPrint
SAP_AbapRunPrintExt
SAP_SolutionManager_AbapRun
SAP_ClosingCockpit_AbapRun
These job definitions can be duplicated and tailored to your needs.When you specify a default queue, all SAP systems that are linked to the queue will be displayed first in the SAP Systems parameter. If you choose an SAP system that is not linked to the default queue, you will have to specify the correct queue.
By duplicating the job definitions and adding job parameters, you can make use of temporary variants. A temporary variant is created for the job and deleted once the job has finished.
You specify the values and select options by creating job parameters with names matching the technical name of the parameter or select option and setting Create Temporary Variant? or TEMPORARY_VARIANT to Y. You can use the SAP Object Editor to inspect previously imported variants for the specific names, see Creating and Modifying Variants in SAP CPS for more information.
Job parameters should be string parameters. When you want to specify a range, you should enclose it in square brackets [], as in [a-m,!d, !f, !g].
The following operators are available for select options, the mathematical syntax can only be used in RedwoodScript and is displayed here for clarity:
Syntax |
Meaning |
Mathematical Syntax |
NOT |
Not |
! |
EQ |
Equals |
= |
NE |
Not Equals |
!= |
NE |
Not Equals |
<> |
GE |
Greater than or equals |
>= |
GT |
Greater than |
> |
LE |
Less than or equals |
<= |
LT |
Less than |
< |
By duplicating the job definitions and adding the following two parameters, you can make the job wait for an event in SAP:
Parameter |
Description |
Direction |
Data Type |
STARTCOND_EVENTID |
batch event id |
In |
String |
STARTCOND_EVENTPARM |
parameter of the event id |
In |
String |
Note that you have to duplicate the job definition and modify the duplicate.
The return code can be ignore on two levels:
process server-level - set the process server parameter SAP_IgnoreApplicationReturnCode to true
job definition-level - create a job definition parameter named IGNORE_APPL_RC
This job definition is used to run ABAP's via the XBP interface in SAP Systems. This job definition works with every version of the XBP interface, yet it offers a limited set of print and archive parameters (only those that are available in XBP 1.0) if you do not load the Redwood Transport files.
Note
If you need to use the optional Archive text information field parameter, known as Text in SAPGUI, you will have to use the job definition SAP_AbapRunPrint or SAP_AbapRunPrintExt.
This job definition is used to run ABAP's via the XBP interface in SAP Systems. This job definition makes use of the extended capabilities of the XBP 2.0 interface, which provides an extended the set of print and archive parameters. This job definition works on every version of the XBP interface, yet on versions below 2.0 most of the print and archive parameters will be skipped.
This job definition is used to run ABAP's via the XBP interface in SAP Systems. This job definition makes use of the extended capabilities of the XBP 3.0 interface to set the spool list recipient and retrieve application log and batch statistics of the SAP job. This job definition works on every version of the XBP interface, yet on versions below 3.0 the new functionality is disabled.
If you set Print/Archive mode to Archive only or Print and Archive, the following additional Archive parameters must be
Archive SAP object - Referred to as Obj.type in SAPGUI
Archive object - Referred to as Doc.type in SAPGUI
Archive info - Referred to as Information in SAPGUI
Archive text information field - Referred to as Text in SAPGUI
This job definition is based on the SAP_AbapRunPrintExt job definition and contains additional parameters for Closing Cockpit. This job definition requires closing cockpit integration to be configured.
This job definition is based on the SAP_AbapRunPrintExt job definition and contains additional parameters for Solution Manager. This job definition requires PSA for Solution Manager integration to be configured.