SAP Help Home SAP Intelligent RPA Help Portal SAP Intelligent RPA Community

Module - SAP S/4HANA Cloud API Access Token Module

Collection of functions related to activities for SAP S/4HANA Cloud API Access Token

Activities

Get SAP S/4HANA Cloud API Access Token

Retrieves an access token to authenticate a session for API calls to SAP S/4HANA Cloud. If supported by the API, the activity returns a CSRF token ticket that must be appended to subsequent requests.


Technical Name Type Minimal Agent Version
getSAPS4HANACloudApiAccessToken asynchronous WIN-3.24, MAC-3.24, CLOUD-3.34

Input Parameters:

Name Type Attributes Default Description
accessTokenInputs irpa_core.AccessTokenInputs mandatory As defined by the AccessTokenInputs data type.

Output Parameters:

Name Type Description
output irpa_core.AccessTokenOutput Returns an object with a property named csrfToken. The CSRF token must be added to the header of PUT, POST, and DELETE requests for SAP S/4HANA Cloud APIs.

Errors:

Error Class Package Description
AccessTokenError irpa_core AccessTokenError


Terminate SAP S/4HANA Cloud API Session

Terminates the session established with the Get SAP S/4HANA Cloud API Access Token activity to call SAP S/4HANA Cloud APIs.


Technical Name Type Minimal Agent Version
terminateSAPS4HANACloudAPISession asynchronous WIN-3.24, MAC-3.24, CLOUD-3.34

Input Parameters:

Name Type Attributes Default Description
accessTokenInputs irpa_core.AccessTokenInputs mandatory As defined by the AccessTokenInputs data type.

Errors:

Error Class Package Description
AccessTokenError irpa_core AccessTokenError