<?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: loop  repeat the data to 3 times in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-repeat-the-data-to-3-times/m-p/5225481#M1208166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 May 2009 02:40:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-17T02:40:22Z</dc:date>
    <item>
      <title>loop  repeat the data to 3 times</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-repeat-the-data-to-3-times/m-p/5225475#M1208160</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;&lt;/P&gt;&lt;P&gt;I am facing problem while running the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_cus type table of vbrk,&lt;/P&gt;&lt;P&gt;       w_cus like line of it_cus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if z_cust is not initial.&lt;/P&gt;&lt;P&gt;            select KUNRG&lt;/P&gt;&lt;P&gt;            from VBRK&lt;/P&gt;&lt;P&gt;            into corresponding fields of table it_cus&lt;/P&gt;&lt;P&gt;            where KUNRG in z_cust .&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; delete adjacent duplicates from it_cus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            loop at it_cus into w_cus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  Z_KUNRG = w_cus-KUNRG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                 append w_cus to btab..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                    perform cal_intrest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF  Z_KUNRG =&amp;lt; z_cust-HIGH.    " This code i have written to stop the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   EXIT.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;The program is running 3 times to retrive the data without this code.&lt;/P&gt;&lt;P&gt;Can you suggest any other than to stop the loop at  z_cust-HIGH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  clear w_cus.&lt;/P&gt;&lt;P&gt;                  clear ITK.&lt;/P&gt;&lt;P&gt;                  clear W_ITK.&lt;/P&gt;&lt;P&gt;                  clear I_IT .&lt;/P&gt;&lt;P&gt;                  free I_IT .&lt;/P&gt;&lt;P&gt;                  clear w_it.&lt;/P&gt;&lt;P&gt;                  clear  Z_DMBTR.&lt;/P&gt;&lt;P&gt;            endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx &amp;amp; Regds&lt;/P&gt;&lt;P&gt;Vipul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 12:07:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-repeat-the-data-to-3-times/m-p/5225475#M1208160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T12:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: loop  repeat the data to 3 times</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-repeat-the-data-to-3-times/m-p/5225476#M1208161</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;loop at it_cus into w_cus &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; where kunrg = zcust-high &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Z_KUNRG = w_cus-KUNRG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append w_cus to btab.. &lt;/P&gt;&lt;P&gt;perform cal_intrest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF Z_KUNRG =&amp;lt; z_cust-HIGH. " This code i have written to stop the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;The program is running 3 times to retrive the data without this code.&lt;/P&gt;&lt;P&gt;Can you suggest any other than to stop the loop at z_cust-HIGH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear w_cus.&lt;/P&gt;&lt;P&gt;clear ITK.&lt;/P&gt;&lt;P&gt;clear W_ITK.&lt;/P&gt;&lt;P&gt;clear I_IT .&lt;/P&gt;&lt;P&gt;free I_IT .&lt;/P&gt;&lt;P&gt;clear w_it.&lt;/P&gt;&lt;P&gt;clear Z_DMBTR.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 12:11:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-repeat-the-data-to-3-times/m-p/5225476#M1208161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T12:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: loop  repeat the data to 3 times</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-repeat-the-data-to-3-times/m-p/5225477#M1208162</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;try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_cus into w_cus where KUNRG GT Z_CUST-HIGH.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 12:21:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-repeat-the-data-to-3-times/m-p/5225477#M1208162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T12:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: loop  repeat the data to 3 times</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-repeat-the-data-to-3-times/m-p/5225478#M1208163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Vipul,&lt;/P&gt;&lt;P&gt;          instead of using &lt;/P&gt;&lt;P&gt;                      IF Z_KUNRG =&amp;lt; z_cust-HIGH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Try using &lt;/P&gt;&lt;P&gt;                     IF Z_KUNRG  LE z_cust-HIGH&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;      This will help u., Pls try it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Suraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 12:22:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-repeat-the-data-to-3-times/m-p/5225478#M1208163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T12:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: loop  repeat the data to 3 times</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-repeat-the-data-to-3-times/m-p/5225479#M1208164</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;Before  delete adjacent duplicates from it_cus , sort the table IT_cust &lt;/P&gt;&lt;P&gt;Try it.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 12:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-repeat-the-data-to-3-times/m-p/5225479#M1208164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T12:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: loop  repeat the data to 3 times</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-repeat-the-data-to-3-times/m-p/5225480#M1208165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vipul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT statement is used to end the current loop process. Your approach is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF z_kunrg LE z_cust-high.

EXIT.

ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"LE" stands for the logical statement "less than or equal to".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 12:29:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-repeat-the-data-to-3-times/m-p/5225480#M1208165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T12:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: loop  repeat the data to 3 times</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-repeat-the-data-to-3-times/m-p/5225481#M1208166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 May 2009 02:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-repeat-the-data-to-3-times/m-p/5225481#M1208166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-17T02:40:22Z</dc:date>
    </item>
  </channel>
</rss>

