cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Unit of Measure - Shopping Cart

Former Member
0 Kudos

Hi guys,

   We have an issue in our project regarding to Shopping Cart's unit of measure.

   We have a material with base unit (M3) and we want to allow the user to create a document with another unit (TO). We have put the convertion M3 -> TO within the material master data.

   However, the procedures above didn't work for Shopping Cart. Does anyone have any idea to change the unit of measure in Shopping Cart?

   Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

ricardo_cavedini
Active Contributor
0 Kudos

Hello,

When creating a shopping cart for a specific product ID, SRM will take the UOM defined as "order unit" for this product in transaction COMMPR01.

It will not be able to change the UOM in shopping cart.

Regards,

Ricardo

Answers (1)

Answers (1)

konstantin_anikeev
Active Contributor
0 Kudos

Hi Alexandre,

have you rereplicated your product after changes?

How many entries do you see in the table COMM_PR_UNIT  for your product?

Best Regards

Konstantin

Former Member
0 Kudos

Hi,

  There are entries in COMM_PR_UNIT  for the material XYZ: M3, TO and VAL. The base Unit is M3 and I want to change for TO.

   Do you have any idea?

   Thanks

konstantin_anikeev
Active Contributor
0 Kudos

Hi Alexandre,

as Ricardo said, it is disabled to change UoM for internal products.

Logic for that is placed in method /SAPSRM/CL_PDO_DYN_MDF_IT_SC->UNIT

Here is a part of code

   cs_metadata-visible  = abap_true.

   cs_metadata-enabled  = abap_true.

   cs_metadata-required = abap_false.

   IF is_item-product IS NOT INITIAL.

     cs_metadata-visible  = abap_true.

     cs_metadata-enabled  = abap_false.

     cs_metadata-required = abap_false.

     EXIT.

   ENDIF.

So, if you need to change UoM you have to redefine standard system behaviour.

Best Regards

Konstantin