DEVELOP AN E2E INTEGRATION SCENARIO WITH SAP GATEWAY, SAP HANA AND SAPUI5
– 02.12.2014 –> Added link to YouTube Video
In our d-code hands-on session INT260 the particpants created a SAP Fiori-like application end-2-end. This included the creation of the required OData service from scratch, making use of a CDS view (Core Data Services) from HANA. The SAP Fiori-like application itself was a SAP UI5 application which was to be generated using the new SAP Web IDE.
Though this was a 4h hands-on session our plan is to provide a short video that shows the most important aspects for those that were not able to join or just want to have an overview what needs to be done here.
The result is a 5 minutes video that has been uploaded to our YouTube Channel:
OData service development
In our demo we will create a simple OData service having just one entity set for business partners based on a CDS view that is accesible from the ABAP stack. As described in more detail in the following document New Data Modeling Features in SAP NW ABAP 7.4 SP5 “CDS entities are integrated into the ABAP Dictionary and ABAP language using the same infrastructure which exists for classical Dictionary views.”
1. Data Model Defintion
The whole process starts with the creation of a Service Builder project.
Here, as a first step, we import a DDIC structure which is based on a CDS view.
2. Service Implementation
After having created an entity type and an entity set based on importing the corresponding DDIC structure the service implementation is performed by mapping the business entity (the CDS view) to the entity set.
After having done the mapping via drag and drop the service implementation is generated without the need to write a single line of code.
After having performed the service implementation the project is generated and the service is registered in the backend.
3. Service Maintenance
When the runtime artifacts have been generated (step 2) the service is also registered in the backend system and can now be published via the Service Builder in the connected Gateway Server (Hub) system.
A first test is done using the SAP Gateway client.
Generation of a SAP Fiori like application
In our hands-on we used the predecessor of SAP Web IDE to generate a SAP Fiori like application. SAP Web IDE allows amongst others to generate a simple application with a list / detail view.
Testing the application
The generated app is finally tested in the browser.
The summary is shown at the end of the vidoe(06:02)