Tag: restful application programming
-
How to show a table of sub positions in ABAP CDS metadata extension definition?
Let’s assume we have a data model, where we have shares, and each share has its own transaction history. For that we use an association [0..*] from the one share to the x transactions. Now what we want to achieve is to display all these transactions inside the identification view. To add this table, which…
-
How to use the connected fields in ABAP CDS definition?
It took me a long time to figure out, how to use exactly the connected fields annotation in ABAP CDS definition. In CAP CDS it was somehow clearer to unterstand, how to combine two fields in a template and then getting these values in a sub annotation. There is an active SAP Help page to…
-
Setup a simple access control for your CDS View
When we define a CDS view with our ADT tools, we provide a useful tool to query data from database tables and more. Since may your data has to been protected, we can use the access control to set the visibility of our data, who can access it and exactly what data can be queried.…
-
How to add a determination for your SAP RAP application?
With a determination, you can modify an entry via the Entity Manipulation Language to fill out automatically the necessary fields needed. For example, when you type a username inside a field, you may want to extend that in the database as well as in the view with the full name, so that it can be…
-
How to enable a value help in a CDS view for Fiori Elements?
In this short tutorial, I would like to show you how to simply apply a value help to your CDS fields by simply annotate them with another database table. First of all, we need a simple database table, that already contains some information. We have here a table (ZAIRORTS) containing two entries with airport id…
-
How to register a validation event in SAP RAP for create and update?
At a certain point in our RESTful Application Programming (RAP) model, we want maybe to extend it with our own logic. Mostly, we want to this, when we create or update an entry in our database, as in the following image: After we continue from this dialog and click save, we want to trigger our…
-
The different behavior files in SAP RAP
I’m new in SAP RESTful application programming and I had to figure out, how the different files of behavior project, definition and implementation works. When we create a RAP project depending on our ZCONNECTIONS database table, we receive by default the following files: In this post, we focus on the arrow noted files, where we…