Friday 31 March 2023

Wrapper program for BD10 and BD12

If you have a scnerio that you want to call BD10, so that you could create idocs for only those materials which are changed alongwith full details and same for customer master(BD12). Then below code can help you fasten the build process.

1. A class is created with 2 methods, first is to read the change pointers and the other method is to update the BDCP2 Process indicator, so that same records are not processed again with BD10 or BD12.
2. A custom program is created to call these 2 methods with input field as message type.

Wednesday 22 March 2023

How to Validate Data on Maintenance View(SM30) Before Save

In this blog post, I would like to show you how to validate data on maintenance view screen before save.

Maintenance views are very useful interfaces to create a viewer and editor for database tables. And with events and search helps, we can make them even more useful.

In this blog post, we will create a table, where we can map company codes to special ranges for purchase orders. Table will have only 3 fields, client, company code and range. Before saving data on maintenance view, we will check both company code and range and if they are not valid we will warn user and will not let data to be saved.

Monday 20 March 2023

Consuming External API’s in ABAP Code Snippets

In this Blog, I would like to present some code snippets, which could help others in order to consume Token based REST APIs in ABAP.

Obtaining the relevant details in order to get the Token

In order to get the Token, details like Application ID, Application Secret, Client ID and the Token Endpoint must be provided by the Provider.

Example how these details looks like is as follows:

Wednesday 15 March 2023

Monday 13 March 2023

Steps to create PPF action, schedule condition in SAP

Go to T-code SPPFCADM or one can go via SPRO->Cross Application Components->Reusable Objects and Functions->PPF Adapter for Output Management->Maintain PPF Settings

SAP ABAP Development, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Prep, SAP ABAP Preparation, SAP ABAP Certification

Friday 10 March 2023

ABAP Search CDS View Tool (for Finding hierarchically all related views)

Searching for the right CDS view can be a time consuming task. A DB table / DDic View or CDS View can have hierarchically more than 8000 related views. DB table MARA has for example 8201 related views in S/4HANA 2022. Searching is also error prone, because searching based on naming does not always lead to the right view.

A good way to search is to find all related CDS views based on DB table, DDic view or CDS view which are directly and indirectly related. This can go up to 15 or more levels deep. So doing this manually by executing where-used list is not doable. Therefor I created the “ABAP Search CDS View Tool” which also can filter the found views.

Monday 6 March 2023

A Complete Unmanaged CDS Scenario Including Parent-Child Relationship

What a trip this case has been. The ABAP RESTful Programming model isn’t exactly new, and yet in my reality it hasn’t been used much. And suddenly I saw myself facing the need for an unmanaged scenario.

First off, this is what you will find here: every single step, from CDS data definitions, to behavior definitions with implementation, and finally to an OData service which can query, read, filter, and even expand/navigate to child entries (NavigationProperty as it is called in the metadata document of OData).

Friday 3 March 2023

Workload Fluctuations / Sizing and Optimal Number of Application Servers

Introduction


Most SAP Systems are configured in a three-tier configuration with multiple application servers. For a given peak number of users/transactions and a resulting peak usage of system resources CPU/Memory/Work Processes a frequent question asked is how to configure the landscape; is it better to use only a few big application servers or rather many small servers.

SAP ABAP Development, SAP ABAP Career, ABAP Skills, ABAP Jobs, ABAP Prep, ABAP Preparation, ABAP Tutorial and Materials, ABAP Learning, ABAP Guides, ABAP Application

Although there are Pro’s and Con’s for larger/smaller number of servers one very important aspect which is very often neglected in this evaluation, is the impact of the various types of workload fluctuations on the overall system hardware requirements and stability of the system.

Wednesday 1 March 2023

Convert Multiple Rows in One Row with different columns in CDS Views

I’ve been searching for a solution for a while now, but I’ve been unable to find one that meets my requirements, even after consulting multiple blogs. It took some effort, but I’ve finally found a solution that fits my needs. Lets goo (Nervously excited)

Introduction


Dealing with multiple rows of data can be challenging, especially when you need to consolidate them into a single row with different columns. Fortunately, SAP CDS provides a powerful solution for performing this data transformation. In this blog post, we’ll show you how to use SAP CDS to convert multiple rows into a single row with different columns.