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

Mateial Replication using MM01

Former Member
0 Likes
555

Hi,

I have a requirement where I need to create multiple materials while creating 1 material. The user creates a header material through transaction MM01. While creating header material, he stores some extra custom fields in a table control. Based on the number of lines in the table control, when the user clicks 'SAVE', i need to create multiple variants of the header material. E.g. if there are 3 entries in the table control then total 4 materials will be created. These materials will have same data except the custom fields maintained.

Can I use BAPI_MATERIAL_SAVEDATA or BAPI_MATERIAL_SAVEREPLICA to create multiple materials. I think these materials do not copy the classification data. Please suggest if there is any other way I can create multiple variants.

Thanks in advance.

best regards

Satish

3 REPLIES 3
Read only

Former Member
0 Likes
472

One way of checking is go to SE37 for one of these BAPI's and test it with sequential test along with the COMMIT BAPI. This way you will be able to see if it really works creating multiple material numbers and how they are created.

BAPI_MATERIAL_SAVEREPLICA: (This should be good for you)

Use this method to create new material master data or change existing material master data. Every time this method is called, data for one or more materials can be transferred.

For more info see the FM documentation on this.

Award points if it helps.

Read only

Former Member
0 Likes
472

Hey, let me know if your problem is solved.

Read only

Former Member
0 Likes
472

Hi Vinni,

I have already used BAPI_MATERIAL_SAVEDATA earlier. But I found that this function module does not upload classification data. How can I upload classification data.

Please advise.