‎2008 Dec 02 5:45 PM
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
‎2008 Dec 02 10:15 PM
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