Imports jobs from SAP to an AE system.
Interface:AE and Standard
R3_IMPORT_JOBS
[SINGLE_JOBS=...]
[,WORKFLOWS=...]
[,JOB_NAME=...]
[,LOGIN_NAME=...]
[,WORKFLOW_NAME=...]
[,EXTENSION=...]
[,LOGINS=...]
[,HOST=...]
[,QUEUE=...]
[,DEPENDENCY_STATE=...]
[,DEPENDENCY_ELSE_ACTION=...]
[,DEPENDENCY_ELSE_ALARM=...]
[,EXT_COMMAND=...]
[,EXT_PROGRAM=...]
[,LOGIN_FOLDER=...]
[,JOB_FOLDER=...]
[,WORKFLOW_FOLDER=...]
[,OVERRIDE=...]
[,JOB_TEMPLATE=...]
[,WORKFLOW_TEMPLATE=...]
Within the values of certain parameters, you can enter specific placeholders that start and end with a % character (such as %SID%). The default value of the parameter indicates whether you can use placeholders and which ones. You will find a list of placeholder explanations below the syntax table.
Syntax |
Description/Format |
---|---|
SINGLE_JOBS= |
The behavior that decides whether a Job object should be created for each job step. Allowed values: "YES" (default value) or "NO" |
WORKFLOWS= |
This creates workflows for the imported jobs. Allowed values: "" (default value), "1" or "2" |
JOB_NAME= |
The naming convention for the created Job objects. Default value: JOBS.%SID%.%CLIENT%@%JOBNAME% |
LOGINS= |
This creates Login objects. Allowed values: "" (default value), "1" or "2" |
LOGIN_NAME= |
The naming convention for the imported Login objects. Default value: |
WORKFLOW_NAME= |
The naming convention for the created Workflow objects Default value: JOBP.%SID%.%CLIENT%@%JOBNAME% |
EXTENSION= |
An extension for the object name of jobs that are created per step. This parameter is only relevant when the parameter SINGLE_JOBS is set to YES. Default value: %STEP% |
HOST= |
The host attribute of the created jobs. Default value: |
QUEUE= |
Queue attribute of the created jobs Default value: CLIENT_QUEUE |
DEPENDENCY_STATE= |
The expected status that should be entered within the workflow in the job properties (dependencies). This is only relevant for the creation of workflows. Default value: ANY_OK |
DEPENDENCY_ELSE_ACTION= |
An else action for the dependencies of the job within the workflow (task properties). This is only relevant for the creation of workflows. Allowed values: "" (default value), "ABORT", "BLOCK", "BLOCK_ABORT" or "SKIP" |
DEPENDENCY_ELSE_ALARM= |
The name of a object that should run when the dependencies of the job in the workflow are not fulfilled (task properties). This is only relevant for the creation of workflows. |
EXT_COMMAND= |
This includes external command steps. Allowed values: "YES" (include) or "NO" (do not include, default value) |
EXT_PROGRAM= |
This includes external program steps. Allowed values: "YES" (include) or "NO" (do not include, default value) |
LOGIN_FOLDER= |
The path of the folder in the AE client in which you want to store the created Login objects Default value: |
JOB_FOLDER= |
The path of the folder in the AE client in which you want to store the created Job objects. Default value: <No Folder> |
WORKFLOW_FOLDER= |
The path of the folder in the AE client in which you want to store the created Workflow objects. Default value: <No Folder> |
OVERRIDE= |
This overwrites existing objects. Allowed values:"YES" (default value) or "NO" |
JOB_TEMPLATE= |
The name of a SAP Job object that should be used as a basis for the job creation. Default value: "JOBS.SAP" |
WORKFLOW_TEMPLATE= |
The name of a Workflow object (standard workflow) that should be used as a basis for the workflow creation. Default value: "JOBP" |
Placeholders for parameter values:
You can use uppercase and/or lowercase letters, the parameters are not case sensitive.
You can use this script element to take over jobs from SAP to the AE system in the form of Job objects. The SAP system and the SAP client are used to which the relevant SAP agent has logged on and on which the script element R3_IMPORT_JOBS runs.
Before you use the function R3_IMPORT_JOBS, you must select the jobs that should be imported using the script element R3_GET_JOBS . All SAP jobs that have been selected with R3_GET_JOBS will be loaded to the AE system in the form of Job objects. The loading process will fail when you do not select jobs before you use R3_IMPORT_JOBS.
You can also create Workflow objects and Login objects for the jobs. You can manipulate this behavior by using the parameters LOGIN* and WORKFLOW (see above).
The jobs are inserted in the created workflows and afterwards, the dependencies are set in the workflow properties (parameter DEPENDENCY*=). You can either create workflows for all jobs or for jobs that include several steps.
The following example selects all jobs in SAP whose names start with "TEST" and it loads them to the AE system.
R3_GET_JOBS NAME="TEST*",USER="MEIER"
R3_IMPORT_JOBS JOB_NAME='JOBS.UC4.%JOBNAME%.%STEP%'
See also: