06-10-2011 4:29 AM
Hello
I am using to convert material number from external format to internal format in order to pad leading zeros to the material number, am using CONVERSION_EXIT_MATN1_INPUT, but dont know why its not working if the IMPORT matnr length is 9
1) If IMPORT material is '12345678' (length is 😎 - is working fine and am getting 000000000012345678
2) If IMPORT material is '123456789' (length is 9) - is NOT working! am getting error message "The material number is longer than the length set" pls. let me know the reason and fix pls.
Thank you
06-10-2011 4:32 AM
Hi M_S,
I think this is due to number range, may be in configuration they have maintained like this.
Thanks,
Anmol.
06-10-2011 4:32 AM
Hi M_S,
I think this is due to number range, may be in configuration they have maintained like this.
Thanks,
Anmol.
06-10-2011 4:54 AM
Thank you.
MATNR is a standard SAP field right? it is always 18 in length right?
I checked in SNRO, but i did not see any object with name either MATNR or starMATNR!
Is my scenario (if length is 9) is working fine in your system? pls let me know
Thank you
06-10-2011 5:07 AM
The no. range object is MATERIALNR , you can check in table TNRO.
Regardind the issue with exit , check if you have activated any speical settings in OMSL txn for material numbers.
06-10-2011 5:16 AM
Thank you
I saw 'Material No. Length' field is populated with 8 in OMSL tx.
But, i saw CHAR18 as in TNRO table for 'Number length domain' field
Pls. let me know that issue is because of OMSL's 8?
If so, then i have to pad zeros as prefix MANUALLY by logic in the prog. in order to make it to 18 length?
06-10-2011 5:24 AM
06-10-2011 5:17 AM
The issue is related to configuration in your system. Please check the allowed length of Material Number.
Ravi