<?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: Complex logic in loop.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/complex-logic-in-loop/m-p/4209608#M1005967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use ON CHANGE OF event and inside this event, check the value, if it is 001, include the stmt. PERFORM C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jul 2008 03:07:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-14T03:07:46Z</dc:date>
    <item>
      <title>Complex logic in loop..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/complex-logic-in-loop/m-p/4209607#M1005966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to write a very complex logic to achieve certain reuirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an internal table i_tab with following values. Now when I loop at i_tab, whenever value is equal to or greater then '001', perform A. Just before when next value will be 001 perform C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;001  -&amp;gt; perform A&lt;/P&gt;&lt;P&gt;002  -&amp;gt; perform A&lt;/P&gt;&lt;P&gt;003  -&amp;gt; perform A. perform C(because the next value is going to be 001)&lt;/P&gt;&lt;P&gt;001  -&amp;gt; perform A&lt;/P&gt;&lt;P&gt;002  -&amp;gt; perform A perform C&lt;/P&gt;&lt;P&gt;001  -&amp;gt; perform A&lt;/P&gt;&lt;P&gt;002  -&amp;gt; perform A&lt;/P&gt;&lt;P&gt;003   -&amp;gt; perform A &lt;/P&gt;&lt;P&gt;004   -&amp;gt; perform A peform C&lt;/P&gt;&lt;P&gt;001&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how can I find the next value of i_tab when I am looping because based on next value in i_tab , I have to perform a function during its previous value.&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;Rajesh,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 03:02:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/complex-logic-in-loop/m-p/4209607#M1005966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T03:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Complex logic in loop..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/complex-logic-in-loop/m-p/4209608#M1005967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use ON CHANGE OF event and inside this event, check the value, if it is 001, include the stmt. PERFORM C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 03:07:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/complex-logic-in-loop/m-p/4209608#M1005967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T03:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Complex logic in loop..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/complex-logic-in-loop/m-p/4209609#M1005968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dummy_i_tab[] = I_tab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_tab.&lt;/P&gt;&lt;P&gt; read dummy_itab with table index = current index of i_tab + 1.&lt;/P&gt;&lt;P&gt;  if dummy_itab  = 001&lt;/P&gt;&lt;P&gt;     perform A. perform C&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;     perform A.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;james.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 03:09:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/complex-logic-in-loop/m-p/4209609#M1005968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T03:09:10Z</dc:date>
    </item>
  </channel>
</rss>

