<?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: LSMW... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/2834953#M663751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through this code and analyze it and apply the logic as per ur requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just write the code in the Mapping step&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to mapping step--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&amp;gt; click the variant icon--&lt;P&gt;&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;&amp;gt; u findout the pop window check the box and press enter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there u have to declare a variable in the Global Declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the Begin of Transactions u have to write the logic..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single matnr into RLBES-MATNR from MARA &lt;/P&gt;&lt;P&gt;where BISMT = BINS-MATNR. &lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;RLBES-matnr = BINS-MATNR. &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING BINS TO err_file. &lt;/P&gt;&lt;P&gt;MOVE 'Material not created' TO err_file-error. &lt;/P&gt;&lt;P&gt;APPEND err_file. &lt;/P&gt;&lt;P&gt;WRITE : 'NO MATERIAL'. &lt;/P&gt;&lt;P&gt;skip_record. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;__END_OF_PROCESSING__ &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION 'GUI_DOWNLOAD' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;FILENAME = error_file_name &lt;/P&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;DATA_TAB = err_file. &lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example used GUI_DOWNLOAD . Ofcourse this is now not recommended so you can use the latest FMs for download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Sep 2007 11:49:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-28T11:49:50Z</dc:date>
    <item>
      <title>LSMW...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/2834950#M663748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi....I am uploading condition records from legacy system using LSMW by recording. If a duplicate record exists then the record is not appended in the condition table which is ok as standard SAP behaves in this way. My requirement is to send the duplicate record to the error file. Please suggest how to do!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 04:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/2834950#M663748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T04:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: LSMW...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/2834951#M663749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Refer the theard you may get an idea.&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=5559350&amp;amp;messageID=2400803" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=5559350&amp;amp;messageID=2400803&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 04:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/2834951#M663749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T04:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: LSMW...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/2834952#M663750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No that is basically not my problem....i.e, basically normal error handling...but I need to send a duplicate record to the error file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 05:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/2834952#M663750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T05:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: LSMW...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/2834953#M663751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through this code and analyze it and apply the logic as per ur requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just write the code in the Mapping step&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to mapping step--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&amp;gt; click the variant icon--&lt;P&gt;&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;&amp;gt; u findout the pop window check the box and press enter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there u have to declare a variable in the Global Declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the Begin of Transactions u have to write the logic..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single matnr into RLBES-MATNR from MARA &lt;/P&gt;&lt;P&gt;where BISMT = BINS-MATNR. &lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;RLBES-matnr = BINS-MATNR. &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING BINS TO err_file. &lt;/P&gt;&lt;P&gt;MOVE 'Material not created' TO err_file-error. &lt;/P&gt;&lt;P&gt;APPEND err_file. &lt;/P&gt;&lt;P&gt;WRITE : 'NO MATERIAL'. &lt;/P&gt;&lt;P&gt;skip_record. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;__END_OF_PROCESSING__ &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION 'GUI_DOWNLOAD' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;FILENAME = error_file_name &lt;/P&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;DATA_TAB = err_file. &lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example used GUI_DOWNLOAD . Ofcourse this is now not recommended so you can use the latest FMs for download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 11:49:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/2834953#M663751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T11:49:50Z</dc:date>
    </item>
  </channel>
</rss>

