Professional Documents
Culture Documents
Symptom
When creating purchase orders with transaction ME21N, the quantity is rounded to 3 decimal places even though the rounding profile specifies 2 digits.
Environment
Materials Management (MM)
SAP R/3
SAP R/3 Enterprise 4.7
SAP ERP Central Component
SAP ERP
SAP enhancement package for SAP ERP
SAP enhancement package for SAP ERP, version for SAP HANA
SAP S/4HANA
Cause
Standard system behavior.
The rounded result will be displayed due to a rest determined in include QTY_DECIMALS_CHECK.
The system will check the data definition of EKPO-MENGE (= 3 decimals) against unit (T006-DECAN = 2 decimals).
Resolution
To approach rounding issue, the following steps can be taken:
1. Start from FM MD_SINGLE_ROUNDING.
2. Set break point in the codes of program LMDR1F12 and check where and how p_s_results-MENGE is rounded to 3 decimal places.
--------------------------------------------------------------------------------------
IF NOT ( p_s_results-rdprf IS INITIAL ).
* *** Rundungsprofilmethoden
PERFORM rounding_profil TABLES p_t_qt_units
p_t_round_reasons
USING p_s_general
CHANGING p_s_results.
ELSE.
See Also
SAP note 772558, Question 4.
Keywords
UOM, CUNI, PO, EKPO-MENGE, EKPO, MENGE, T006-ANDEC, T006, ANDEC, T006-DECAN, DECAN , Rundung , Dezimalstelle , Menge , Rundungsprofil ME678 ME 678
Attributes
Key Value
Products
Products
SAP enhancement package for SAP ERP, version for SAP HANA all versions