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

Execute an Outbound Service from Custom Business Object Logic

Call an external service of SAP Business Accelerator Hub from inside the logic implementation of a custom business object.

Overview

🎓 intermediate 15 min. ABAP ExtensibilityIntermediateCloudSAP S 4hana Cloud

You will learn

  • How to get needed service data from SAP Business Accelerator Hub Sandbox
  • How to configure outbound service connection in SAP S/4HANA Cloud system
  • How to call and process an outbound service in custom business object logic

Prerequisites

Prerequisites

Steps

Additional Info

  • The example application of Bonus Entitlement will be enhanced by a feedback functionality. The manager’s feedback will be translated automatically into English by calling the externally available service SAP Translation Hub of SAP.
  • Be aware that the example is done with the SAP Business Accelerator Hub Sandbox system only. This shall only give an idea on how it works and cannot be used productively.
  • Tutorial feasibility last checked with SAP S/4HANA Cloud Release 2602

Step 1 Excursus - Try out the service in SAP Business Accelerator Hub

To get to know the SAP Translation Hub service first, you can try it out in SAP Business Accelerator Hub.

Try out of SAP Translation Hub on SAP Business Accelerator Hub
Try out of SAP Translation Hub on SAP Business Accelerator Hub

  1. Go to Try out of SAP Translation Hub on SAP Business Accelerator Hub

  2. Expand the Translate operations section .

  3. Choose the POST operation /translate.

  4. Switch to Body section of REQUEST.

  5. Exchange the default body with this simplified example.

    JSON
    {
        "sourceLanguage": "en",
        "targetLanguages": [
            "es"
        ],
        "units": [
            {
                "value": "Your text to be translated"
            }
        ]
    }
  6. Hit the Run button.

  7. The RESPONSE to the service call will appear.

Step 2 Get service end point and API Key
+
Step 3 Create Communication System for Sandbox
+
Step 4 Create custom communication scenario for outbound service
+
Step 5 Create communication arrangement for outbound service
+
Step 6 Extend custom business object data structure
+
Step 7 Enhance custom business object logic
+
Step 8 Test the application
+
Step 9 Test yourself
+

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. Excursus - Try out the service in SAP Business Accelerator Hub 2. Get service end point and API Key 3. Create Communication System for Sandbox 4. Create custom communication scenario for outbound service 5. Create communication arrangement for outbound service 6. Extend custom business object data structure 7. Enhance custom business object logic 8. Test the application 9. Test yourself

Learn more →