CDS Graphical Modeler for VS Code allows the developer to model CDS files in SAP Cloud Business Application development project and enables increased productivity in designing CDS model via the graphical editor
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
SAP core data services (CDS) Graphical modeler is an extension for SAP Business Application Studio or Microsoft Visual Studio Code, which offers developers a graphical UI to perform CDS modeling for SAP CAP (Cloud Application Programming) projects.
Install CDS Graphical Modeler extension from Microsoft Visual Stuido Code Marketplace.
Right click the CDS file in *.cds file extension, click "Open With..." context menu. In the VSCODE popup dialog, click "Open With CDS Graphical Modeler" menu item.
Notice that the CDS file is rendered graphically in the extension canvas. And you will be able to see the entities, properties, entity relationship visually via the navigation properties in the canvas and the property sheet.
New features:
Support of OpenVSX Editors like Devin or Cursor
Integration with ADT (ABAP Development Tools)
The new ADT VS Code extension enables you to connect VS Code to your ABAP server and develop applications. With the CDS Modeler, you can now connect to your projects and visualize all Business Objects, Views, Unions, and Relationships in a diagram.
Execute the command "ABAP: New Destination" and enter the required connection parameters.
Execute the command "ABAP: Add Package as Folder to Workspace", select the destination, and enter a package name.
You will see the package entry in the project's workspace on the left-hand side.
Right-click the package and select "Logon to destination" to show its content.
Right-click one of the subnodes and select "Show in CDS Modeler". If it contains data definition files (.ddls), all definitions and references will be read in and the diagram will be created, loaded, and displayed.
Note: The CDS Modeler displays the diagram in read-only mode because changes cannot be reflected back to the ABAP system. However, if you want to make changes to the diagram—such as adding, editing, or removing entities, properties, or relationships—you can do so by switching off read-only mode using the button in the top-right corner of the diagram header.
Note: There are soft-limit and hard-limit thresholds, editable in the Settings tab, for the number of files that are read during diagram creation. This is to prevent the user from accidentally choosing a project that would take too long to process. The soft-limit will cause a warning to appear; the hard-limit will prevent the attempt entirely.
Better handling of ABAP diagrams using csn files. Support of Simple Types, UNIONs, JOINs, datatypes, etc.
Telemetry and Data Collection
This extension collects usage data to help improve SAP products and enhance the user experience. The collected data is sent to SAP in accordance with our Privacy Statement.
If you prefer not to share usage data, you can disable telemetry by setting sapbas.telemetryEnabled to false in your VS Code settings.