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 introduce a new graphical modeling tool "CDS Graphical Modeler" for SAP Business Application Studio. CDS Graphical Modeler is a graphical tool that can help the CAP developers to do complex CDS entity modeling without having to use the code editor. The CAP developers can use the CDS Graphical Modeler to do CDS modeling including creating entities, projections, extensions, services, annotations, adding imports and manage CDS artifacts properties, etc.

Introduction to SAP CDS Graphical Modeler


SAP CDS Graphical Modeler is a graphical modeling tool to allow the CAP CDS developer to visually design the CDS models. Technically it is a predefined extension for the “Full Stack Cloud Application” dev space for SAP Business Application Studio, so in order to use the CDS Graphical Modeler in your CAP projects, you just need to create a dev space for “Full Stack Cloud Application” in the SAP Business Application Studio. CDS Graphical Modeler is also an optional extension for other types of dev space in SAP Business Application Studio, for example, "SAP Mobile Application", so you can also use it in the dev space you created by manually selecting it. CDS Graphical Modeler depends on "CDS Tools" and "Java Tools", so ensure to select "CDS Tools" and "Java Tools" as well while creating the dev space.

 

Prepare Your Dev Space


First logon to SAP Business Application Studio, you will see a list of the existing dev spaces:


Click "Create Dev Space" button and you will see:


Enter a dev space name, and select "Full Stack Cloud Application" category, then click "Create Dev Space" button to create the dev space.


Wait until the newly created dev space is in "RUNNING" status:


Now you can enter the dev space by clicking the dev space name:



Create a CAP Project


Now let’s create a sample CAP project using the project wizard. Click “Start from template” from the welcome page and launch the project wizard.


Please select “CAP Project” from the template in the project wizard:


Click “Start” button and enter the CAP project details in the next page of the project wizard. Please check “Basic Sample Files” and ensure the project wizard to generate sample CDS files for you.


Click “Finish” button to close the wizard and the dev space will refresh again and this time the newly CAP project folder will be in the project tree:



You can open db/data-model.cds in the project using the code editor:


And now you can open the CDS file using the CDS Graphical Modeler:



And you can also open the service cds file srv/cat-service.cds:



CDS Graphical Modeler for VSCODE


The other news is that we will try to release CDS Graphical Modeler for VSCODE pretty soon so that developers who're using VSCODE more than Business Application Studio will also be able to use CDS modeler conveniently in VSCODE environment in their CAP/CDS projects.





Conclusion


As a summary, in this blog post we introduce a new graphical modeling tool "CDS Graphical Modeler", an SAP Business Application Studio extension. And also we demonstrate how to create "Full Stack Cloud Application" dev space in SAP Business Application Studio that includes the CDS Graphical Modeler extension, as well as how to open CDS files in a simple CAP project using the CDS Graphical Modeler.
3 Comments