Author: Julian Schmuckli
-
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…
-
Convert a selection range table to the alpha numbers for later queries
If you have an OData service, where you fetching a data type, that has an alpha conversion routine active, you may have experienced also the problem, that you need to convert your select options to work properly with SQL queries. To do that, we create a small private method in our gateway class. Before we…
-
How to add a generic filter for an OData service?
You may want to automate the filter for your already retrieved data from the OData service in ABAP. This allows you to just send that data back, that the frontend has been requested. Please note that you already need an internal table, filled with all the data, in the best case also unfiltered to use…
-
How to automatically order your entity set in an OData service in ABAP?
If you want to give the $orderby property via an OData service an automatically sort function, you can simply use a small piece of code, to adjust the entity set, which will be later returned to the OData gateway classes in ABAP. You can see the IT_ORDER importing parameter in the signature of the GET_ENTITYSET…
-
How to include Google AdMob in a SwiftUI application?
To monetize your iOS application, you can use a various of services like Google AdMob or Meta’s Audience Network. In this tutorial, I want to quickly show you how to setup the Google AdMob SDK into your SwiftUI application. Prerequisites Make sure also that you already have included the SDK via pod or Swift Package…