<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Material Master upload problem (LSMW) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-master-upload-problem-lsmw/m-p/1884959#M371322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  YOu can populate error messages in LSMW. To achieve this you add code in LSMW.  Follow the below procedure to add code in LSMW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In Display FieldMapping and Conversion rule Step of LSMW click the button Display Variant. A screen will pop up. Check the boxes - Global Definitions and ABAP Sub Programs. This will allow you to add code in LSMW. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At check the error records follow the below mentioned procedure...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Error messages in the conversion log&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can user-defined error messages be added to the conversion log?&lt;/P&gt;&lt;P&gt;1.	Use of  WRITE  command in the Coding &lt;/P&gt;&lt;P&gt;a.	Example: WRITE: &amp;#130;Error during conversion of field xxx&amp;#146;&lt;/P&gt;&lt;P&gt;2.	In the editor use &amp;#130;Insert -&amp;gt; Message&amp;#146; to use a message already existing in the SAP system.&lt;/P&gt;&lt;P&gt;a.	Example (Coding after using the menu function and filling the fields):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_ERRORTAB-ID = '/SAPDMC/LSMW'.&lt;/P&gt;&lt;P&gt;WA_ERRORTAB-MSGNO = 012.                          &lt;/P&gt;&lt;P&gt;WA_ERRORTAB-PAR1 = 'A'.                           &lt;/P&gt;&lt;P&gt;WA_ERRORTAB-PAR2 = 'B'.                           &lt;/P&gt;&lt;P&gt;WA_ERRORTAB-PAR3 = 'C'.                           &lt;/P&gt;&lt;P&gt;WA_ERRORTAB-PAR4 = 'D'.                           &lt;/P&gt;&lt;P&gt;INSERT WA_ERRORTAB INTO TABLE G_ERROR_TAB.  &lt;/P&gt;&lt;P&gt;The message will be added to the log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further reference click the link below&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/sapgenie/docs/Lsmw.zip" target="test_blank"&gt;http://www.erpgenie.com/sapgenie/docs/Lsmw.zip&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2007 18:17:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-01T18:17:59Z</dc:date>
    <item>
      <title>Material Master upload problem (LSMW)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-master-upload-problem-lsmw/m-p/1884956#M371319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;  I am using Standard Batch input program (RMDATIND)  for MM upload i need to validate the old material number if it is already existed in MARA it should throw an error at the end of the processing saying that "Old material number" already existing in MARA . Flat file will have thousands of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One solution like, we can move all the error records in one internal table in code of Filed mapping conversion rule step , but the problem is where we can write the error records? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another question when we use Standard program for conversion is it possible to show error log at the end of the processing? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its very urgent  Kindly help me ........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;bhanu.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 17:45:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-master-upload-problem-lsmw/m-p/1884956#M371319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T17:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Material Master upload problem (LSMW)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-master-upload-problem-lsmw/m-p/1884957#M371320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is better if yu showa error log at the end of processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;warun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 17:50:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-master-upload-problem-lsmw/m-p/1884957#M371320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T17:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Material Master upload problem (LSMW)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-master-upload-problem-lsmw/m-p/1884958#M371321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In the Begin of the Processing you can creata a Internal table, and in the 5th step last, write if the OLD material is exited then move that to Internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;coming to second Question, the error log will be come after the processing all the records. so there will be no extra work, automatically that will come&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 18:05:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-master-upload-problem-lsmw/m-p/1884958#M371321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T18:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Material Master upload problem (LSMW)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-master-upload-problem-lsmw/m-p/1884959#M371322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  YOu can populate error messages in LSMW. To achieve this you add code in LSMW.  Follow the below procedure to add code in LSMW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In Display FieldMapping and Conversion rule Step of LSMW click the button Display Variant. A screen will pop up. Check the boxes - Global Definitions and ABAP Sub Programs. This will allow you to add code in LSMW. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At check the error records follow the below mentioned procedure...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Error messages in the conversion log&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can user-defined error messages be added to the conversion log?&lt;/P&gt;&lt;P&gt;1.	Use of  WRITE  command in the Coding &lt;/P&gt;&lt;P&gt;a.	Example: WRITE: &amp;#130;Error during conversion of field xxx&amp;#146;&lt;/P&gt;&lt;P&gt;2.	In the editor use &amp;#130;Insert -&amp;gt; Message&amp;#146; to use a message already existing in the SAP system.&lt;/P&gt;&lt;P&gt;a.	Example (Coding after using the menu function and filling the fields):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_ERRORTAB-ID = '/SAPDMC/LSMW'.&lt;/P&gt;&lt;P&gt;WA_ERRORTAB-MSGNO = 012.                          &lt;/P&gt;&lt;P&gt;WA_ERRORTAB-PAR1 = 'A'.                           &lt;/P&gt;&lt;P&gt;WA_ERRORTAB-PAR2 = 'B'.                           &lt;/P&gt;&lt;P&gt;WA_ERRORTAB-PAR3 = 'C'.                           &lt;/P&gt;&lt;P&gt;WA_ERRORTAB-PAR4 = 'D'.                           &lt;/P&gt;&lt;P&gt;INSERT WA_ERRORTAB INTO TABLE G_ERROR_TAB.  &lt;/P&gt;&lt;P&gt;The message will be added to the log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further reference click the link below&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/sapgenie/docs/Lsmw.zip" target="test_blank"&gt;http://www.erpgenie.com/sapgenie/docs/Lsmw.zip&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 18:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-master-upload-problem-lsmw/m-p/1884959#M371322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T18:17:59Z</dc:date>
    </item>
  </channel>
</rss>

