Here is a quick walkthrough on how you can add custom fields in plant master transactions, using BAdI WB0X_ADD_CUST_DATA_E. You can also use this as a general guide for adding fields, to any supporting transaction, through classic BAdI. Some developers will also call this as a “screen exit”. First add custom fields to T001W table […]
Category: Guides
Selection screen search help filtering
SAP has many fields that depend on other fields. We often need them on selection screens and expect their search helps automatically filtered by the value of the field on which they depend. This can be accomplished by generating the search help at runtime with a function module like F4IF_INT_TABLE_VALUE_REQUEST. But there is also a […]
Save attachment to GOS from SAPUI5 Fiori
Here is a simple walkthrough on uploading a file through SAPUI5 interface and saving it as a GOS attachment in SAP system. This example uses purchase order business object (BUS2012). If you plan to use another type of document, you should find corresponding business object and change it accordingly. Create a structure to transfer media […]
ABAP performance analysis with SAT transaction
Every once in a while, you will encounter ABAP programs taking too long to run. Your duty, as an ABAP developer, is to find the bottleneck. Sometimes it is as easy as debugging the program just once, or even just looking at the code. Sometimes not.. This is where SAT comes in. It is a […]
ABAP by numbers: Length of decimal type
Inequality between length and maximum digit count of packed decimal type causes great confusion even among seasoned developers. ABAPDOCU explains the relation with a fairly complicated formula: Depending on the field length len and the number of decimal places dec, the following applies to the value range: (-10^(2len-1) +1) / (10^(+dec)) to (+10^(2len-1) -1) /(10^(+dec)) […]