Skip to main content

SAP Task Web Services

Universal Controller supports the following RESTful-based web services for SAP Task operations, which are listed alphabetically on this page.

Formatting specifications for each web service, including details about parameter requirements, are provided.

Links to detailed information about the properties used in these web services also is located on this page.

For information on Task web services that are applicable to all task types, see:

Create an SAP Task

Description

URI

http://host_name/uc/resources/task

HTTP Method

POST

Description

Creates a new SAP task.

Example URI

http://localhost:8080/uc/resources/task

Consumes Content-Type

application/xml, application/json

Produces Content-Type

n/a

Example

See SAP Task: XML and JSON Examples, below.

Properties

See Properties.

Example Response

  • Status 200 /OK
    Successfully created the <task type> task with sysId <sysId>.

Modify an SAP Task

Description

URI

http://host_name/uc/resources/task

Consumes Content-Type

application/xml, application/json

Produces Content-Type

n/a

HTTP Method

PUT

Description

Modifies the task specified by the sysId in the request.

To modify SAP Task properties without modifying related records, use the excludeRelated property.

Example

See SAP Task: XML and JSON Examples.

Properties

See Properties.

Example Response

  • Status 200 /OK
    Successfully updated the <task type> task with sysId <sysId> to version <version>.

Read an SAP Task

Description

URI

http://host_name/uc/resources/task

HTTP Method

GET

Description

Retrieves information on the specified task.

Request Parameters

taskid or taskname

Mutually Exclusive Parameters

taskid and taskname

Example URI

Consumes Content-Type

n/a

Produces Content-Type

application/xml, application/json

Example Response

Properties

See Properties.

SAP Task: XML and JSON Examples

The retainSysIdsand versionproperties are specified as attributes in XML.

The exportReleaseLevel and exportTable properties are specified as attributes in XML.

