You are on page 1of 2

SAP Knowledge Base Article

2413079 - Quantity Rounding Issue in ME21N (Troubleshooting Guide Included)


Component: MM-PUR-GF-QO (Quantity Conversion and Rounding), Version: 3, Released On: 21.02.2017

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

Reproducing the Issue


1. Run transaction ME21N.
2. Fill in the necessary fields in the purchase order.
3. Quantity is rounded to 3 decimal places although according to the rounding profile it should be 2 decimal places.

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

Other Components MM-PUR-PO (Purchase Orders)

Products
Products

SAP ERP Central Component all versions

SAP ERP all versions

SAP R/3 Enterprise all versions


SAP R/3 all versions

SAP S/4HANA all versions

SAP enhancement package for SAP ERP all versions

SAP enhancement package for SAP ERP, version for SAP HANA all versions

This document is referenced by


SAP Note/KBA Title

2432428 Quantity Rounding Issue in ECC PO vs SRM Cart

You might also like