Skip to Content
Aug 04 at 03:00 AM

Restrict UoM conversion in BAPI_PO_CHANGE


Hi experts,

We are doing an enhancement by adding PO item automatically. The PO quality and UoM to be added is stored in custom table. This is used to get the PO qty and UoM.

BAPI_PO_CHANGE we are using to do changes and it will validate certain parameters plant, document type and reads the custom table to add PO item quantity automatically.

The issue we are facing right now is if the Material has Ordering unit different than the Unit maintained in the custom table.


PO Ordering unit BAG

1 BAG = 10 Kg (defined as alternative unit with unit conversion)

when we try to create a PO for 1 Kg using BAPI system default converting into 10kg which is the least quantity as per unit conversion.

If there a way to restrict this happening in BAPI_PO_CHANGE without removing the ordering unit.

thanks, any inputs is much appreciated.