Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
Xiao-fei_Song
Advisor
Advisor
In this blog post, we will demonstrate how to visualize the CAP models defined in SAP CAP SFLIGHT app.

Visualization for CAP SFLIGHT CDS Models


SAP CAP SFLIGHT app is defined in SAP CAP SFLIGHT app, and in this blog post we'll use CDS Graphical Modeler to visualize its CDS models.

Clone the sflight app from the github repository, and then open db/schema.cds using VSCODE:


Right click schema.cds in VSCODE file explorer and select "Open With..." context menu item:


In the VSCODE command popup select "CDS Graphical Modeler" to open this CDS file:


and the CDS model defined in db/schema.cds is visualized in CDS Graphical Modeler:


and you can do the same for srv/travel-service.cds:



Summary


As a summary, in this blog post we demonstrate how to visualize CDS data model and service model using CDS Graphical Modeler for SAP CAP SFLIGHT app. And you can install CDS Graphical Modeler for VSCODE in VSCODE marketplace atCDS Graphical Modeler for VSCODE.