Importing SAP CCMS Jobs
The SAP Computer Center Management System (CCMS) is part of an SAP solution that provides common functionality such as user management, monitoring and background jobs. You have previously submitted background jobs in SAP via transaction SM36 and want these jobs to be controlled by Redwood Server. You can import CCMS job steps as separate Process Definitions, in one Process Definition, or have a Chain Definition use the SAP_AbapRun Process Definition; the last-named keeps the number of Process Definitions in Redwood Server low and allows you have a better overview.
When you import a multi-step SAP job into one Process Definition, the resulting Process Definition has many parameters, one set per ABAP called. This means that it can become tedious to attempt to run a subset of ABAP jobs from the Process Definition. If you want to run ABAP programs separately and do not want a Process Definition per SAP job, import multi-step SAP jobs as Chain Definitions.
When multiple conflicting jobs match your search criteria, the latest job matching the search criteria will be imported.
You select which parameters (print, archive, recipient) you would like to add to the imported definition; note that it is good practice to only select the parameters you need, fewer parameters improves performance. The imported definition will have parameter defaults set to the parameter values of the SAP job,
Note: The SAP_ImportCcmsJobs process will fail when it attempts to overwrite anything other than SAPR3
Definition Types.
SAP_ImportCcmsJobs Parameters
Note that the JOB_STATUSES
parameter takes a string of CCMS job statuses; the following statuses are valid:
Canceled
- The job finished with error, or has been killed.Finished
- The job finished successfully.Intercepted
- The job has been intercepted.Ready
- The job has been picked up by a batch work process but not started yet.Released
- The job has been scheduled and is now waiting for execution according to its start conditions.ReleaseSuspended
- The job has been suspended because an upgrade of the SAP batch system is currently running.Running
- The job is currently running.Scheduled
- The job is created with no start condition.
For example, to match all jobs that have a final state, you specify the following:
Finished, Canceled
Procedure
To import your CCMS jobs from an SAP System:
- Navigate to Definitions > Processes and locate the Process Definition
SAP_ImportCccmsJobs
. - From the context menu, choose Submit.
- Fill in the corresponding information in both tabs for each parameter (for reference see table below).
- Choose scheduling on the left-hand side and choose the Queue belonging to the SAP System.
- Choose submit.
Example
You want to import SAP job number 1112
; it was submitted by jdoe
and executed the ABAP RSUSR100
in the SAP System sapprd01
- Navigate to Definitions > Processes and locate the Process Definition SAP_ImportCCMSjobs.
- From the context menu, choose Submit.
- Fill in the information below for the Parameters tab.
- Fill in the information below for the Generation Settings tab.
- Choose Submit and navigate to "Monitoring > Processes".
- Choose Refresh to see the newly submitted process.
Parameters tab
- JOBNAME - RSUSR100
- JOBCOUNT - 1112
- SAP_USER_NAME - jdoe
- CLIENT - 100
- CLIENT_SPECIFIC - Y
Generation Settings tab
- JOBDEF_NAME - JDOE_RSUSR100
- OVERWRITE - Y
- SHOWLOG - Y
- SHOWSPOOL - Y
- DELETE_JOB - N