2008 Nov 23 9:45 PM
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
2008 Nov 23 11:36 PM
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.
2008 Nov 23 11:43 PM
Use MM17 for extending mass material through Plant.no coding include in this process.