S/4HANA Application Job Connector 1.0.0.0

The S/4HANA Application Jobs Connector lets you schedule application jobs for a specified business user in SAP S/4HANA products that support the Application Jobs interface (such as IBP and Public Cloud). It also lets you monitor the statuses of such jobs and abort them if necessary.

Prerequisites

Installation

The Redwood SAP S/4 Application Jobs Connector is available in the Catalog.

Contents of the Component

The SAP S/4 Application Jobs Connector consists of the following objects:

Object Type Name Description
Application GLOBAL.Redwood.GLOBAL.SAP.REDWOOD.S4HANAApplicationJob Integration connector with the S/4 HANA Application Jobs (1.0.0.0)
Constraint Definition REDWOOD.Redwood_S4ApplicationJobConnectionConstraint Constraint for SAP S/4 HANA Application Job Connection fields
Extension Point REDWOOD.Redwood_S4ApplicationJobConnection S/4 HANA Application Job Connection
Process Definition REDWOOD.Redwood_S4AJ_ImportJobTemplate Import S4 HANA Application Job Templates as Process Definitions
Process Definition REDWOOD.Redwood_S4AJ_ShowApplicationJobs Retrieve details about all available S4 HANA Application Job Templates
Process Definition REDWOOD.Redwood_S4AJ_SubmitApplicationJob Submit an S/4 HANA Application Job
Process Definition REDWOOD.Redwood_S4AJ_Template Template for submitting an S/4 HANA Application Job
Process Definition Type REDWOOD.Redwood_S4ApplicationJob S/4 HANA Application Job Connector
Library REDWOOD.Redwood_S4ApplicationJob Library for S/4 HANA Application Job connector

Redwood_S4AJ_ImportJobTemplate

This Process Definition lets you import S/4HANA Application Job Templates as Process Definitions.

Parameters

Tab Name Description Documentation Data Type Direction Default Expression Values
Parameters connection Connection The Connection object that defines the connection to the SAP Application Jobs environment. String In

Parameters templateName Technical Name Filter Return templates where the Technical Name matches this filter. Wildcards * and ? are allowed. String In

Parameters jobText Display Name Filter Return templates where the Display Name (Job Text) matches this filter. Wildcards * and ? are allowed. String In

Parameters overwrite Overwrite Existing Definition When set to Yes, if a definition already exists with the same name as the name generated for the imported object, it will be overwritten with the new import.
When set to No, the import for that template will be skipped if a definition with the same name already exists.
String In `N` Y=Yes,N=No
Parameters importType Definition Name Type If G is specified, the Technical Name of the Application Job template will be used as the generated definition name.
If D is specified, the Display Name (Job Text) of the Application Job template will be used as the generated definition name.
String In `D` G=Technical Name,D=Display Name
Parameters templateProcessDefinition Template Definition Business Key of the process definition or template to use for generating the imported definition instead of REDWOOD.Redwood_S4AJ_Template, which is the default. String In

Generation Settings targetPartition Partition The Partition to create the new definitions in. String In

QueryFilter:User.Redwood System.Partition.Partition%2e;all
Generation Settings targetApplication Application The Application to create the new definitions in. String In

QueryFilter:User.Redwood System.Application.Application%2e;all
Generation Settings targetQueue Default Queue The default Queue to assign to the generated definitions. String In

QueryFilter:User.Redwood System.Queue.Queue%2e;all
Generation Settings targetPrefix Definition Name Prefix The prefix to add onto the name of the imported Application Job template to create the definition name. String In `CUS_S4AJ_`

Generation Settings targetUser Job User The User ID of the Job User to set on the imported definitions. String In

Generation Settings importParameters Import Parameters If set to Yes, parameters of all steps on the Application Job template will be imported. String In `N` Y=Yes,N=No
Generation Settings expandTasks Expand Tasks When set to Yes, a child job will be created for monitoring each task in the Application Job String In `No` Yes,No
Generation Settings parameterNamingScheme Parameter Naming Scheme Naming Scheme of the parameters imported from Application Job Template String In `None` None,Prefixed
Parameters language SAP Language Desired language for all API responses from SAP. Default behavior is to let SAP use its own language settings. String In

EN=English,DE=German,FR=French,ES=Spanish,DA=Danish
Parameters ignoreAppReturnCode Ignore Application Return Code Indicates whether we should ignore the Application Return Code if it is non-zero String In `No` Yes,No
Generation Settings downloadLogs Download Logs Indicates whether application logs should be downloaded. This is only supported for S/4 HANA Application Jobs. String In `No` Yes,No

