SAP Knowledge Base Article - Public

3294709 - ABAP runtime error when changing the unit in Monitor Stock / Requirements List

Symptom

You have maintained the alternative unit for the material in material master additional data and any lot size value (in this example the Maximum Lot Size) under MRP1 view:

When checking the material in app Monitor Stock / Requirements List, the default display unit is the base unit (in this example PC). You want to see the data in the alternative unit (in this example PAL) and change directly in the field:

After clicking Enter, the ABAP runtime error occurs:

 

*Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

SAP S/4HANA Cloud

Cause

The dump occurs because the Maximum Lot Size for the alternative unit exceeds the max value that the system can support.

After you change the unit to the alternative unit, the system will re-calculate the Max Lot Size for the alternative unit based on the following conversion formula:
Max Lot Size (new) = Max Lot Size (old) * Alternative unit / Base unit.
And the result in our example is:
319,999,996,800 = 99,999,999 * 3200 / 1
However, the max value the system supports for the Max Lot Size is 10 digitals plus 3 decimals, that is 99,999,999.999. The new value is way beyond that max value thus the dump occurs.
The same also applies to the Minimum Lot Size and Maximum Stock Level.

Resolution

In order to eliminate the dump, you should adjust the existing lot size data and the relationship between the base unit and the alternative unit to make sure that the re-calculated lot size data is below 9,999,999,999.999. 

In the meantime, there is another workaround to avoid the dump:
If you enter the alternative unit in the field next to the base unit, the dump will not occur and the app will shown the data in both of the units at the same time. In this way, you don't need to change the existing master data.

Keywords

Monitor Stock / Requirements List, ABAP runtime error, base unit, alternative unit, Maximum Lot Size, Minimum Lot Size, Maximum Stock Level , KBA , PP-MRP , Material Requirements Planning , PP-MRP-2CL , Material Requirements Planning (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions