As SAP developers, we frequently navigate the complexities of code, annotations, and metadata while constructing data models with Core Data Services (CDS). Although the capabilities of CDS are remarkable, handling intricate data models solely through code can be quite daunting particularly in extensive enterprise applications. This is where the CDS Graphical Modeler proves invaluable a revolutionary tool within SAP Business Application Studio (BAS) that enhances visual clarity and efficiency in CDS development.
Instead of writing .cds files manually, we can now model our entities, relationships, and services visually, making it easier to understand and communicate your data architecture.
Lets create a dev space and then dive into the CAPM with cds.
Go to BTP COCKPIT Login
First we need to logon to SAP Business Application Studio, you will see a list of the existing dev spaces:
you can use the existing devspace if it is preconfigured else create a devsapce.
After you click on create devspace below screen will appear:
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 we can enter the dev space by clicking the dev space name:
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 | |
4 | |
4 |