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

Material Master upload-IDOC

Former Member
0 Likes
1,189

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

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

6 REPLIES 6
Read only

nirajgadre
Active Contributor
0 Likes
991

Hi,

Which message type are you using for material creation..?

Read only

0 Likes
991

Hi,

We are using message type MATMAS.

Number range in ECC is set as INTERNAL Number Range.

Cheers,

Rc

Read only

nirajgadre
Active Contributor
0 Likes
991

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.

Read only

0 Likes
991

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

Read only

0 Likes
991

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.

Read only

JL23
Active Contributor
0 Likes
991

you have to use the function module 'NUMBER_GET_NEXT' to retrieve a new material number and add this number to your IDOC.