<?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 - Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-problem/m-p/2244540#M484347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please tell me, why did you make the changes this way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain the changes and what they signify.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 May 2007 19:43:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-11T19:43:06Z</dc:date>
    <item>
      <title>LSMW - Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-problem/m-p/2244538#M484345</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;In the following code:&lt;/P&gt;&lt;P&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;img src="http://img527.imageshack.us/img527/7114/lsmwrl6.jpg" border="0"/&amp;gt;&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;vkorg is sales org&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;vwerks is delivery plant&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lsmw reads the vkorg and vwerk. However, say the 1st vkorg is zpmb, with vwerk 1010. It will read all of those entries and when it gets to the next vkorg (say zprm) it will continue to use the same vwerk, instead of the real one.&lt;/P&gt;&lt;P&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;How do i fix this?&lt;/P&gt;&lt;P&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;Thanks,&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        John Damion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        John Damion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 19:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-problem/m-p/2244538#M484345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T19:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: LSMW - Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-problem/m-p/2244539#M484346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI John,&lt;/P&gt;&lt;P&gt;Try with the following changes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single werks from tvkwz into wa-werks where vkorg = main_cust_file-vkorg.&lt;/P&gt;&lt;P&gt;if wa_werks is initial.&lt;/P&gt;&lt;P&gt;import wa_werks from memory id wa-mid2.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;bknvv-vwerk = wa_werks.&lt;/P&gt;&lt;P&gt;export wa-werks to wa_mid2.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 19:16:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-problem/m-p/2244539#M484346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T19:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: LSMW - Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-problem/m-p/2244540#M484347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please tell me, why did you make the changes this way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain the changes and what they signify.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 19:43:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-problem/m-p/2244540#M484347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T19:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: LSMW - Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-problem/m-p/2244541#M484348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) get the plant from the table for the VKORG in the fiel.&lt;/P&gt;&lt;P&gt;select single werks from tvkwz into wa-werks where vkorg = main_cust_file-vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) If there is no Plant in the table for the VKORG in the file,&lt;/P&gt;&lt;P&gt;get the previous plant(The plant that was exported to memory last record).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Export the current plant number to make it available for next record if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 23:35:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-problem/m-p/2244541#M484348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T23:35:37Z</dc:date>
    </item>
  </channel>
</rss>

