Application Development 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: 

LSMW and transaction MM01

Former Member
0 Kudos

Hi experts!

I am going to extend several materials from one plant to another.

Is it possible to use LSMW and batch input recording at transaction MM01 with the copy-function?

Kind regards

2 REPLIES 2

Sougata
Active Contributor
0 Kudos

Hello Lene,

I believe you can do this by choosing Business Object Method (BAPI) option of the LSMW attributes. Business Object should be BUS1001006, Method SAVEDATA, Message Type MATMAS_BAPI, Basic Type MATMAS_BAPI01. The related BAPI where the copy/change should take place is BAPI_MATERIAL_SAVEDATA - I suggest you read the documentation of this BAPI, I noticed

it states:


When changing material master data, you need enter only the material
number. In the header data, you must select at least one view for which data
is to be created. Depending on the view selected, you must maintain other 
required parameters. If you do not enter values for all of the required parameters,
the method is ended with an error message.

Also, this BAPI provides structure PLANTDATA as an import parameter so I think you should be able to copy the materials into the new plant. If this works then you wouldn't need the Batch Input recording at all but when using this in LSMW remember to generate the inbound IDoc settings for this message type from the first screen of LSMW via menubar Settings->IDoc Inbound Processing.

Hope this helps.

Cheers,

Sougata.

former_member181995
Active Contributor
0 Kudos

Use MM17 for extending mass material through Plant.no coding include in this process.