2010 Jan 09 11:13 AM
Hi,
We are posting Material master data in SAP ECC using IDOC. Since we are getting data in the form of .xml file, we are using SAP XI to convert xml file (INPUT FILE) to IDOC for uploading Material Master..
SAP ECC number range is internal hence we are not passing any value in field MATNR but IDOC is throwing an error "Material number is mandatory'
I tried passing value '/' in this case it is creating Material record wih Material Number as "/"
Can you tell me How to handle this??
Cheers,
Rc
2010 Jan 09 1:34 PM
2010 Jan 11 5:38 AM
Hi,
We are using message type MATMAS.
Number range in ECC is set as INTERNAL Number Range.
Cheers,
Rc
2010 Jan 09 1:47 PM
Hi,
The matrial number assignment is decided based on the which material type you using while creating the material.
check the material type present in the IDOC and also check the configuration for this material type.
I guess the material type which you are using is configured for the external material number assignment
hence giving the error.
2010 Jan 11 5:43 AM
Hi,
Configuration are for INTERNAL number Range only. I have checked that.
I need some input on IDOC front....how to upload...how should be the format of file...it's xml
Cheers,
Rc
2010 Jan 11 6:03 AM
Hi,
I guess the process code which you are using for the creation of the material except only the external numbers . In this you need to call the BAPI_MATERIAL_GETINTNUMBER and the pass this number to the material number field in the idoc.
2010 Jan 11 9:23 AM
you have to use the function module 'NUMBER_GET_NEXT' to retrieve a new material number and add this number to your IDOC.