ABAP – Get fixed values of a DDIC domain

There are several ways how to get the fixed values of a domain. In this post I present several way including an Object Oriented approach

Continue reading

ABAP – Get all sub-classes of a super-class

If you ever need to get a super class or all (global) sub-classes of a given ABAP (global) class, you can use the following approach Continue reading

ABAP – Get max value of variable type as PACKED number

In this short code snippet I try to get maximum number of a variable typed as packed number and compare it against given amount.

This code can be used to detect possible overflow and let program react accordingly.

Continue reading

ABAP – How to find out if a BAPI is used in BOR

In case you need to find out if a BAPI is used by a BOR, or if you need to find out a list of all BAPIs used by a BOR, you can use the following.

Continue reading

ABAP – Load user-specific selection screen variant during program initialization

When user starts a program/report in SAPGUI, he want’s to have some speicific fields to be pre-filled with fixed values. This is true especially on more complex selection screens. So he must either create a transaction which executes the report with selected variant, or he can start the program directly and choose the variant on the selection screen manually.

But there’s also another option – load the variant dynamically by ABAP coding, during the INITIALIZATION event… Continue reading

SAP – How to enable IMG customizing directly in production system

Some IMG customizing activities are protected against modification in all but customizing system/client. But there might be activities that consultants need to perform directly in the production system without transporting the change though all the systems. Continue reading

ABAP – Modify RFQ item data during SAVE

There’s a user exit EXIT_SAPMM06E_012 (include ZXM06U43) you can use to perform various user checks before an RFQ is saved in Tx ME41/ME42. But what if you need to modify the line item data? Continue reading

ABAP – How to identify invoice text ID

SAPIf you need to read a text out of an invoice, you use standard function module READ_TEXT. But it might be a challenge to identify the correct input parameters for this FM as invoice can contain quite a lot of texts. Continue reading

ABAP – Get handling units in a Shipment

SAPIn this code snippet I’ll show how you can get info about all the handling units in a shipment delivery. Continue reading

ABAP – Parsing VAKEY in SD pricing conditions

SAPIt is possible to parse VAKEY (100 chars) field to separated key fields manually, knowing the structure of each condition table (A004, A055, …). Continue reading