Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

quantity conversion logic

Former Member
0 Likes
3,026

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

1 REPLY 1
Read only

Former Member
0 Likes
1,128

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