Hi experts,
I am facing some problems getting the LSMW for changing muliple articles to work.
I use option BAPI, Method CLONE, Message type ARTMAS and BASIC TYPE ARTMAS03. Current version is 46C Retail.
We have defined a new plant (DC) and want to extend all existing articles to the new plant (via txt file tab delimited), actual with the same data. I first tried to achieve that manually to see how you can extend an article (I am more familiar with ERP materials). To extend an article, transaction MM42 (change article) is needed. I checked which fields I need to extend the article and use that in the LSMW. So far so good. I only want to extend the warehouse data and accounting data (equal to what I did when extending the material with MM42).The IDOC gets populated but runs into an error 51, because some fields were missing, no problem yet. To avoid changing the LSMW again and again, I use the WE19 test tool to populate the fields which were missing. Once the IDOC is runing correctly I will add the fields to the LSMW as well. The following segments I use with key fields :
E1BPE1MATHEAD <article number>
E1BPE1MARCRT <article number> <plant>
E1BPE1MBEWRT <article number> <valuation area = plant)
The segments MARCRT and MBEWRT do not contain errors.
I get error 51 and the following description.
Material 5054880001 ____ ____ ____ __________ ____ ____ __ ___ __
The Logistics: distribution center view is not allowed without Basic Data.
To me this is strange, the basic data is already there for other DC's (article number exists), why do I need Basic data. If I include the Basic segment then it asked for all fields which are mandatory and that is of course not what I want, because I only want to change the warehouse data and accounting data. It seems that somehow the IDOC wants to create the material instead of changing it.
Does somebody have a clue?
In the LSMW I defined that only fields with contents will be used.
Regards kees