Skip to content

Demo Walkthrough

Ankit Kumar Singh edited this page Sep 9, 2025 · 3 revisions

🚀 Demo Walkthrough – Fleet Management RAP App

This section demonstrates how to test and preview the Fleet Management RAP application once all layers (CDS, Projection, UI Annotations, Behavior, and Service) have been created.


1️⃣ Service Binding Preview

  1. Navigate to the Service Binding in Eclipse ADT.
  2. Make sure the service is Published.
  3. Click Preview to launch the generated Fiori Elements app.

📸 Example:

Service Binding


2️⃣ Fiori Elements App – Vehicle List

  • The Fleet (Vehicle) entity is the root object.
  • Upon opening, you will see a list report of vehicles with columns such as:
    • Vehicle ID
    • Registration Number
    • Vehicle Type
    • Brand, Model
    • Cost Price, Currency

Fleet (Vehicle) List

👉 These columns are shown because of the @UI.lineItem annotations defined in the metadata extensions.


3️⃣ Object Page – Vehicle Details

  • Selecting a vehicle navigates to the Object Page.
  • Details shown include:
    • Vehicle ID, Registration No, Vehicle Type, Brand, Model
    • Purchase Date, Cost Price, Currency
    • Fuel Type, Capacity, Unit, Plant

Fleet (Vehicle) Details

  • Facets group the related child entities:
    • Trips (association to ZAKS_P_CDS_TRIP)
    • Maintenance (association to ZAKS_P_CDS_MAINTENANCE)

Fleet (Trip & Maintenance) List

📌 Thanks to @UI.facet annotations, these appear as tabs/sections.


4️⃣ Child Entity – Trips

  • Inside the Trip facet, you can view the trips linked to the selected vehicle.
  • Fields like Trip ID, Driver ID, Origin, Destination, Distance, Trip Cost, and Cargo Type are displayed.
  • Line items are controlled by @UI.lineItem annotations in the Trip metadata extension.

Fleet (Trip Facet) Details


5️⃣ Child Entity – Maintenance

  • Inside the Maintenance facet, you can view all maintenance records of the vehicle.
  • Columns include Service Date, Service Type, Workshop Name, Service Cost, Currency, Odometer Reading, etc.
  • This information comes from the @UI.lineItem annotations in the Maintenance metadata extension.

Fleet (Maintenance Facet) Details


6️⃣ CRUD Operations

Since this is a Managed RAP BO:

  • Create → Add new Vehicle, Trip, or Maintenance record directly from the Fiori Elements UI.
  • Update → Edit existing records.
  • Delete → Remove records with automatic consistency checks.

👉 No manual implementation is needed for standard CRUD as RAP handles it.


7️⃣ End-to-End Flow Example

  1. Create a Vehicle (e.g., Vehicle ID: V1001).
  2. Add a Trip for that vehicle (e.g., Origin: Delhi, Destination: Mumbai).
  3. Add a Maintenance record (e.g., Service Date, Service Type: Oil Change).
  4. Navigate back to the Vehicle Object Page → Trips and Maintenance facets now show related records.

This demonstrates the complete lifecycle management of a vehicle in the Fleet Management app.


✅ Summary

With this walkthrough:

  • You previewed the Fleet Management app using Fiori Elements.
  • Explored the root entity (Vehicle) and its child entities (Trip, Maintenance).
  • Verified CRUD operations using the Managed RAP BO approach.

This validates that the RAP model, annotations, and service exposure are working as expected.

Clone this wiki locally