Category: SAP
-
How to authorize communication users in SAP S/4HANA Cloud, Public Edition?
In SAP S/4HANA Cloud, public edition, you differ between normal application users (Anwendungsnutzer) and communications users (Kommunikationsbenutzer oder auch technische Benutzer). What we want to achieve is, to enable the API_PRODUCT_SRV interface to be able to use it to create materials from external sources. If we try to instantly use the interface without any setup,…
-
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…
-
ABAP Value Optional and Default value
With the new ABAP syntax, you can use the VALUE keyword to extract an entry from an internal table. So as an example, we have defined an internal table called lt_items which should be read with id = 2. So, if an entry with the component id = 2 exists, it will be transferred to…
-
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 create an own switch with the Switch Framework from SAP?
You may have experienced the case, that you must implement something, and then you need to build a switch to simply turn on or off your implementation or a part of it. For that, SAP has implemented the Switch Framework, where you can simply define states of “functions” via switches. In this short demo, I…
-
How to create a simple Z-BAdI definition?
In this short demonstration, I have tried to create a custom Z-BAdI definition for a project. This allows you to build a product report and classes and allowing the customers to build later custom logic thanks to the enhancement spots and BAdIs. Until now, I only have always implemented standard BAdIs from SAP directly. In…
-
How to use and customize ECENV_*?
There are some various transactions with the prefix ECENV_*. Some of them are here, which are standard included: Transaction Description ECENV_CO Connection object ECENV_BP Business partner ECENV_DV Devices Table of possibile ECENV_* transactions in a SAP system. Extending objects When you want to extend an object, we need to create a new subtype from a…
-
How to import an abapGit repository with existing objects in the target system?
You may have asked yourself, how to simply transfer objects from one SAP system to another SAP system easily. For that we can use abapGit, a simple tool, which can be installed via SE38 by a standalone installation. Next that you can export the repository objects into a Github online repository, you may can also…
-
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…