Skip to Content

Hello,

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
quantities
* 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.
  ENDIF.

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.

To report this post you need to login first.

5 Comments

You must be Logged on to comment or reply to a post.

  1. Konstantin Anikeev

    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.

    Regards

    Konstantin

    (0) 
    1. Ricardo Cavedini Post author

      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.

      Regards,

      Ricardo

      (0) 
      1. Agnes Ye

        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.

        Regards,

        Agnes

        (0) 
        1. Ricardo Cavedini Post author

          Hi Agnes,

          I do not use to work with MDM, but I was checking and could see that in Data Manager you should be able to maintain the currencies as well as the decimal places.

          Regards,
          Ricardo

          (0) 

Leave a Reply