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: 

unit of measure in report

Former Member
0 Kudos

my requirement is , in sales report they may sell in CV or EA. but in sales report all data should come in EA only. can any body tell how to do ?? is there any function module for that?

7 REPLIES 7

Firoz_Ashraf
Contributor
0 Kudos

Hi !

Please use the conversion factor VBAP-UMZIZ and VBAP-UMZIN to display the sales Unit in Base Unit

SuhaSaha
Advisor
Advisor
0 Kudos

Hello,

You can use "MATERIAL_UNIT_CONVERSION". For this you must be having material no. (MARA-MATNR), base UoM of the material (MARA-MEINS).

Hope this helps.

BR,

Suhas

Former Member
0 Kudos

i need UOM as well quantity also.

0 Kudos

Hello,

Plz check the FM documentation. the FM returns you the converted qty. Use the FM as below:

1. Get the Base UoM (BUoM) from MARA for all the materials in the sales order.

2. If the qty is EA in the sales order DONOT use the FM.

3. If qty is CV, then use the FM:

a. Use the FM MATERIAL_UNIT_CONVERSION to convert the qty from CV to BUoM. (KZMEINH = 'X')

b. Use MATERIAL_UNIT_CONVERSION to convert from BUoM to EA.

NB: Using this FM you can convert the qty from/to BUoM.

BR,

Suhas

Edited by: Suhas Saha on Dec 1, 2008 12:08 PM

Former Member
0 Kudos

thanks mate. what i saw all material is having EA as basic unit of measure. i used VBAP table ad firoz said. done. thanks again.

Edited by: chandramani kumar on Dec 2, 2008 10:10 AM

Edited by: chandramani kumar on Dec 2, 2008 10:11 AM

Former Member
0 Kudos

thanks mate. what i saw all material is having EA as basic unit of measure. i used VBAP table ad firoz said. done. thanks again.

Former Member
0 Kudos

Hi,

in such cases u need to call the Conversion exit if exists for that field which itself is a Function Module.

go to Domain->in the Definition->Convers.Routine->double click-->give you the Two Func Modules 1 for input and other for output,in ur program you call Output one before displaying that field.

For UOM use CONVERSION_EXIT_CUNIT_OUTPUT.

Regards,

Neha

Edited by: Neha Shukla on Dec 1, 2008 4:32 PM