‎2006 Sep 07 5:43 PM
hi friends,
i nam retriving quantity that should be displayed in 'base unit of measure' for that i need logic for the below description to convert that quantity
plz help hoe to write this logic with below description
From Sales Order, Table VBAP: if VRKME (delivery UoM) ne MEINS (base UoM) then [LSMENG (quanitity) x UMVKZ (numerator) / UMVKN (denominator)] else NO ACTIONS.
1) From Delivery Document, Table
VBFA: : if VRKME (delivery UoM) ne MEINS (base UoM) then [VBFA-RFMNG (picking quantity) x UMVKZ (numerator) / UMVKN (denominator)] else NO ACTIONS.
2) LIPS: : if VRKME (delivery UoM) ne MEINS (base UoM) then [VBFA-RFMNG (picking quantity) x UMVKZ (numerator) / UMVKN (denominator)] else NO ACTIONS.
regards,
divya
‎2006 Sep 07 5:56 PM
Hi,
IF VBAP-VRKME <> VBAP-MEINS.
VBAP-LSMENG = VBAP-LSMENG *
(VBAP-UMVKZ / VBAP-VBVKN).
ENDIF.
Do the same for the other scenarios..
OR
IF VBAP-VRKME <> VBAP-MEINS.
Use the Function module UNIT_CONVERSION_WITH_FACTOR with the input quantity, numerator and denominator..And
it will return the quantity..
endif.
Thanks,
Naren