SAP S/4HANA Cloud Component
Manage business partners, sales orders, materials, and other enterprise resources in SAP S/4HANA Public Cloud.
Component key: sapS4Hana
Description
SAP S/4HANA Cloud is an enterprise resource planning (ERP) system. This component allows you to manage business partners, sales orders, materials, and other enterprise resources within SAP S/4HANA Cloud Public Edition.
API Documentation
This component was built using the SAP API Business Hub for SAP S/4HANA Cloud.
Connections
API Key (Sandbox)
key: apiKeyThis connection authenticates with SAP S/4HANA Cloud APIs via the SAP API Business Hub sandbox environment. It is designed for testing and development purposes only and provides read-only access to sample data.
This connection is intended for testing and development using the SAP API Business Hub sandbox. For production access to real SAP S/4HANA Cloud data, use the Basic Auth connection instead.
Prerequisites
- An SAP account with access to SAP API Business Hub
- API key generated from SAP API Business Hub
Setup Steps
To create an API key for the sandbox:
- Navigate to SAP API Business Hub and log in with SAP credentials.
- Click on the user profile icon in the top right corner.
- Select Settings or API Keys from the menu.
- Click Show API Key to reveal the existing key, or generate a new one if needed.
- Copy the API key and store it securely.
Configure the Connection
- SAP API Key: Enter the API key obtained from SAP API Business Hub.
- Base URL: Use the default sandbox URL:
https://sandbox.api.sap.com/s4hanacloud
| Input | Notes | Example |
|---|---|---|
| SAP API Key | API key from SAP API Business Hub. Log in at https://api.sap.com and access your API key from your account settings. | AbCdEf123456... |
| Base URL | SAP API Business Hub sandbox URL. Use the default sandbox URL for testing. This connection is intended for sandbox environments only. | https://sandbox.api.sap.com/s4hanacloud |
Basic Auth
key: sapBasicAuthThis connection authenticates directly with an SAP S/4HANA Cloud Public Edition tenant using Basic Authentication.
This connection is for direct tenant access to SAP S/4HANA Cloud Public Edition. It requires a Communication Arrangement configured by an SAP administrator.
Prerequisites
- SAP S/4HANA Cloud Public Edition tenant
- Administrator access to configure Communication Arrangements
- A Communication Scenario enabled for the required APIs (e.g.,
SAP_COM_0008for Business Partner API)
Setup Steps in SAP S/4HANA Cloud
To configure Basic Authentication access, an SAP administrator must complete these steps:
-
Create a Communication User
- Navigate to the Maintain Communication Users app
- Create a new user for API access
- Set a secure password and note the credentials
-
Create a Communication System
- Navigate to the Communication Systems app
- Create a new system representing the external integration
- Under Users for Inbound Communication, add the Communication User created above
- Ensure User ID and Password (Basic Authentication) is enabled
-
Create a Communication Arrangement
- Navigate to the Communication Arrangements app
- Create a new arrangement based on the required Communication Scenario
- Select the Communication System created above
- Verify the inbound services are enabled
Configure the Connection
-
Tenant URL: The SAP S/4HANA Cloud tenant URL
- Example:
https://my123456-api.s4hana.cloud.sap
- Example:
-
Communication User: The Communication User name created in SAP S/4HANA Cloud
- Example:
Username
- Example:
-
Password: The Communication User password
| Input | Notes | Example |
|---|---|---|
| Password | Communication User password. | |
| Tenant URL | SAP S/4HANA Cloud API tenant URL (include -api in the hostname). | https://my123456-api.s4hana.cloud.sap |
| Communication User | Communication User name from the Communication Arrangement in SAP S/4HANA Cloud. | COMM_USER_001 |
OAuth 2.0 Authorization Code
key: sapOAuthThis connection authenticates with an SAP S/4HANA Cloud Public Edition tenant using OAuth 2.0 Authorization Code flow. It provides full read/write access to business data and is recommended for production integrations.
This connection is for direct tenant access to SAP S/4HANA Cloud Public Edition. It requires a Communication Arrangement configured by an SAP administrator with OAuth 2.0 enabled.
Prerequisites
- SAP S/4HANA Cloud Public Edition tenant
- Administrator access to configure Communication Arrangements
- A Communication Scenario enabled for the required APIs (e.g.,
SAP_COM_0008for Business Partner API) - An SAP user account with permissions to access the required APIs
Setup Steps in SAP S/4HANA Cloud
To configure OAuth 2.0 access, an SAP administrator must complete these steps:
-
Create a Communication System
- Navigate to Communication Systems app
- Create a new system representing the external integration (e.g.,
PRISMATIC) - Under Users for Inbound Communication, configure OAuth 2.0:
- Authentication Method: OAuth 2.0
- OAuth 2.0 Client ID: Enter a client identifier (e.g.,
PRISMATIC) - Client Type: Public Client (recommended) or Confidential Client
-
Create a Communication Arrangement
- Navigate to Communication Arrangements app
- Create a new arrangement based on the required Communication Scenario
- Select the Communication System created above
- Note the OAuth 2.0 Details from Inbound Communication:
- Client ID
Configure the Connection
Only two fields are required to configure this connection:
-
Tenant ID: The SAP S/4HANA Cloud tenant identifier
- This is the prefix in your SAP URL (e.g.,
my123456frommy123456.s4hana.cloud.sap) - Find this in your browser address bar when logged into SAP
- This is the prefix in your SAP URL (e.g.,
-
Client ID: The OAuth 2.0 Client ID from the Communication Arrangement
- Navigate to Inbound Communication and click OAuth 2.0 Details to view the Client ID
-
Scopes (optional): Space-separated OAuth scopes
- Leave empty to use default scopes
- Specify API-specific scopes if required by your Communication Arrangement
In the Communication Arrangement, navigate to Inbound Communication and click OAuth 2.0 Details to view the Client ID.
Authorization Flow
When you connect using this method:
- Enter your Tenant ID and Client ID in the connection form
- Click Connect - you will be redirected to SAP's login page
- Log in with your SAP user credentials (your personal SAP username and password)
- Grant authorization for the integration to access SAP on your behalf
- You will be redirected back to complete the connection setup
During the OAuth flow, you log in with your SAP user account credentials - not the Communication System credentials. Your SAP user must have the appropriate authorizations to access the APIs defined in the Communication Arrangement.
For detailed setup instructions, refer to:
| Input | Notes | Example |
|---|---|---|
| Authorize URL | The OAuth 2.0 authorization endpoint for SAP S/4HANA. | https://my410414.s4hana.cloud.sap/sap/bc/sec/oauth2/authorize |
| Client ID | The OAuth Client ID from the Communication Arrangement. Navigate to Inbound Communication and click OAuth 2.0 Details to view the Client ID. Learn more | TEST |
| Client Secret | Leave empty for Public Client configurations. | |
| Scopes | Space-separated OAuth scopes. Leave empty to use default scopes, or specify API scopes from your Communication Arrangement. | API_PURCHASEORDER_PROCESS_SRV_0001 |
| Tenant ID | The SAP S/4HANA Cloud tenant identifier. This is the prefix in your SAP URL (e.g., 'my123456' from my123456.s4hana.cloud.sap). Learn more | my123456 |
| Token URL | The OAuth 2.0 token endpoint for SAP S/4HANA. | https://my123456-api.s4hana.cloud.sap/sap/public/bc/sec/oauth2/token?client_id=TEST |
Actions
Add Attachment
Uploads an attachment to a business object using the file name, mime type of the attachment, business object type, and business object instance key. | key: addAttachment
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Request Body | Request Body |
Add Item To Purchase Requisition
Adds an item to a purchase requisition using the purchase requisition number provided. | key: addItemToPurchaseRequisition
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Purchase Requisition Number | Purchase Requisition Number | |
| Body | Request Body |
Create Change Record
Creates a change record. | key: createChangeRecord
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Project ID | Project ID | |
| Body | Request Body |
Create Project
Creates a customer or internal project based on the level of information you provide. | key: createProject
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Body | Request Body |
Create Purchase Requisition
Creates a purchase requisition with one or more items. | key: createPurchaseRequisition
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Body | Request Body |
Create Record
Creates a new record in SAP S/4HANA OData V2. For OData V4 APIs, use Raw Request. | key: createRecord
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Record Type | Type of SAP S/4HANA Record, e.g: WorkItemSet | WorkItemSet |
| Body | Request Body |
Create Subscription
Creates business event subscriptions. | key: createSubscription
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Body | Request Body |
Delete Attachment
Deletes the attachment associated with the business object using the document type, document number, document version, document part, logical document ID, archive document ID, business object type, and business object instance key. | key: deleteAttachment
| Input | Notes | Example |
|---|---|---|
| Archive Document ID | Archive Document ID | |
| Business Object Type Name | Business Object Type Name | |
| Connection | ||
| Document Info Record Document Number | Document Info Record Document Number | |
| Document Info Record Document Part | Document Info Record Document Part | |
| Document Info Record Document Type | Document Info Record Document Type | |
| Document Info Record Document Version | Document Info Record Document Version | |
| Linked SAP Object Key | Linked SAP Object Key | |
| Logical Document | Logical Document |
Delete Record
Deletes an existing record in SAP S/4HANA OData V2. For OData V4 APIs, use Raw Request. | key: deleteRecord
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Record ID | ID number tied to the record | 12312313 |
| Record Type | Type of SAP S/4HANA Record, e.g: WorkItemSet | WorkItemSet |
Get Attachment
Reads the attachments associated with a document info record. | key: getAttachment
| Input | Notes | Example |
|---|---|---|
| Order By | Order items by property value | |
| Select | Select property to be returned | |
| Connection | ||
| Document Info Record Document Number | Document Info Record Document Number | |
| Document Info Record Document Part | Document Info Record Document Part | |
| Document Info Record Document Type | Document Info Record Document Type | |
| Document Info Record Document Version | Document Info Record Document Version | |
| Filter | Filter items by property values | |
| Inline Count |
Get Change Records
Reads data of a specific change record based on its universally unique identifier (UUID). | key: getChangerecord
| Input | Notes | Example |
|---|---|---|
| Expand | Expand property to be returned | |
| Select | Select property to be returned | |
| Change Record UUID | NodeID | |
| Connection |
Get Project
Returns details about a customer or internal project. | key: getProject
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Expand | Expand to include related entities | |
| Project ID | Project ID | |
| Select | Select property to be returned |
Get Purchase Requisition
Gets the header details of a purchase requisition using the purchase requisition number provided. | key: getPurchaseRequisition
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Expand | Expand property to be returned | |
| Purchase Requisition Number | Purchase Requisition Number | |
| Select | Select property to be returned |
Get Purchase Requisition Item Details
Gets the item details of all the items in a purchase requisition | key: getPurchaseRequisitionItemDetails
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Expand | Expand property to be returned | |
| Filter | Filter items by property values | |
| Inline Count | ||
| Order By | Order items by property value | |
| Purchase Requisition Number | Purchase Requisition Number | |
| Select | Select property to be returned | |
| Skip | Skip the first n items | |
| Top | Show only the first n items |
Get Record
Retrieve a single record from SAP S/4HANA OData V2. For OData V4 APIs, use Raw Request. | key: getRecord
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Expand | Expand related entities | |
| Filter | Filter items by property values | |
| Inline Count | ||
| Order By | Order items by property value | |
| Record ID | ID number tied to the record | 12312313 |
| Record Type | Type of SAP S/4HANA Record, e.g: WorkItemSet | WorkItemSet |
| Select | Select property to be returned | |
| Skip | Skip the first n items | |
| Top | Show only the first n items |
List Change Records
Retrieves the list of change records in the system. | key: listChangeRecords
| Input | Notes | Example |
|---|---|---|
| Expand | Expand property to be returned | |
| Order By | Order items by property value | |
| Select | Select property to be returned | |
| Connection | ||
| Filter | Filter items by property values | |
| Inline Count | ||
| Skip | Skip the first n items | |
| Top | Show only the first n items |
List Files
Retrieves list of prepared files, based on specific filter conditions. | key: listFiles
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Filter | Filter items by property values | |
| Inline Count | ||
| Select | Select property to be returned |
List Projects
Returns details about all customer and internal projects in the system. | key: listProjects
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Expand | Expand property to be returned | |
| Filter | Filter items by property values | |
| Inline Count | ||
| Order By | Order by property | |
| Select | Select property to be returned |
List Purchase Requisitions
Gets the header details of all the purchase requisitions in the system. | key: listPurchaseRequisitions
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Expand | Expand property to be returned | |
| Filter | Filter items by property values | |
| Inline Count | ||
| Order By | Order items by property value | |
| Select | Select property to be returned | |
| Skip | Skip the first n items | |
| Top | Show only the first n items |
List Records
Retrieve a list of records from SAP S/4HANA OData V2. For OData V4 APIs, use Raw Request. | key: listRecords
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Expand | Expand related entities | Available values (use one): ProjectRoleSet, WorkPackageSet |
| Filter | Filter items by property values | |
| Inline Count | ||
| Order By | Order items by property value | Available values (use one): FileSize, FileSize desc, FileName, FileName desc, MimeType, MimeType desc, CreatedByUser, CreatedByUser desc, CreationDateTime, CreationDateTime desc, LastChangedByUser, LastChangedByUser desc, ChangedDateTime, ChangedDateTime desc |
| Record Type | Type of SAP S/4HANA Record, e.g: WorkItemSet | WorkItemSet |
| Select | Select property to be returned | Available values (use one): DocumentInfoRecordDocType, DocumentInfoRecordDocNumber, DocumentInfoRecordDocVersion, DocumentInfoRecordDocPart, LogicalDocument, ArchiveDocumentID, LinkedSAPObjectKey, BusinessObjectTypeName, SemanticObject, WorkstationApplication, FileSize, FileName, DocumentURL, MimeType, Content, CreatedByUser, CreatedByUserFullName, CreationDateTime, BusinessObjectType, LastChangedByUser, LastChangedByUserFullName, ChangedDateTime, StorageCategory, ArchiveLinkRepository, SAPObjectType, SAPObjectNodeType, HarmonizedDocumentType, AttachmentDeletionIsAllowed, AttachmentRenameIsAllowed, Source, AttachmentContentHash |
| Skip | Skip the first n items | |
| Top | Show only the first n items |
List Subscriptions
Reads subscription information for business events. | key: listSubscriptions
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Filter | Filter items by property values | |
| Inline Count | ||
| Order By | Order by property | |
| Search | Search items by search phrases | |
| Select | Select property to be returned | |
| Skip | Skip the first n items | |
| Top | Show only the first n items |
List Timesheet Entry Collection
Reads data for all workforce’s timesheet entries. It retrieves information about the time recording made by each workforce’s on a particular task and on a particular day. | key: listTimesheetEntryCollection
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Filter | Filter items by property values | |
| Inline Count | ||
| Order By | Order by property | |
| Select | Select property to be returned | |
| Skip | Skip the first n items | |
| Top | Show only the first n items |
Raw Request
Send raw HTTP request to SAP S/4HANA | key: rawRequest
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Data | The HTTP body payload to send to the URL. | {"exampleKey": "Example Data"} |
| File Data | File Data to be sent as a multipart form upload. | [{key: "example.txt", value: "My File Contents"}] |
| File Data File Names | File names to apply to the file data inputs. Keys must match the file data keys above. | |
| Form Data | The Form Data to be sent as a multipart form upload. | [{"key": "Example Key", "value": new Buffer("Hello World")}] |
| Header | A list of headers to send with the request. | User-Agent: curl/7.64.1 |
| Max Retry Count | The maximum number of retries to attempt. Specify 0 for no retries. | 0 |
| Method | The HTTP method to use. | |
| Query Parameter | A list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2. | |
| Response Type | The type of data you expect in the response. You can request json, text, or binary data. | json |
| Retry On All Errors | If true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors. | false |
| Retry Delay (ms) | The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled. | 0 |
| Timeout | The maximum time that a client will await a response to its request | 2000 |
| URL | Input the path only. The base URL from your connection is automatically prepended. For example: /sap/opu/odata4/sap/api_purchaseorder_2/srvd_a2x/sap/purchaseorder/0001/PurchaseOrder | /sap/opu/odata4/sap/api_purchaseorder_2/srvd_a2x/sap/purchaseorder/0001/PurchaseOrder |
| Use Exponential Backoff | Specifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored. | false |
Raw Request - OData
Send an OData GET request to SAP S/4HANA with query parameters | key: rawRequestOdata
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Expand | Expand property to be returned | |
| Filter | Filter items by property values | |
| Inline Count | ||
| Order By | Order by property | |
| Search | Search items by search phrases | |
| Select | Select property to be returned | |
| Skip | Skip the first n items | |
| Top | Show only the first n items | |
| URL Path | Input the path only. The base URL from your connection is automatically prepended. Example: /sap/opu/odata/sap/API_PURCHASEREQ_PROCESS_SRV/A_PurchaseRequisitionHeader | /sap/opu/odata/sap/API_PURCHASEREQ_PROCESS_SRV/A_PurchaseRequisitionHeader |
Update Change Record
Updates header attributes of the change record specified in the request. | key: updateChangeRecord
| Input | Notes | Example |
|---|---|---|
| Change Record UUID | NodeID | |
| Connection | ||
| Body | Request Body |
Update Project
Updates the basic information for a customer or internal project. | key: updateProject
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Project ID | Project ID | |
| Body | Request Body |
Update Purchase Requisition
Updates the header details of a purchase requisition. | key: updatePurchaseRequisition
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Purchase Requisition Number | Purchase Requisition Number | |
| Body | Request Body |
Update Record
Updates an existing record in SAP S/4HANA. | key: updateRecord
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Record ID | ID number tied to the record | 12312313 |
| Record Type | Type of SAP S/4HANA Record, e.g: WorkItemSet | WorkItemSet |
| Body | Request Body |
Update Subscription
Updates business events subscription status using the business event subscriber code, SAP object type, SAP object task code, and business event subscription state code. | key: updateSubscription
| Input | Notes | Example |
|---|---|---|
| Bus Event Subscriber Code | Subscriber ID | |
| Connection | ||
| Body | Request Body | |
| SAP Object Task Code | SAP Object Task Code | |
| SAP Object Type | SAP Object Type |
Update Timesheet Entry Collection
Creates, updates, or deletes workforce timesheet entry based on the data provided in payload. | key: updateTimesheetEntryCollection
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Body | Request Body |
Changelog
2026-01-22
Enhanced Raw Request and Raw Request - OData actions header return structure.
2026-01-14
Added OAuth 2.0 Authorization Code connection for direct access to SAP S/4HANA Cloud Public Edition. This connection uses OAuth 2.0 Authorization Code flow for authentication and is recommended for production integrations. Supports both Public Client and Confidential Client configurations.
2026-01-08
Added Basic Auth connection for direct access to SAP S/4HANA Cloud Public Edition. Users can now authenticate to their production SAP S/4HANA Cloud tenants.