Redwood_S4AJ_ShowApplicationJobs

Retrieve details about all available S4 HANA Application Job Templates.

Parameters

Tab Name Description Documentation Data Type Direction Default Expression Values
Parameters connection Connection The Connection object that defines the connection to the SAP Application Jobs environment. String In

Parameters templates Templates SAP Application Job templates fetched by this job. Table Out

Parameters language SAP Language Desired language for all API responses from SAP. Default behavior is to let SAP use its own language settings. String In

EN=English,DE=German,FR=French,ES=Spanish,DA=Danish

Redwood_S4AJ_SubmitApplicationJob

Submit an S/4 HANA Application Job.

Parameters

Tab Name Description Documentation Data Type Direction Default Expression Values
Parameters connection Connection The Connection object that defines the connection to the SAP Application Jobs environment. String In

Parameters jobUser Job User The user id of the SAP user to submit the job with. String In

Parameters jobText Job Text The Job Text (Display Name) of the Application Job template to run. If multiple templates exist with the same Job Text, the Template Name parameter must be supplied as well. String In

Parameters templateName Template Technical Name The Technical Name (GUID) of the Application Job template to run. This field is not required, but will make the template lookup faster if provided. String In

Parameters expandTasks Expand Tasks When set to Yes, a child job will be created for monitoring each task in the Application Job String In `No` Yes,No
Parameters childJobDefinition Child Job Definition It allows overriding the child job definition. By default when no value is provided, the Redwood_S4AJ_Task is used as the definition for the child jobs. String In

Parameters jobName Job Name The Job Name that identifies the Application Job that was submitted. String Out

Parameters jobRunCount Job Run Count The Job Run Count that identifies the Application Job that was submitted. String Out

Parameters language SAP Language Desired language for all API responses from SAP. Default behavior is to let SAP use its own language settings. String In

EN=English,DE=German,FR=French,ES=Spanish,DA=Danish
Parameters parameterNamingScheme Parameter Naming Scheme Naming Scheme of the parameters imported from Application Job Template String In `None` None,Prefixed
Parameters ignoreAppReturnCode Ignore Application Return Code Indicates whether we should ignore the Application Return Code if it is non-zero String In `No` Yes,No
Parameters downloadLogs Download Logs Indicates whether application logs should be downloaded. This is only supported for S/4 HANA Application Jobs. String In `No` Yes,No

Redwood_S4AJ_Task

Monitors a sub-task of an S/4 Hana Application Job.

Parameters

Tab Name Description Documentation Data Type Direction Default Expression Values
Parameters connection Connection The Connection object that defines the connection to the SAP Application Jobs environment. String In

Parameters jobUser Job User The user id of the SAP user to submit the job with. String In

Parameters jobName Job Name The Job Name of the job to monitor the task for String In

Parameters jobRunCount Job Run Count The Job Run Count that identifies the Application Job that was submitted. String In

Parameters stepCount Step Count The step count of the task to monitor String In

Parameters stepStatus Step Status The status of the step String Out

Parameters stepApplicationRc Step Application RC The step application return code Number Out

Redwood_S4AJ_Template

Template for submitting an S/4 HANA Application Job.

Parameters

Tab Name Description Documentation Data Type Direction Default Expression Values
Parameters connection Connection The Connection object that defines the connection to the SAP Application Jobs environment. String In

Parameters jobUser Job User The user id of the SAP user to submit the job with. String In

Parameters jobText Job Text The Job Text (Display Name) of the Application Job template to run. If multiple templates exist with the same Job Text, the Template Name parameter must be supplied as well. String In

Parameters templateName Template Technical Name The Technical Name (GUID) of the Application Job template to run. This field is not required, but will make the template lookup faster if provided. String In

Parameters expandTasks Expand Tasks When set to Yes, a child job will be created for monitoring each task in the Application Job String In `No` Yes,No
Parameters childJobDefinition Child Job Definition It allows overriding the child job definition. By default when no value is provided, the Redwood_S4AJ_Task is used as the definition for the child jobs. String In

Parameters jobName Job Name The Job Name that identifies the Application Job that was submitted. String Out

Parameters jobRunCount Job Run Count The Job Run Count that identifies the Application Job that was submitted. String Out

Parameters language SAP Language Desired language for all API responses from SAP. Default behavior is to let SAP use its own language settings. String In

EN=English,DE=German,FR=French,ES=Spanish,DA=Danish
Parameters downloadLogs Download Logs Indicates whether application logs should be downloaded. This is only supported for S/4 HANA Application Jobs. String In `No` Yes,No

Redwood_S4AJ_ShowApplicationJobs

