Author: Julian Schmuckli
-
How to transport customizing requests between clients?
As a developer, mostly I create workbench requests inside an SAP system to create development objects. Sometimes you have to change something in customizing tables or you need to change or customizing within a system. The problem with customizing request is, that they are client specific by default. So if you change something in client…
-
How to use MongoDB in combination with SAP CAP?
If you know the SAP Cloud Application Programming model (short SAP CAP), you may already be familiar with the OData interface and the CDS entities, which you can create with it. This is a cool definition framework, where you simply define the properties and associations to business objects and later create from it a real…
-
How to deploy an SAP CAP project to SAP BTP Cloud Foundry without SAP HANA Cloud
In this tutorial, I would like to show case you, how to create a CAP Project and then deploy this project to an SAP BTP Cloud Foundry environment without an SAP HANA Cloud as a database. Instead, we use a simple in-memory SQLite database to store the data. There are many solutions and possibilities which…
-
How to sign in into Cloud Foundry from SAP Business Application Studio with 2FA active?
You may have experienced an error like this, when you have tried to sign in via the SAP Business Application Studio via the normal cf login command: To solve this problem, we can use another simple method which signs you in via the browser and generates a temporary authentication code. For that, we use the…
-
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…
-
Using table comprehensions and reductions
I recently came across to useful features in the new ABAP syntax. These two functions relay on internal tables, where you can do some quick operations on it. Table comprehension The first example loads initially a table or a view to the variable lt_connections. The lt_connections contain later the fields, which are in the work…
-
How to assert an exception message in ABAP Unit test
How may have the requirement to assert in a unit test an exception, which has been thrown. To properly test, if the thrown message is equal to the expected message, we can check the message ID. So first, let’s assume that we have a method, which throws a custom exception. Our exception class contains some…