Add leading spaces to a string in ABAP

SAP

If you have a requirement where some strings need to be aligned at some column and these strings have a common label so the output is two columns where the label is in the first column, values in the second, you can use the following piece of code as an example to create such list. Continue reading

Automatic assignment of INCMD groups to models in APO

SAP

It is possible to maintain interchangeability groups in APO manually with transaction /INCMD/UI but this is not practical in case we would like to automate some actions like assignment of INCMD groups to models.

Continue reading

How to log events in ABAP using application log with additional (CONTEXT) fields

SAPIn this step-by-step guide I’d like to show you how to create an application log which can be easily extended with your extra fields containing additional information.  Continue reading

Events in database table maintenance view

SAPI needed to create a database table where there will be no key fields (all fields to be editable during table maintenance) but at the same time I needed some easy way how to identify each table row with unique key. And I found a solution using automatically generated GUID during row addition handled by maintenance view events. Continue reading