cancel
Showing results for 
Search instead for 
Did you mean: 

SRM - Shopping Cart - UoM is being defaulted to EA automatically

Former Member
0 Kudos

Hi,

We are creating a shopping cart in SRM, and when we transfer items from the catalog to the shopping cart, the UOM is being defaulted to EA.

The product in question has a UOM in the catalog of Ctn3 (Carton 3), and this UOM is not available in the SRM system. We want the system to throw an error saying that the UOM is not found, but even after debugging we have failed to find a point where the UOM from catalog (Ctn3) is available in the system. It gets defaulted automatically to EA, and then there is no way of knowing whether the UOM from catalog was allowed or not. We found in the debugger stack that a kernel method in the class SRMNXP/CL_OCI_INBOUND_HDLR is being called first, through which the BADI BBP_CATALOG_TRANSFER is called, which we are implementing.

We think this might be due to some configuration, which is defaulting the UOM to EA, but have been unable to find one.

Any suggestions? Or any way of debugging it further?

Thanks and regards.

Accepted Solutions (0)

Answers (2)

Answers (2)

robin_janke
Contributor
0 Kudos

Hi,

I guess this is just the default value of SRM for every line. Please take a look at implementing BADI /SRMNXP/BD_CHANGE_DATA in there you can change default data.

As the UI5 is still quite new, also take a look on OSS or raise a message with SAP to confirm the behaviour.

Regards,

Robin

former_member216093
Contributor
0 Kudos

Hi,

Can you please check what comes in FM BBP_WS_MAP_OCI_TO_SC?

Regards,

Ravi

Former Member
0 Kudos

Hi,

I put a breakpoint on that FM and debugged the Shopping Cart. But by the time the control reached that FM, the UoM was already changed to EA.

There must be a point before this FM is called, where the UoM is being converted to EA. Still unable to find that point.

Thanks.