JSON
JSON
{
"type": "taskSap",
"actions": {
"abortActions": [],
"emailNotifications": [],
"setVariableActions": [],
"snmpNotifications": [],
"systemOperations": []
},
"agent": null,
"agentCluster": null,
"agentClusterVar": null,
"agentVar": "${Agent}",
"broadcastCluster": null,
"broadcastClusterVar": null,
"chainDesc": null,
"chainId": null,
"commandGroup": "Submit",
"commandOptions": "-l audit -rawspool no",
"cpDuration": null,
"cpDurationUnit": "Minutes",
"credentials": null,
"credentialsVar": null,
"customField1": {
"label": null,
"value": null
},
"customField2": {
"label": null,
"value": null
},
"dataSource": null,
"defFile": null,
"definitionOrModel": null,
"definitionOrModelJobVar": null,
"dispAbapName": null,
"dispSapEventId": null,
"dispSapEventParm": null,
"dispVariant": null,
"efDayConstraint": "None",
"efDuration": "00:00:00:00",
"efEnabled": false,
"efNthAmount": 5,
"efOffsetDuration": null,
"efOffsetDurationUnit": "Minutes",
"efOffsetPercentage": 0,
"efOffsetType": "Percentage",
"efTime": "00:00",
"efType": "Time",
"emailNotification": {
"language": "EN",
"notifyType": "Status Cancelled",
"recipient": "admin@stonebranch.com"
},
"enforceVariables": false,
"environment": [],
"exclusiveTasks": [],
"exclusiveWithSelf": false,
"executionRestriction": "None",
"exitCodeOutput": null,
"exitCodeProcessing": "Success Exitcode Range",
"exitCodeText": null,
"exitCodes": "0",
"exportReleaseLevel": "7.7.0.0",
"exportTable": "ops_task_sap",
"firstRun": "",
"holdResources": false,
"immediate": false,
"infoPackage": null,
"infoPackageJobName": null,
"infoSource": null,
"jobClass": "Low Priority",
"jobId": null,
"jobLog": true,
"jobLogChild": "Yes",
"jobName": "SAP3",
"jobStatus": null,
"jobSteps": [
{
"language": null,
"printParameters": {
"numberOfCopies": null,
"outputDevice": null,
"pageArea": "Everything",
"pageFrom": null,
"pageTo": null,
"printTime": "SAP Spool Only"
},
"programName": "RSCOLL00",
"stepOrder": 1,
"sysId": "1c3ff671d92d44d79ba8e3495b3913eb",
"temporaryVariant": [],
"type": "ABAP Program",
"useTemporaryVariant": false,
"userCredentials": "SAP - PS5",
"userCredentialsVar": null,
"username": null,
"variantName": null
},
{
"language": "EN",
"printParameters": {
"numberOfCopies": null,
"outputDevice": "LP01",
"pageArea": "Page",
"pageFrom": 1,
"pageTo": 2,
"printTime": "SAP Spool Only"
},
"programName": "ABAP_DOCU_LIST",
"stepOrder": 0,
"sysId": "58a8c8616aca4539803c04f11bb9cb6d",
"temporaryVariant": [
{
"high": "Z",
"low": "A*",
"technicalName": "NAME1",
"option": "Between",
"sign": "Include",
"type": "Selection"
},
{
"high": null,
"low": "ABC*",
"technicalName": "NAME2",
"option": "Contains Pattern",
"sign": "Exclude",
"type": "Parameter"
}
],
"type": "ABAP Program",
"useTemporaryVariant": true,
"userCredentials": "SAP - PS5",
"userCredentialsVar": null,
"username": null,
"variantName": null
}
],
"lastRun": "",
"lfDayConstraint": "None",
"lfDuration": "00:00:00:00",
"lfEnabled": false,
"lfNthAmount": 5,
"lfOffsetDuration": null,
"lfOffsetDurationUnit": "Minutes",
"lfOffsetPercentage": 0,
"lfOffsetType": "Percentage",
"lfTime": "00:00",
"lfType": "Time",
"lockVariables": false,
"logId": null,
"logLevel": "Inherited",
"lsDayConstraint": "None",
"lsDuration": "00:00:00:00",
"lsEnabled": false,
"lsNthAmount": 5,
"lsTime": "00:00",
"lsType": "Time",
"maxChildDepth": null,
"monitorSteps": false,
"name": "Demo",
"notes": [],
"opswiseGroups": [],
"outputFailureOnly": false,
"outputReturnFile": null,
"outputReturnNline": "999",
"outputReturnSline": "1",
"outputReturnText": null,
"outputReturnType": "OUTERR",
"outputType": "STDOUT",
"overrideInstanceWait": "No",
"pcRestart": null,
"printAppLog": true,
"printAppRc": true,
"purge": false,
"purgeChild": false,
"repositoryOrFilesys": null,
"requestId": null,
"resPriority": 10,
"resolveNameImmediately": false,
"restrictionPeriod": "None",
"restrictionPeriodAfterDate": null,
"restrictionPeriodAfterTime": null,
"restrictionPeriodBeforeDate": null,
"restrictionPeriodBeforeTime": null,
"restrictionPeriodDateList": [],
"retainSysIds": true,
"retryIndefinitely": false,
"retryInterval": 60,
"retryMaximum": 0,
"retrySuppressFailure": false,
"runCount": 0,
"runTime": 0,
"runtimeDir": null,
"sapCmProfileId": null,
"sapCmProfileType": null,
"sapCmXmlFile": null,
"sapCommandMask": null,
"sapConnection": "ps5",
"sapConnectionVar": null,
"sapCred": "ps5",
"sapCredVar": null,
"sapDispConfirmEvents": null,
"sapDispEventSelectState": null,
"sapDisplayCommand": null,
"sapEventId": null,
"sapEventParm": null,
"sapFromDate": null,
"sapLang": null,
"sapPrinterName": null,
"sapToDate": null,
"sapView": "Enhanced View",
"script": null,
"simulation": false,
"sourceSystem": null,
"spoolListRecipient": {
"blindCopy": false,
"copy": false,
"deliver": "Always",
"express": false,
"mailStatus": "Always",
"noForwarding": false,
"recipient": null,
"recipientType": "External Addresses"
},
"spoollist": true,
"spoollistChild": false,
"start": true,
"startHeld": false,
"startHeldReason": null,
"stepNum": null,
"stepReport": false,
"summary": null,
"sysId": "ccfe7874d4c6446ea1fb8b4a4ee7dd0d",
"targetJobName": null,
"targetServer": null,
"targetVariantName": null,
"timeZonePref": "-- System Default --",
"twDelayAmount": null,
"twDelayDuration": "00:00:00:00",
"twDelayType": "None",
"twWaitAmount": null,
"twWaitDayConstraint": "None",
"twWaitDuration": "00:00:00:00",
"twWaitTime": "00:00",
"twWaitType": "None",
"twWorkflowOnly": "-- System Default --",
"useAppRc": false,
"userEstimatedDuration": null,
"variables": [],
"version": 11,
"virtualResources": [],
"wait": true,
"waitChild": false,
"waitForOutput": false
}

See Task Web Services - Task Actions for XML and JSON examples of task actions.

See Task Web Services - Task-Related Records for XML and JSON examples of task-related records.

Properties