Application Development 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: 

regarding calculation of uom(unit of measurment)

Former Member
0 Kudos

i want to display uom(unit of measure) field in dis format: -

UOM IS KG -> SO QTY

TO -> (SALES ODER QTY * 1000)

G -> (SALES ODR QTY / 1000)

I making d report of sales order and i have to display it according to it...plzzz help me its urgent...

1 ACCEPTED SOLUTION

Former Member
0 Kudos

If u r using VBAP table then

kwmeng is the Quantity field.

U select the corresponding fields VRKME, UMVKZ and UMVKN

VRKME is the Unit of measure in which the material is sold.

UMVKZ is Numerator (factor) for conversion of sales quantity into SKU.

UMVKN is Denominator (divisor) for conversion of sales qty. into SKU

Use the above fields to find the required result.

reward if useful

5 REPLIES 5

former_member188827
Active Contributor
0 Kudos

ur rquirement is not clear...

do u want to convert order quantity from kg to g?

0 Kudos

i wanna display d uom field to be displayed from vbap table and ntgew and gross weight to be be taken from mara and deir unit of measure should b same,

Former Member
0 Kudos

If u r using VBAP table then

kwmeng is the Quantity field.

U select the corresponding fields VRKME, UMVKZ and UMVKN

VRKME is the Unit of measure in which the material is sold.

UMVKZ is Numerator (factor) for conversion of sales quantity into SKU.

UMVKN is Denominator (divisor) for conversion of sales qty. into SKU

Use the above fields to find the required result.

reward if useful

0 Kudos

can u provide d dummy code for it,i am using fields for it: -

DATA : BEGIN OF ITSO OCCURS 0,

VBELN LIKE VBAK-VBELN,

POSNR LIKE VBAP-POSNR,

SPART LIKE VBAK-SPART,

ERDAT LIKE VBAK-ERDAT,

MATNR LIKE VBAP-MATNR,

MAKTX LIKE MAKT-MAKTX,

EDATU LIKE VBEP-EDATU,

KWMENG LIKE VBAP-KWMENG,

KBMENG LIKE VBAP-KBMENG,

MEINS LIKE VBAP-MEINS,

WERKS LIKE VBAP-WERKS,

BRGEW LIKE MARA-BRGEW,

NTGEW LIKE MARA-NTGEW,

END OF ITSO.

0 Kudos

u can use standard subroutine pool rmcs1000 that call FM 'UNIT_CONVERSION'

sample code:

perform quantity_convert(rmcs1000)

using x_ntgew x_gewei 'TO' 0 0

changing z_ntgew2.