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 Upload using IDOC MATMAS

Former Member
0 Likes
1,084

Hi All,

I have a requirement wherein users wants to upload material data through an excel (csv) sheet. The program in-turn create IDOC with message type MATMAS and basic type MATMAS01 and post the material.

I developed the program but its giving error in the Log. Error is like:

Trying to create: <Plant>_____<Valuation Area>________

No Material Number Transferred

Blow are issues:

1. What all are the mandatory fields of segments which needs to be passed?

2. What should be message function value?

3. How to pass data to different segments in order to select different view like basic data 1,2; sales data 1,2 etc?

Any code help will be highly appreciated.

Thanks,

Praveen

1 ACCEPTED SOLUTION
Read only

laurent_fournier2
Contributor
0 Likes
911

Hi,

Probably, you must also transfer the material number. It sounds that for the specific material type, external number range is assigned. As for the required fields, it depends on the customizing.For the required segments, you can see from transaction WE30.

Regards.

3 REPLIES 3
Read only

laurent_fournier2
Contributor
0 Likes
912

Hi,

Probably, you must also transfer the material number. It sounds that for the specific material type, external number range is assigned. As for the required fields, it depends on the customizing.For the required segments, you can see from transaction WE30.

Regards.

Read only

0 Likes
911

Hi,

Yes, that's right. After transfering material number issue was resolved. Howvever, if I want to have system generated materila number where should I change the configuration so that material number is not transferred via excel.

Regards,

Praveen

Read only

0 Likes
911

You can use transaction MMNR for that. Each Group of material types is assigned to a number range object.