SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

8 - Create Action to Get Data from SAP S/4HANA Cloud

Create an action project for defining the API call for retrieving additional data about the business partner, who ID was sent in the event.

Overview

🎓 intermediate 20 min. SAP BuildIntermediateSAP Integration SuiteSAP Build Process Automation

You will learn

  • โœ”How to create an action (for calling APIs)
  • โœ”How to add an action into your process
  • โœ”How to configure an action
  • โœ”How to work with the data returned by the action
Daniel Wroblewski D Daniel Wroblewski April 20, 2025
Created by March 11, 2025
Contributors

Prerequisites

Prerequisites

Steps

Intro

IT administrators can create “actions” to expose backend APIs to developers of processes or apps (using SAP Build Apps).

From within a package of APIs, actions let the admin expose only the APIs that are meaningful to the developers, and to select a subset of the input and output parameters to make complex APIs easier to use.

Actions specify the details of the API call, but do not specify a backend system. The developer of the process or app will later โ€“ during design time โ€“ assign the appropriate destination to the action.

Step 1 Create action to get a business partner
โ€”

  1. Open SAP Build, and click Actions.

    Open Actions
    Open Actions

  2. Click Create.

    Scroll down and select SAP Business Accelerator Hub.

    SAP Business Accelerator Hub
    SAP Business Accelerator Hub

    Enter BusinessPartner in the search.

    Business partner search
    Business partner search

    Select Business Partner (A2X) from SAP S/4HANA Cloud Public Edition.

  3. The next screen just shows all the API calls inside this API package, for your information.

    Review APIs
    Review APIs

    Click Next.

  4. Now you can name the action.

    Name action
    Name action

    Keep the defaults, and click Create.

    The newly created action opens, again showing all the OData calls. But now you can select which ones to include in your action.

  5. In the search, enter Retrieves business partner data.

    Open the Business Partner node, and select the /A_BusinessPartner(’{BusinessPartner}’) API call.

    Select API
    Select API

    Click Add.

    You now get the action where you can modify the inputs and outputs.

    Action opened
    Action opened

  6. Click Output.

    Check the d node, and then expand it.

    Select outputs
    Select outputs

    Uncheck the following fields (it might help to sort by Key):

    Sort
    Sort

    • BusinessPartner
    • BusinessPartnerGrouping
    • CreationDate
    • FirstName
    • LastName
    • NameCountry

    Scroll back to the top and click Remove and then confirm Remove.

    Remove outputs
    Remove outputs

    You should be left with just a few fields in the output.

    Outputs
    Outputs

  7. Click Test.

    Select Manual under Host.

    For the URL, enter:

    URL
    https://s4-mock-server-with-bp-created-events.cfapps.eu10.hana.ondemand.com/sap/opu/odata/sap/API_BUSINESS_PARTNER

    Set up test
    Set up test

    Set the authentication to Basic Authentication and then enter the user and password distributed in the CodeJam by your instructor.

    Add credentials
    Add credentials

  8. For the BusinessPartner, input the ID for the business partner you created (or enter this ID: 1003769).

    Click Test.

    You should get data from the backend.

    Test successful
    Test successful

  9. Click Save.

    Save action
    Save action

    Click Release, then click Release to confirm.

    Release action
    Release action

    Click Publish, and then click Publish to confirm.

    Publish action
    Publish action

Step 2 Create destination to SAP S/4HANA Cloud
+
Step 3 Add destination to Control Tower
+
Step 4 Add action to process
+
Step 5 Update approval form
+
Step 6 Release and deploy process
+
Step 7 Trigger process
+
Step 8 Monitor process
+
Step 9 Further study
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 9
1. Create action to get a business partner 2. Create destination to SAP S/4HANA Cloud 3. Add destination to Control Tower 4. Add action to process 5. Update approval form 6. Release and deploy process 7. Trigger process 8. Monitor process 9. Further study

Learn more →