Professional Documents
Culture Documents
S/4 Hana System Sap Netweaver Gateway Hana Studio Sap Web Ide Cloud Platform
S/4 Hana System Sap Netweaver Gateway Hana Studio Sap Web Ide Cloud Platform
BOPF Framework using CDS annotations, without using a single line of UI5 code.
Pre-requisites for this Application:
S/4 HANA System
SAP NetWeaver gateway
HANA Studio
SAP Web IDE Cloud Platform
Step 1: First, we need a database table in S/4 HANA system to perform CRUD Operations on this table.
Step 2: Open HANA Studio to create CDS View on top of database table
Step 3: Add your backend S/4 HANA system in HANA Studio as shown below.
Click on ABAP Project as shown in the above screen and add backend connector. Once we add the
backend connector in HANA Studio, we should create CDS View for the database table.
Step 5: We can provide input selection and also arrange order of fields in the Fiori application.
This annotation creates an OData service for the consumption view as shown below.
Step 7: Register and activate the OData service in S/4 HANA system.
Navigate to transaction: /n/iwfnd/maint_Service .
Click on Add service button as shown below.
Provide technical service name and click on Get services button as shown below.
Next click your service and activate the service as shown below.
So far, OData service registration and activation part is completed.
Step 8: Implement the BOPF Framework using CDS Annotations to perform CRUD operations on
ZCOVID_COUNTRY Table.
@AbapCatalog.sqlViewName: 'ZCOVID_CTRY'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@Metadata.allowExtensions: true
@ObjectModel.modelCategory: #BUSINESS_OBJECT
@ObjectModel.compositionRoot: true
@ObjectModel.transactionalProcessingEnabled: true
@ObjectModel.createEnabled: true
@ObjectModel.updateEnabled: true
@ObjectModel.deleteEnabled: true
@OData.publish: true
@ObjectModel.writeActivePersistence: 'ZCOVID_COUNTRY'
ctry.zconfirmed,
ctry.zrecovered,
ctry.zdeceased
Step 9: Configuring Application in Cloud Web IDE using SAP Fiori Elements (List report application).
Step 10: Create List report application, select list report application as shown below.
Click ‘Next’ button.
Select your back-end system and provide your service details as shown below.
Click ‘Next’ button.
Step 11: Select your annotation file and click on Next button as shown below.
Read Operation:
If we need to view the existing data, we can view it in the initial screen of the application.
Update Operation:
If we need to update the data, select the row and click the entry.
Delete Operation:
If we need to delete a record, select the row and click on corresponding entry.
Click on delete button on top of the screen as shown in the screen below.
If you click on delete, the corresponding entry will be deleted from the database table