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

Function module VBWS_UNITS_OF_MATERIAL

vagnerandrade
Product and Topic Expert
Product and Topic Expert
0 Likes
409

Function module VBWS_UNITS_OF_MATERIAL:

Test for function group MWSO

Function module VBWS_UNITS_OF_MATERIAL

Import parameters Value

I_MATNR 12345

LEADING_UNIT

VALUATION_RELEVANCE

WITH_UNITS_OF_SAME_DIMENSION

CHECK_USE_OF_UOM X

Debugging you can see that the value for I_MATNR is 000000000000012345.

I have a Z function module that has the same behaviour, the value for I_MATNR is 000000000000012345.

Why do we have '0000000000000' before 12345?

Thanks

1 REPLY 1
Read only

Former Member
0 Likes
376

Hi

Check the domain for matnr, the leading zeros are due to the conversion routines that exist for Domain MATNR.

CONVERSION_EXIT_MATN1_RANGE_I Conversion Exit MATN1, External Range -> Internal Range

CONVERSION_EXIT_MATN1_RANGE_O Conversion Exit MATN1, Internal Range -> External Range

Regards

Raj