<?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 LSMW in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/3032023#M717166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;               i wanna know where exactly we have to write the code for lsmw.&lt;/P&gt;&lt;P&gt;      the logic which i have to write is&lt;/P&gt;&lt;P&gt;         The data will be downloaded from the AMPL table of R3. Only those AMPLs which are valid will be extracted. The extraction will be done only for those plants whose warehouses are handled in EWM.&lt;/P&gt;&lt;P&gt;Data to be extracted are &lt;/P&gt;&lt;P&gt;&amp;#149;	Internal material number (AMPL-BMATN)&lt;/P&gt;&lt;P&gt;&amp;#149;	MPN number (AMPL-EMATN)&lt;/P&gt;&lt;P&gt;&amp;#149;	Plant (AMPL-WERKS)&lt;/P&gt;&lt;P&gt;Selection criteria would be&lt;/P&gt;&lt;P&gt;&amp;#149;	Plant (AMPL-WERKS) &lt;/P&gt;&lt;P&gt;&amp;#149;	MPN number (AMPL-EMATN) &amp;gt; 0&lt;/P&gt;&lt;P&gt;&amp;#149;	Valid To date (AMPL-DATUB) &amp;gt; current date&lt;/P&gt;&lt;P&gt;The transaction and the fields are&lt;/P&gt;&lt;P&gt;/SAPAPO/MAT1----Transaction&lt;/P&gt;&lt;P&gt;fields are&lt;/P&gt;&lt;P&gt;Source Table (R3)  fields     Target fields in EWM (properties 2 view&lt;/P&gt;&lt;P&gt;AMPL                   MATNR       MATNR&lt;/P&gt;&lt;P&gt;ampl                     werks          LOCNO&lt;/P&gt;&lt;P&gt;ampl                     ematn         ALTPN&lt;/P&gt;&lt;P&gt;                                              APNTYPE(constant,char2)&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Nov 2007 09:30:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-15T09:30:35Z</dc:date>
    <item>
      <title>LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/3032023#M717166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;               i wanna know where exactly we have to write the code for lsmw.&lt;/P&gt;&lt;P&gt;      the logic which i have to write is&lt;/P&gt;&lt;P&gt;         The data will be downloaded from the AMPL table of R3. Only those AMPLs which are valid will be extracted. The extraction will be done only for those plants whose warehouses are handled in EWM.&lt;/P&gt;&lt;P&gt;Data to be extracted are &lt;/P&gt;&lt;P&gt;&amp;#149;	Internal material number (AMPL-BMATN)&lt;/P&gt;&lt;P&gt;&amp;#149;	MPN number (AMPL-EMATN)&lt;/P&gt;&lt;P&gt;&amp;#149;	Plant (AMPL-WERKS)&lt;/P&gt;&lt;P&gt;Selection criteria would be&lt;/P&gt;&lt;P&gt;&amp;#149;	Plant (AMPL-WERKS) &lt;/P&gt;&lt;P&gt;&amp;#149;	MPN number (AMPL-EMATN) &amp;gt; 0&lt;/P&gt;&lt;P&gt;&amp;#149;	Valid To date (AMPL-DATUB) &amp;gt; current date&lt;/P&gt;&lt;P&gt;The transaction and the fields are&lt;/P&gt;&lt;P&gt;/SAPAPO/MAT1----Transaction&lt;/P&gt;&lt;P&gt;fields are&lt;/P&gt;&lt;P&gt;Source Table (R3)  fields     Target fields in EWM (properties 2 view&lt;/P&gt;&lt;P&gt;AMPL                   MATNR       MATNR&lt;/P&gt;&lt;P&gt;ampl                     werks          LOCNO&lt;/P&gt;&lt;P&gt;ampl                     ematn         ALTPN&lt;/P&gt;&lt;P&gt;                                              APNTYPE(constant,char2)&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 09:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/3032023#M717166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T09:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/3032024#M717167</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;you can do coding in LSMW at the EVENT level &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in Step 'Maintain Field Mapping and Conversion Rules' change mode, &lt;/P&gt;&lt;P&gt;click the layout button, which at Check button right.&lt;/P&gt;&lt;P&gt;tick Processing Times, and click OK button. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The LSMW evernt will appear, and just double-click them to add your own logic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Processing time Meaning Default setting&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;__BEGIN_OF_PROCESSING__ Before the beginning of&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;data processing&lt;/P&gt;&lt;P&gt;(blank)&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;__BEGIN_OF_TRANSACTION__ Before the beginning of&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;transaction data&lt;/P&gt;&lt;P&gt;processing&lt;/P&gt;&lt;P&gt;(blank)&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;__BEGIN_OF_RECORD__ Before applying the&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;conversion rules for a&lt;/P&gt;&lt;P&gt;source structure&lt;/P&gt;&lt;P&gt;Initialize the structure &amp;lt;segment&amp;gt;&lt;/P&gt;&lt;P&gt;(Name of target structure)&lt;/P&gt;&lt;P&gt;Batch Input, Direct Input:&lt;/P&gt;&lt;P&gt;&amp;lt;segment&amp;gt; = init_&amp;lt;segment&amp;gt;.&lt;/P&gt;&lt;P&gt;BAPI, IDoc:&lt;/P&gt;&lt;P&gt;g_edidd_segnam = '...'.&lt;/P&gt;&lt;P&gt;g_edidd_segnum = '....'.&lt;/P&gt;&lt;P&gt;g_edidd_psgnum = '......'.&lt;/P&gt;&lt;P&gt;g_edidd_hlevel = '..'.&lt;/P&gt;&lt;P&gt;Clear &amp;lt;segment&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;__END_OF_RECORD After applying the&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;conversion rules for a&lt;/P&gt;&lt;P&gt;source structure&lt;/P&gt;&lt;P&gt;Transfer_record.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;__END_OF_TRANSACTION__ After finishing transaction&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;processing&lt;/P&gt;&lt;P&gt;Transfer_transaction.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;__END_OF_PROCESSING__ After finishing data&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;processing&lt;/P&gt;&lt;P&gt;(blank)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;transfer_record. Transfers the current record (i.e. for the current target&lt;/P&gt;&lt;P&gt;structure) to the output buffer.&lt;/P&gt;&lt;P&gt;transfer_this_record '...'. Transfers a record of another target structure to the output&lt;/P&gt;&lt;P&gt;buffer. The name of the target structure has to be specified as&lt;/P&gt;&lt;P&gt;argument in single quotes.&lt;/P&gt;&lt;P&gt;at_first_transfer_record. Transfers the current record to the output buffer, if it is the first&lt;/P&gt;&lt;P&gt;transaction.&lt;/P&gt;&lt;P&gt;on_change_transfer_record. Transfers the current record to the output buffer, if it has&lt;/P&gt;&lt;P&gt;changed compared to the last record.&lt;/P&gt;&lt;P&gt;transfer_transaction. Writes the current transaction to an output file. All records of&lt;/P&gt;&lt;P&gt;Legacy System Migration Workbench&lt;/P&gt;&lt;P&gt;38&lt;/P&gt;&lt;P&gt;the output buffer are transferred to the output file.&lt;/P&gt;&lt;P&gt;skip_record. The current record is not transferred to the output buffer.&lt;/P&gt;&lt;P&gt;skip_transaction. The current transaction is not written to the output file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 09:50:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/3032024#M717167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T09:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/3032025#M717168</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;U can write the code inside the 5th step.As per your requirement just give the conditions as you have written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just click the change mode, then press the event button,then check the processing time periods box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U will find the editor to write your code eventwise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the conditions as per your requirement for the corresponding fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 11:09:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/3032025#M717168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T11:09:41Z</dc:date>
    </item>
  </channel>
</rss>

