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

Publish an OData service for remote consumption as an API

Enable another system, such as STP, to securely access data by creating: an inbound communication scenario, arrangement, system, and user in the provisioning system of SAP BTP, ABAP Environment; and by providing a service metadata file

Overview

🎓 intermediate 45 min. ABAP DevelopmentIntermediateSAP BTP ABAP EnvironmentSAP Business Technology PlatformS 4hana Cloud ABAP Environment

You will learn

  • In the provisioning system, how to expose a CDS view as an OData service using a Service Binding
  • How to wrap this OData service in an inbound communication scenario, so that it can be accessed from another instance of SAP BTP, ABAP environment
  • How to make the provisioning system service available for connection from other ABAP systems
  • How to create an XML metadata file representing the remote service This approach involves some overhead for one consumer; however, the advantage is that you can add several consumer systems, or users (for example, with different authentication) pointing to the same HTTP service, wrapped in the same Communication Scenario. This tutorial mission was written for SAP BTP ABAP Environment. However, you should also be able to use it in SAP S/4HANA Cloud Environment in the same way. > Throughout this tutorial, replace ### or 000 with your initials or group number.
    step0-overview-scm2
    step0-overview-scm2
Julie Plummer J Julie Plummer July 16, 2025
Created by March 9, 2023
Contributors

Prerequisites

Prerequisites

Steps

Step 1 Create package in provisioning system

You start in your provisioning system by creating the ABAP artifacts in ABAP Development Tools (ADT), starting with a package.

  1. select the ABAP Cloud Project and choose New > ABAP Package from the context menu.

  2. Enter the following and choose Next:

    • Name = Z_INBOUND_ODATA_###
    • Description = Provide access from remote system - OData
    • Package type = Development
  3. Choose Create new transport request, enter a description, such as Provide access from remote system - OData, then choose Finish.

  4. Add it to Favorite Packages.

Step 2 Create inbound Communication Scenario
+
Step 3 Add service binding
+
Step 4 Create Communication System
+
Step 5 Create inbound communication arrangement
+
Step 7 Create service metadata file
+
Step 8 Test yourself
+
Step 9 Next steps
+

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 package in provisioning system 2. Create inbound Communication Scenario 3. Add service binding 4. Create Communication System 5. Create inbound communication arrangement 6. Check service URL in Postman (Optional) 7. Create service metadata file 8. Test yourself 9. Next steps

Learn more →