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

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 – 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