SAP S/4 HANA Application Jobs: Schedule Application Jobs

{"URL":["/*.*/awa/pa_view_pa_view_SCHEDULE_sapapplicatonjobs"],"heroDescriptionIdentifier":"ice_hero_SAPAPP_Schedule_Application_Job","customCards":[{"id":"ice_specific_SAPAPP_Schedule_Application_Job","title":"Adding SAP Schedule Application Job Parameters","type":"customize","url":"https://docs.automic.com/documentation/webhelp/english/ALL/components/IG_SAP_APPLICATIONJOBS/*.*/Agent%20Guide/Content/SAP_Application_Jobs/SAP_App_Jobs_ScheduleApplicationJob_Properties.htm","languages":["en-us"]},{"id":"ice_defining_JSON_examples","title":"Examples for Defining the JSON","type":"customize","url":"https://docs.automic.com/documentation/webhelp/english/ALL/components/IG_SAP_APPLICATIONJOBS/*.*/Agent%20Guide/Content/SAP_Application_Jobs/SAP_App_Jobs_ScheduleApplicationJob_Properties.htm","languages":["en-us"]},{"id":"ice_Integration_Report","title":"Integration Reports","type":"customize","url":"https://docs.automic.com/documentation/webhelp/english/ALL/components/IG_SAP_APPLICATIONJOBS/*.*/Agent%20Guide/Content/SAP_Application_Jobs/SAP_App_Jobs_Jobs_RA_Properties.htm","languages":["en-us"]},{"id":"ice_script_SAPAPP_Schedule_Application_Job","title":"Setting Schedule Application Job Properties through Scripts","type":"customize","url":"https://docs.automic.com/documentation/webhelp/english/ALL/components/IG_SAP_APPLICATIONJOBS/*.*/Agent%20Guide/Content/SAP_Application_Jobs/SAP_App_Jobs_Script.htm","languages":["en-us"]},{"id":"ice_related_information_SAPAPP_Schedule_Application_Job","title":"Related Information","type":"customize","url":"https://docs.automic.com/documentation/webhelp/english/ALL/components/IG_SAP_APPLICATIONJOBS/*.*/Agent%20Guide/Content/SAP_Application_Jobs/SAP_App_Jobs_ScheduleApplicationJob_Properties.htm","languages":["en-us"]}]}

Automic Automation SAP Schedule Application Jobs start, stop and monitor SAP Application Jobs cloud jobs on SAP S/4 HANA Application Jobs cloud systems. The Schedule Application Job that you create in Automic Automation represents the cloud job on the SAP S/4 HANA Application Jobs cloud system, not its tasks. When you execute the SAP Schedule Application Job, you trigger a run of the job in the target SAP S/4 HANA Application Jobs environment, when you cancel the job in the AWI, the job is terminated in the SAP S/4 HANA Application Jobs environment.

In SAP Application Jobs systems, graphs, also known as pipelines, are a network of operators connected by typed input and output ports for data transfer where SAP Application Jobs provides built-in operators that you can use directly in a graph or as the basis for creating a custom operator. For details about SAP S/4 HANA Application Jobs , see https://learning.sap.com/learning-journeys/administrating-the-sap-s-4hana-cloud-public-edition/introducing-application-jobs_cf77594e-9dd1-454b-b8d1-05079dfee508

This page includes the following:

Defining SAP Schedule Application Job Properties

On the Schedule Application Job page, you define the parameters relevant to starting the job on the SAP Application Jobs system.

(Click to expand)

Screenshot showing the Schedule Application Job page of the SAP Application Job.
  • Connection

    Select the SAP Application Jobs Connection object containing the relevant information to connect to the SAP S/4 HANA Application Jobs system.

    To search for a Connection object, start typing its name to limit the list of objects that match your input.

  • SAP Client

    Specify the corresponding SAP client.

  • Job Filter

    (Optional) Job filter to populate the template name. If you use this field, you do not need to use the Job Template Name, Job Template Text and Job User fields.

  • Job Template Name

    (Optional, only required if the Job Filter field is empty). The template name to be scheduled.If you use this field, you do not need to define the Job Filter field.

  • Job Template Text

    (Optional, only required if the Job Filter field is empty) The text to be associated with the template.

  • Job User

    SAP job user name.

  • Payload Data

    Define the payload parameters you want to pass on in JSON format.

Note:

The Pre-Process page allows you to define the settings for the SAP Schedule Application Job using script statements. These statements are processed before the Schedule Application Job is executed; see SAP Application Jobs: Setting Job Properties Through Scripts.

Defining the JSON

This section gives you examples of how you could define the JSON field when defining a SAP Schedule Application Job. You have different options available.

Simple JSON Definition

The first option to define the JSON field is a simple payload definition. To do so, make sure you define the parameters required to define the job, such as the source, name or execution type.

Using Variables

You can also use variables in the payload definition.

Example

In the JSON field, enter the following:

&JSON#

If the variable still needs to be defined, you must define it now. You do so on the Variables page of the Schedule Application Job definition:

(Click to expand)

Screenshot shown the &JSON# variable definition on the Variables pane of a SAP Schedule Application Job

When you execute the Job, the variable will be replaced with the value you have just defined. This is visible in the Agent log (PLOG); see Monitoring SAP Application Jobs .

SAP Schedule Application Job in a Workflow

You can also use the JSON field if you want to include a Schedule Application Job in a Workflow and use Automation Engine variables in it.

Example

A Workflow includes a Script object (SCRI) with the variable definition for the JSON parameters and a Schedule Application Job that includes the JSON variable:

(Click to expand)

Screenshot of the Process pane of a Script object showing a :PSET command that defines the &JSON# variable.

(Click to expand)

Screenshot showing the SAP Schedule Application Job pane where the JSON field includes a &JSON# variable

When the Job is executed, the variable will be replaced with the value you have just defined. This is visible in the Activation report (ACT), see Monitoring SAP Application Jobs .

Example

(Click to expand)

Screenshot of the Activation log of the SAP Schedule Application job after the workflow was successfully executed.