<?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: using loops &amp; varying condition... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-loops-varying-condition/m-p/2375870#M526824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pls explain what you want. We are dummies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Jun 2007 16:28:48 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2007-06-17T16:28:48Z</dc:date>
    <item>
      <title>using loops &amp; varying condition...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-loops-varying-condition/m-p/2375867#M526821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using Loops and varying condition try and get this output. Output: -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;Sales Order Number----&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2007 15:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-loops-varying-condition/m-p/2375867#M526821</guid>
      <dc:creator>sudhir_uppalapati</dc:creator>
      <dc:date>2007-06-17T15:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: using loops &amp; varying condition...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-loops-varying-condition/m-p/2375868#M526822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please let me know the question ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2007 15:31:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-loops-varying-condition/m-p/2375868#M526822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-17T15:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: using loops &amp; varying condition...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-loops-varying-condition/m-p/2375869#M526823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using Loops and varying condition try and get this output. Output: -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;Sales Order Number----&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2007 15:35:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-loops-varying-condition/m-p/2375869#M526823</guid>
      <dc:creator>sudhir_uppalapati</dc:creator>
      <dc:date>2007-06-17T15:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: using loops &amp; varying condition...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-loops-varying-condition/m-p/2375870#M526824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pls explain what you want. We are dummies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2007 16:28:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-loops-varying-condition/m-p/2375870#M526824</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-06-17T16:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: using loops &amp; varying condition...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-loops-varying-condition/m-p/2375871#M526825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;jus using LOOPS and VARYING condition i want the output as -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;sales order document-----&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2007 16:34:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-loops-varying-condition/m-p/2375871#M526825</guid>
      <dc:creator>sudhir_uppalapati</dc:creator>
      <dc:date>2007-06-17T16:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: using loops &amp; varying condition...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-loops-varying-condition/m-p/2375872#M526826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Why do you want to use LOOP for outputting -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;sales order document----- ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could also use WRITE '--&lt;DEL&gt;-sales order document&lt;/DEL&gt;--- '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hakim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark all useful answers....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2007 16:47:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-loops-varying-condition/m-p/2375872#M526826</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2007-06-17T16:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: using loops &amp; varying condition...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-loops-varying-condition/m-p/2375873#M526827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, get serious: Possibly you are into a do loop. A quick search of this forum (only real experts know how to do) gave this example (courtesy vasanth M)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... VARYING f FROM f1 NEXT f2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;This addition is useful if you have a series of fields of the same type and the same distance from each other.&lt;/P&gt;&lt;P&gt;f is a variable which you define in a DATA statement. On each loop pass, f contains a new value. The field f1 after "FROM" specifies the first value of the variable f, while the field f2 after "NEXT" specifies the value to be assigned to the variable f in the second pass. For each subsequent pass, the variable f contains the next value in the sequence determined by the distance between the fields f, f1 and f2 in memory.&lt;/P&gt;&lt;P&gt;The fields f1 and f2 should be type-compatible and convertible to f.&lt;/P&gt;&lt;P&gt;If the value of f changes during the loop pass, the new value is then placed in the appropriate field fn assigned to f (transfer type: pass by value and result). If the loop pass terminates because of a dialog message, the new value is not passed back if f changes.&lt;/P&gt;&lt;P&gt;The addition ... VARYING f FROM f1 NEXT f2 can be used several times in a DO statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF WORD, &lt;/P&gt;&lt;P&gt;        ONE   VALUE 'E', &lt;/P&gt;&lt;P&gt;        TWO   VALUE 'x', &lt;/P&gt;&lt;P&gt;        THREE VALUE 'a', &lt;/P&gt;&lt;P&gt;        FOUR  VALUE 'm', &lt;/P&gt;&lt;P&gt;        FIVE  VALUE 'p', &lt;/P&gt;&lt;P&gt;        SIX   VALUE 'l', &lt;/P&gt;&lt;P&gt;        SEVEN VALUE 'e', &lt;/P&gt;&lt;P&gt;        EIGHT VALUE '!', &lt;/P&gt;&lt;P&gt;      END   OF WORD, &lt;/P&gt;&lt;P&gt;      LETTER1, LETTER2. &lt;/P&gt;&lt;P&gt;DO VARYING LETTER1 FROM WORD-ONE NEXT WORD-THREE &lt;/P&gt;&lt;P&gt;   VARYING LETTER2 FROM WORD-TWO NEXT WORD-FOUR. &lt;/P&gt;&lt;P&gt;  WRITE: LETTER1, LETTER2. &lt;/P&gt;&lt;P&gt;  IF LETTER2 = '!'. &lt;/P&gt;&lt;P&gt;    EXIT. &lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The resulting output is the character string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"E x a m p l e !".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemsn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2007 17:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-loops-varying-condition/m-p/2375873#M526827</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-06-17T17:26:19Z</dc:date>
    </item>
  </channel>
</rss>