This Process Definition lets you retrieve details about all available S/4HANA Application Job Templates.

Parameters

Tab Name Description Documentation Data Type Direction
Parameters connection Connection The Connection object that defines the connection to the SAP Application Jobs environment. String In
Parameters templates Templates SAP Application Job templates fetched by this job. Table Out

Redwood_S4AJ_SubmitApplicationJob

This Process Definition lets you submit an S/4HANA Application Job.

Parameters

Tab Name Description Documentation Data Type Direction
Parameters connection Connection The Connection object that defines the connection to the SAP Application Jobs environment. String In
Parameters jobUser Job User The user ID of the SAP user to submit the job with. String In
Parameters jobText Job Text The Job Text (Display Name) of the Application Job template to run. If multiple templates exist with the same Job Text, the Template Name parameter must be supplied as well. String In
Parameters templateName Template Technical Name The Technical Name (GUID) of the Application Job template to run. This field is not required, but will make the template lookup faster if provided. String In
Parameters jobName Job Name The Job Name that identifies the Application Job that was submitted. String Out
Parameters jobRunCount Job Run Count The Job Run Count that identifies the Application Job that was submitted. String Out

Redwood_S4AJ_Template

Template for submitting an S/4HANA Application Job.

Parameters

Tab Name Description Documentation Data Type Direction
Parameters connection Connection The Connection object that defines the connection to the SAP Application Jobs environment. String In
Parameters jobUser Job User The user ID of the SAP user to submit the job with. String In
Parameters jobText Job Text The Job Text (Display Name) of the Application Job template to run. If multiple templates exist with the same Job Text, the Template Name parameter must be supplied as well. String In
Parameters templateName Template Technical Name The Technical Name (GUID) of the Application Job template to run. This field is not required, but will make the template lookup faster if provided. String In
Parameters jobName Job Name The Job Name that identifies the Application Job that was submitted. String Out
Parameters jobRunCount Job Run Count The Job Run Count that identifies the Application Job that was submitted. String Out

Setup

  1. Navigate to Custom > Connections.
  2. Click .
  3. Under Select Connection Type, click S/4 HANA Application Jobs.

  4. Click Next or Basic Properties, then create a Queue and Process Server for the connector. All required settings will be set up automatically.

  5. ClickNext or Security, then click to specify which roles can access the connection information. It is recommended to grant the role at least the following additional privileges: View on the S/4 Application Jobs Process Server, View Processes on the S/4 Application Jobs Queue, View on library REDWOOD.Redwood_S4ApplicationJob, and Submit on any Process Definitions users with this role are to submit.
  6. ClickNext or S/4 HANA Application Jobs Properties
  7. Do one of the following things:

    • Click Basic, then enter the URL of the endpoint of the SAP S/4 HANA environment (for example, https://myxxxx.api.s4hana.ondemand.com), a Username, and the Password.,
    • Click Certificate. Enter the URL of the endpoint of the SAP S/4 HANA environment (for example, https://myxxxx.api.s4hana.ondemand.com) in the URL field, then click Test Connection to verify the connection.

  8. Click Save & Close.
  9. Navigate to Environment > Process Server, locate your Application Jobs Process Server, start it, and ensure it reaches status Running.

Running Application Jobs

Finding Application Jobs Templates

To retrieve the list of job templates available for scheduling, navigate to Applications > Redwood > SAP > S4HANAApplicationJob, expand S4HANAApplicationJob, and submit Redwood_S4AJ_ShowApplicationJobs.

Locate Redwood_IBP_ShowTemplates

Once the process has finished, right-click it and choose Monitor Related Processes, then select the process run and click templates.rtx in the Detail View. Sample output is shown below.

Locate Redwood_IBP_ShowTemplates

The value used as the template name is the Technical Name.

Scheduling an Application Job

In the S4HANAApplicationJob Application, submit Redwood_S4AJ_SubmitApplicationJob.

Submit IBP_SubmitJob

The job is scheduled with the Job User and, for example, the visibility filter settings are taken from this user. This is also the user ID displayed in the Fiori App under Maintain Business Users.

Enter Job Text based on the results of the call to Redwood_S4AJ_ShowApplicationJobs.

Importing Templates as Process Definitions

To import a template as a Process Definition, submit REDWOOD.Redwood_S4AJ_ImportJobTemplate.

Enabling Connections through an HTTP Proxy

When the connection to the SAP system needs to be established through an HTTP proxy, create a new proxy credential and specify a proxy for IBP independent of the Secure Gateway proxy. For more information, see Credentials and Certificates.

SAP External API Connection Requirements