/Teched17

Code for the demo I gave at SAP TechEd 2017

Primary LanguageABAPMIT LicenseMIT

✈️ Demo Code

alt text

alt text

To install the code onto your ABAP system you will need to use the abapGit project by @larshp.

Steps to Install

Import CDS Objects with abapGit

Go into ZABAPGIT and clone this repo alt text

Create a package for the code

alt text

Assign a transport

alt text

Activate the ABAP Objects alt text

At the end of importing your package should look like alt text

Create OData services and models

Once all objects are activated you will need to maintain the MPC, DPC and Annotation locations. The below screenshot shows where to find this in the IMG.

alt text

Create Model ZTE_FLIGHT_MDL alt text

Create the corresponding Service ZTE_FLIGHT_SRV and Assign the above Model to Service alt text

Create the Annotation Model ZTE_FLIGHT_ANNO_MDL alt text

And assign the Annotation Model ZTE_FLIGHT_ANNO_MDL to the ZTE_FLIGHT_SRV service

alt text

Repeat the same steps above for the OVP Service

Create Model ZTE_FLIGHTOVP_MDL

alt text

Create the corresponding Service ZTE_FLIGHTOVP_SRV and Assign the above Model ZTE_FLIGHTOVP_MDL to Service

alt text

Create the Annotation Model ZTE_FLIGHTOVP_ANNO_MDL and assign to the service ZTE_FLIGHTOVP_SRV

alt text

Activate Services

Find the "Activate and Maintain Services" entry in the IMG

alt text

Select the "Add Selected Services" button, locate the 2 "ZTE_FLIGHT*" Services and press "Add Selected Services"

alt text

Should see Service Creation in the log alt text

Confirm by finding Services in list "Service Catalog" list alt text

Import SAPUI5 applications

The two SAPUI5 applications are zipped up and need to be imported manually alt text

Download and extract the SAPUI5 zipfile ZFLIGHTLIST to a tmp directory

call report /UI5/UI5_REPOSITORY_LOAD in SE38 and upload from tmp directory alt text

Confirm and Upload alt text

repeat for the ZFLIGHTOVP application alt text

Confirm and Upload alt text

now locate and run the ZFLIGHOVP app, should be somewhere like http://server:port/sap/bc/ui5_ui5/sap/zflightovp/webapp/index.html?sap-client=001

alt text

Lastly you may need to create data for the Flight Data Model

Goto Transaction SE38 and run SAPBC_DATA_GENERATOR

Enjoy 😃 ✈️