Unit of Measure Convert Quanity

w2vijay

w2vijay

Well Known Member
Hi All,

I have requirement to convert the quantity from one UOM to another. Can any one tell me the BSFN to use and the parameters to pass in it. EX: ITM=2894, UOM=BG, QTY=640.00

In the above case I have to convert the Item Quanity into OZ UnitofMeasure. I can only find the UM=OZ,RUM=BG conversion from OZ to BG in F41002 table, bt nt from BG to OZ.

Can anyone tell me, how to convert the Quanity in both ways..

Thanks in Advance....
 
Vijay,

Try using B4000520 with these parameters:

szBranch - If needed (depends on constants)
szFromUnitOfMeasure - 'BG'
szToUnitOfMeasure - 'OZ'
mnShortItemNumber - your item to convert

This will populate mnConversionFactorFrom_to_To with proper factor.

You can also populate mnQuantityToConvert and the function will return the converted quantity in mnQuantityConvertedFromtoTo.

Hope this helps,
Craig
 
Craig,

Thanks for the reply, I am using the same BSFN in my application. I did mistake in the taking the output parameters. Now the BSFN is working fine. It converts from both sides.
 
Back
Top