Skip to Content

Shopping cart quantity rounding


I have noticed that some users are complaining that quantity with decimal places in shopping cart is being rounded, even when BAdI BBP_ROUNDING_BADI is not active. Therefore, I would like to share with you the standard design in this topic.

This is occurring mainly in SRM 5.0, when support package higher than 20 is applied.

In support package 20, note 1264188 has been introduced.
Such note ensures that rounding in shopping cart will occur based on UOM settings defined in transaction CUNI, as per code below available in FM BBP_PDH_QUANTITY_ROUNDING:

* the standard SRM solution does only round the Purchase order
* and Shopping cart Quantities based on CUNI settings…
  IF is_icom_rounding-object_type EQ c_po or
is_icom_rounding-object_type EQ c_shop.
*   Round the value to the next valid value
*   according to the data of the T006 Customizing …
    PERFORM convert_value_according_to_uom
                USING    iv_unit
                CHANGING lv_quantity.

Checking UOM in CUNI, field “Decimal pl. rounding” defines how many decimal places are used.

As per logic available in form convert_value_according_to_uom, if “Decimal pl. rounding” is set as 0, rounding will occur for UOM.
If such settings is maintained as 3, for example, rounding will not occur and decimal places will be kept as initially.

Therefore, in order to avoid the rounding, field “Decimal pl. rounding” should be customized in transaction CUNI for UOM in question. This is the responsible transaction in SRM to define the decimal place rounding for quantities.

Of course, BAdI BBP_ROUNDING_BADI can overwrite this.

See KBA 1700884 for more details.

You must be Logged on to comment or reply to a post.
  • Hi Ricardo,

    Thanks for post.

    Had this issue a couple of months ago. I would say – people should check/synchronize UOM Settings with an ECC System. Not rounded quantity could be rounded by backend PO creation.



    • Hi Konstantin,

      Thank you for your comment.

      Sure, UOM should be in sync between ECC and SRM. It should be updated in ECC and transferred to SRM.



      • Hi Ricardo,

        Thank you for your sharing.

        We use MDM-catalog for creating shopping cart. I had changed Decimal pl. rounding from 3 to 4 in ECC and SRM using t-code:CUNI. Can you tell me how to change Decimal pl. rounding in MDM.