Business Service @ ABAP RESTful Application Programming Model (On-Premise)
September 12, 2022
  1. Design / Prototype
  2. Create Dictionary Objects
  3. Core Data Services (CDS)
  4. Business Service
  5. Business Object Behavior
  6. Create a Fiori App
  7. Source (GitHub) for Data Model/Behaviour/Service
  8. Source (GitHub) for User Interface (Fiori Elements App)

Business Service Definition

Service scope is confirmed using Service Definition.
We can provide the list of entity sets that need exposure.
@EndUserText.label: 'Phone Book'
define service ZINTLRA_UI_PB_HEAD {
  expose ZINTLRA_C_PB_HEAD as Contact;
  expose ZINTLRA_C_PB_ITEM as PhoneNumber;
  expose ZINTLRA_I_PB_USER as User;
  expose ZINTLRA_I_PB_CAT as Category;
  expose ZINTLRA_I_PB_TAG as Tag;
}

Business Service Binding

We bind the service definition to the corresponding protocol using the Service Binding
Provide the Protocol / Bind Type
Tag the Service Definition
Add more service definitions if required  and Activate
Use Publish button on the right side to Publish the service

<< To Top

App Preview from Service Binding

Right-click on the root node in the Published Service and select App preview

App Preview URL just for reference

https://<hostname>:<port>/sap/bc/adt/businessservices/odatav2/feap?feapParams=<params>&sap-ui-language=EN#/?sap-iapp-state–history=1&sap-iapp-state=3

<< To Top