SAP S/4HANA® Cloud OData v2.0

SAP S/4HANA® Cloud allows you to perform create, update, query, read and delete operations on supported entities using the OData based REST interface.

Actions

  • updateStatisticalKeyFigure: Update a StatisticalKeyFigure

  • deleteStatisticalKeyFigure: Delete a StatisticalKeyFigure

  • queryStatisticalKeyFigureTexts: Retrieve StatisticalKeyFigureTexts

  • queryStatisticalKeyFigure: Retrieve StatisticalKeyFigures

  • createStatisticalKeyFigure: Create a StatisticalKeyFigure

  • deleteStatisticalKeyFigureText: Delete a StatisticalKeyFigureText

  • updateStatisticalKeyFigureText: Update a StatisticalKeyFigureText

  • readStatisticalKeyFigure: Retrieve a StatisticalKeyFigure

  • createStatisticalKeyFigureText: Create a StatisticalKeyFigureText

  • readStatisticalKeyFigureText: Retrieve a StatisticalKeyFigureText

  • createPurchaseOrder: Create a purchase order

  • updatePurchaseOrder: Update a purchase order

  • queryPurchaseOrder: Retrieve all purchase order

  • readPurchaseOrder: Retrieve a single purchase order

Custom Actions

SAP S/4HANA® Cloud OData v2.0 connector lets you create your own custom actions for performing specific tasks. The actions you create look and work exactly like the other actions do.

Learn more about how to create custom actions.

Steps to use Custom Endpoints
  1. To use a custom endpoint or service that is not included in the standard connector service list, utilize the specific connection parameter, Service Name, when defining a connection. For example, to use a custom endpoint like https://host:port-api.s4hana.ondemand.com/sap/opu/odata/sap/<function_Name>, populate the following connection configuration fields: Server URL: https://host:port-api.s4hana.ondemand.com/sap/opu/odata Service Name: sap/<function_Name>

  2. Save and close the connection.

  3. When configuring a cloud connector service, select Custom Service from the service list to access operations on the specified endpoint within the connection. Choose the Entity and required fields from the available options.

  • Each new custom endpoint or service requires a separate connection, allowing operations solely on the specified endpoint. The Custom Service function will only work with a connection that has explicitly defined the Service Name.

  • Not all entity operations (Query, Update, Delete, Create, and Read) visible in the connector may be enabled for the custom endpoint. Ensure that you choose permissible operations allowed in your backend service definitions.

  • Ensure accurate entry of the Service Name in the connection, as connection validation is not enabled. Custom endpoint validation is not performed while saving the connection.

  • It is not recommended to use the standard service definition where the Service Name is populated in the connection configuration and is intended to be used with a custom endpoint or service.

  • It is not recommended to populate the Service Name value in the connection configuration when using a standard functional area or service.