<?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: Nested IF statement: issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752351#M1460331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The cursor will indeed go to the ELSE statement in debug, but does it execute the code after the else, or does it then go directly to the outer ENDIF....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF  ....  &amp;lt;First stop.&lt;/P&gt;&lt;P&gt;   IF.... &amp;lt;second stop&lt;/P&gt;&lt;P&gt;  IF.... &amp;lt;third stop...&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;else.&amp;lt;eventually I get here and then I should immediately go to ENDIF, if the first IF statement is true.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;endif...&amp;lt;next stop after ELSE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Mar 2010 17:20:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-25T17:20:12Z</dc:date>
    <item>
      <title>Nested IF statement: issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752347#M1460327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a code like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &amp;lt;condition1&amp;gt;&lt;/P&gt;&lt;P&gt; if (variable)  between value1  and Value 2.&lt;/P&gt;&lt;P&gt;  if (variable2) between value3 and value 4.&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;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now problem is even when all the three conditions are satisfying, the cursor always goes to else statement in the second half of the coding..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Mar 2010 13:37:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752347#M1460327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-25T13:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF statement: issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752348#M1460328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Any suggestions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, please use  tags and post the actual code here, not just pseudo code.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Mar 2010 13:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752348#M1460328</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-03-25T13:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF statement: issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752349#M1460329</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;give the logc below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &amp;lt;condition1&amp;gt;&lt;/P&gt;&lt;P&gt;if (variable) between value1 and Value 2.&lt;/P&gt;&lt;P&gt;if (variable2) between value3 and value 4.&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;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now ur problem will solve..let me know still if you have any issues..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Mar 2010 13:56:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752349#M1460329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-25T13:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF statement: issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752350#M1460330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved by selfl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: S Simran on Mar 29, 2010 9:46 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Mar 2010 14:07:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752350#M1460330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-25T14:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF statement: issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752351#M1460331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The cursor will indeed go to the ELSE statement in debug, but does it execute the code after the else, or does it then go directly to the outer ENDIF....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF  ....  &amp;lt;First stop.&lt;/P&gt;&lt;P&gt;   IF.... &amp;lt;second stop&lt;/P&gt;&lt;P&gt;  IF.... &amp;lt;third stop...&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;else.&amp;lt;eventually I get here and then I should immediately go to ENDIF, if the first IF statement is true.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;endif...&amp;lt;next stop after ELSE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Mar 2010 17:20:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752351#M1460331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-25T17:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF statement: issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752352#M1460332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using nested if statements in my open it is better to go with CASE statement.I am  sure it is  better in performance prospective of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 08:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752352#M1460332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T08:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF statement: issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752353#M1460333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got the same problem.. let me know that how you fixed it &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1925/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 06:41:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752353#M1460333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-01T06:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF statement: issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752354#M1460334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik Mrvk ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just remove if statements and use Case statements. It is better to use case statements when you have more than one condition to satisfy. It will improve your program performance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 07:23:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752354#M1460334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-01T07:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF statement: issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752355#M1460335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sai praveen &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1925/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;.. and one more help.. i'm very new to ABAP.. can you tell me how to use case statement instead of IF ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my source code.. to find the biggest number among three .. this is working perfectly but how to do it using Case statement.. also if the two number has same value how can i process it . which is the best logic to find it . ?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #993300;"&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52"&gt;REPORT ZKARTHI_BIGGESTNUMBER&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;WRITE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'fINDING THE bIGGEST NUMBER'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;NEW-LINE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*DECLARING PARA METERSS*&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;PARAMETERS&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;NUMBER1 &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;I&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUMBER2 &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;I&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUMBER3 &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;I&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*PARAMETER DECLARATION OVER HERE*&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;NUMBER1 &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;NUMBER2 &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;NUMBER1 &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;NUMBER3 &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;WRITE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ALL NUMBERS ARE EQUAL'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;ELSEIF &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;NUMBER1 &amp;gt; NUMBER2 &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;NUMBER1 &amp;gt; NUMBER3 &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;:&lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'bIGGEST NUMBER IS,NUMBER1'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;NUMBER1&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;ELSEIF &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;NUMBER2 &amp;gt; NUMBER3 &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;:&lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'BIGGEST NUMBER IS NUMBER2'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;NUMBER2&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;ELSE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;:&lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'BIGGEST NUMBER IS NUMBER3'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;NUMBER3&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Karthi Mrvk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 14:28:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752355#M1460335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-01T14:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF statement: issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752356#M1460336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 06:37:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-if-statement-issue/m-p/6752356#M1460336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-29T06:37:10Z</dc:date>
    </item>
  </channel>
</rss>

