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

Generate your own custom UI Service based on a Business Object Interface

Business Object Interfaces are provided by SAP in order to release business objects such as the business objects SalesOrder or PurchaseRequistion so that these business objects can used or extended by customers using the ABAP Cloud development model. By defining so called stability contracts it is thus possible to use such C1-released Business object interfaces within other software components. Also customers and partners can use this approach if they want to allow the usage of their business objects within other software components.

Overview

🎓 beginner 15 min. ABAP DevelopmentBeginnerSAP Business Technology Platform

You will learn

  • How do generate your own Custom UI Service based on a C1-released Business Object Interface. For this tutorial we will use the Business Object Interface I_BankTP which is also available in SAP BTP ABAP Environment trial systems.
  • How to identify which authorization objects are needed to consume a SAP C1-released Business Object Interface.
Andre Fischer A Andre Fischer June 18, 2024
Created by June 18, 2024
Contributors

Prerequisites

Prerequisites

  • SAP BTP, ABAP Environment
  • SAP S/4HANA, ABAP Environment
  • A package (e.g. ZDEMO_UI_INTERFACE_###) located in the software component ZLOCAL

Steps

In order to make it easier for customers to build custom UI’s on top the aforementioned released business objects SAP has provided a wizard as part of the ABAP Development Tools (ADT). This tutorial shows how you can use this wizard to generate your own custom UI on top of the SAP C1-released Business Object Interface I_BankTP. The same approach can be used for C1-released Business Object Interfaces that have been built by customers and partners.

Step 1 Find the released Business Object Interface

  1. In the Project Explorer select the Released Objects tree and then the node USE_IN_CLOUD_DEVELOPMENT. Here you have to open the folder Core Data Services and then the folder Behavior Definitions where you find the C1-released Business Object Interface I_BankTP.

    interface
    interface

  2. Right-click on the interface I_BankTP and select Generate ABAP Repository Objects

    interface
    interface

  3. Select OData UI Service and then Next

    generator
    generator

  4. Select the package ZDEMO_UI_INTERFACE_### by pressing the Browse button and press Next.

    generator
    generator

  5. The generator finishes with the Configure Generator screen. When you want to change the names of the repository objects that will be generated you can do so by selecting the entries Service Projection Entities, Service Projection Behavior, Service Definition and Service Binding.

    generator
    generator

  6. When selecting Service Projection Entities you can change the suggested name of the CDS projection view(s).

    Service Projection Entities
    Service Projection Entities

  7. When selecting Service Projection Behavior you can change the suggested name of the Behavior Implementation Class. In addition you can decide whether your UI shall support draft as well when the underlying RAP business object provides draft, by checking with draft.

    Service Projection Behavior
    Service Projection Behavior

  8. When selecting Service Definition you can change the suggested name of the Service Definition Name.

    Service Definition
    Service Definition

  9. When selecting Service Binding you can change the suggested name of the Service Binding Name. By pressing Next you can start the generation process.

    Service Binding
    Service Binding

  10. The wizard shows an overview of the repository objects that are going to be generated. Press Next.

    eclipse
    eclipse

  11. Select a transport or create a new transport and press Finish to start the generation of the repository objects.

    eclipse
    eclipse

Step 2 Publish service and test the application
+
Step 3 Troubleshooting
+
Step 4 More information
+
Step 5 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 5
1. Find the released Business Object Interface 2. Publish service and test the application 3. Troubleshooting 4. More information 5. Test yourself

Learn more →