<?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: Looping and using Do Varying in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-and-using-do-varying/m-p/8017195#M1608333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am already using Exit in case of blank records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jul 2011 04:00:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-07-07T04:00:46Z</dc:date>
    <item>
      <title>Looping and using Do Varying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-and-using-do-varying/m-p/8017191#M1608329</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;I got a program which is using a Loop at IT PA0167 and building few tables based on conditions and also using Do 20 times varying statement as well couple of times. When the Program is run with complete data it takes around 20000 records in the IT PA0167 and looping for those and using Do varying is taking lot of time.&lt;/P&gt;&lt;P&gt;What I can think is that I can split IT PA0167 into different sets of employees and then execute, not sure how effective that will be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Idea on how to resolve this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 12:10:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-and-using-do-varying/m-p/8017191#M1608329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-06T12:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Looping and using Do Varying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-and-using-do-varying/m-p/8017192#M1608330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manoj, Try replacing the Do varying with the actual workarea, like if you are summing up in the Do varying, try replacing with actual variable sum like WA-FLD1 + WA-FLD2...WA_FLD20 or Check if the Assign Increment variant improves the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DO.
  inc = sy-index  - 1.
  ASSIGN WA_DATA-FLD1 INCREMENT inc TO &amp;lt;EACH_FLD&amp;gt; RANGE WA_DATA.
  IF sy-subrc = 0.
* ...Logic based on &amp;lt;EACH_FLD&amp;gt;    
  ELSE.
    EXIT.
  ENDIF.
ENDDO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 14:54:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-and-using-do-varying/m-p/8017192#M1608330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-06T14:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Looping and using Do Varying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-and-using-do-varying/m-p/8017193#M1608331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's unlikely that you have to DO 20 TIMES VARYING... for each record in PA0167. Most or all of the fields will be empty. You should determine when you have processed all of the fields and then EXIT or CONTINUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 15:18:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-and-using-do-varying/m-p/8017193#M1608331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-06T15:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Looping and using Do Varying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-and-using-do-varying/m-p/8017194#M1608332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried out but nothing changed much..&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks anyways..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 04:00:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-and-using-do-varying/m-p/8017194#M1608332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-07T04:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Looping and using Do Varying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-and-using-do-varying/m-p/8017195#M1608333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am already using Exit in case of blank records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 04:00:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-and-using-do-varying/m-p/8017195#M1608333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-07T04:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Looping and using Do Varying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-and-using-do-varying/m-p/8017196#M1608334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use EXIT in case of blank fields, not records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 12:56:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-and-using-do-varying/m-p/8017196#M1608334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-07T12:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Looping and using Do Varying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-and-using-do-varying/m-p/8017197#M1608335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mean the same Rob.. I am using Exit for blank field only.. that was a casual statement..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 04:30:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-and-using-do-varying/m-p/8017197#M1608335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-08T04:30:43Z</dc:date>
    </item>
  </channel>
</rss>

