Category: SAP RESTful Application Programming
-
How to update a standard button text in SAP Fiori Elements in a RAP app?
I recently had the requirement to change the text of a standard button like “Edit” in the object page. We have the following button, and we want to change it from “Bearbeiten” to “Abschliessen”. Create a folder structure as follow: When using a List report, then use ListReport instead of ObjectPage. In our i18n.properties file…
-
How to extend an association in a CDS view?
I recently had a problem to solve, where I had a to get more details about a specific sales order, where I just had the corresponding ID. In the standard view, there was no following association to this sales order (I_SalesOrder) so I had to find out, how to solve this problem. What we have…
-
ABAP Class: cl_rebf_ddic_tabl
Today, I want to show you a cool class in order how to check fields in a table or fetching the complete list of components in a structure/table. Also, you are even able to create a global structure or table dynamically with this class. In the following snippet, you see a simple approach, how to…
-
How to use table functions with CDS views?
In this short tutorial, I want to showcase you, how to use table functions. Table functions allows you to simply define a CDS structure and later a view to be consumed by other CDS views or custom ABAP logic. The underlaying data acquisition differs from the normal CDS view entities. It can refer to a…
-
The different CDS data definition types
There are a couple of different CDS view entity types, which can be used in ABAP Cloud to define selections on database tables and other existing data definitions. When we want to create a such data definitions, we have a various of options to choose from. Most of them are really just templates with extended…
-
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…