<?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: Check statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486588#M560833</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;u can check examples in the SAP system. that is probably the best way to have the comparison test for performance. for that u plz go to se11. in that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ENVIROMNMENT-&amp;gt;EXAMPLES-&amp;gt;PERFORMANCE EXAMPLES&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz dont forget to reward points if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2007 12:23:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-19T12:23:37Z</dc:date>
    <item>
      <title>Check statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486583#M560828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Please let me know if I am using CHECK statement within a loop instead of IF,ELSE; will it affect the performance of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, which is better way to code with check or if.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 12:17:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486583#M560828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T12:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Check statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486584#M560829</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;CHECK statement will have better effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since when you use IF ENDIF, ENDLOOP statement has to be executed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where as CHECK if fails comes back to first statement in the loop for the next loop pass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;But the differnece is only very less since these days most of the application servers are good in performance and CHECK and IF both will be processed in the application servers Work process there is not much difference but if you ask in minute levels CHECK Is better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But careful to use it as it skips all the code below that statement.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 12:20:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486584#M560829</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-07-19T12:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Check statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486585#M560830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  If there is only one  IF statement , then you can use CHECK  statement instead of IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have to IF ..ELSEIF ..ENDIF, then there is no other way you have to use If instead of CHECK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;performance wise both are sam i guess&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 12:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486585#M560830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T12:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Check statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486586#M560831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes CHECK gives u more performance that in using IF...ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally you should be using more of CHECK than IF...ENDIF. but circumstances can impact your usage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 12:21:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486586#M560831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T12:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Check statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486587#M560832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Refer&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/check_lo.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/check_lo.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 12:22:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486587#M560832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T12:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Check statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486588#M560833</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;u can check examples in the SAP system. that is probably the best way to have the comparison test for performance. for that u plz go to se11. in that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ENVIROMNMENT-&amp;gt;EXAMPLES-&amp;gt;PERFORMANCE EXAMPLES&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz dont forget to reward points if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 12:23:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486588#M560833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T12:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Check statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486589#M560834</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;Performance should be about the same...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try your code out from SE30 ABAP Runtime Analysis... choose the 'Tips &amp;amp; Tricks' button... enter your code and execute it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Dave Taranovich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 12:26:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486589#M560834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T12:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Check statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486590#M560835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Performance wise it may be better...helping make programs maintenable it's not. When for example, inside a loop there's a lot of code, I think IF...ELSE is better for that reason. Using IF helps to understand logic easily, specially for people new to ABAP.&lt;/P&gt;&lt;P&gt;My two cents.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 12:30:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486590#M560835</guid>
      <dc:creator>alejandro_bindi</dc:creator>
      <dc:date>2007-07-19T12:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Check statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486591#M560836</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;Check statement would be performane oriented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the CHECK &amp;lt;expr&amp;gt; statement within an event block but not within a loop, and the condition &amp;lt;expr&amp;gt; is not fulfilled, the system exits the processing block immediately. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;expr&amp;gt; can be any logical expression or the name of a selection table. If you specify a selection table and the contents of the corresponding table work are do not fulfill the condition in the selection table, it is the same as a false logical expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the CHECK statement occurs in a loop using DO, WHILE, or LOOP, it is the loop that terminates, not the processing block. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within a GET event block, this means the next GET event at the same hierarchical level. When it leaves the event block, the logical database reads the next line of the current node, or the next-highest node if it has already reached the end of the hierarchy level. Nodes that are lower down in the hierarchical structure of the logical database are not processed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside GET events, you can use an extra variant of the CHECK statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK SELECT-OPTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement checks the contents of the table work area of the current node against all selection tables linked to that node. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that CHECK statements for checking database contents in GET events are only processed after the data has been read from the logical database. For performance reasons, you should therefore avoid using checks of this kind. Instead, try to check before the data is read, for example, by using dynamic selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 12:35:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486591#M560836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T12:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Check statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486592#M560837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your useful responses.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 15:37:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-statement/m-p/2486592#M560837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T15:37:42Z</dc:date>
    </item>
  </channel>
</rss>

