<?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: help regd to CHECK statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regd-to-check-statement/m-p/3075693#M729296</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 log_exp. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the statement CHECK is executed outside a loop and log_exp is incorrect, the statement terminates the current process block. You can specify any logical expression for log_exp. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The behavior of the runtime environment after exiting the processing block is described under Exiting Processing Blocks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP recommends to use this procedure with the statement CHECK only inside loops (see CHECK (Loops) ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2007 06:28:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-26T06:28:50Z</dc:date>
    <item>
      <title>help regd to CHECK statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regd-to-check-statement/m-p/3075692#M729295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SDN's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on 4.6C version.&lt;/P&gt;&lt;P&gt;I have an internal table ITAB with Sales Group as one of its field.&lt;/P&gt;&lt;P&gt;I have Sales Group SO_VKGRP on the selection screen as select-options no intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my problem is if the SO_VKGRP has some entries in the excluding list,then the check statement is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;I know i am wrong at some point. Correct me.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at ITAB.
    IF NOT p_spart IS INITIAL.
      SELECT SINGLE * FROM knvv
                      WHERE kunnr EQ itab-cust_acct AND
                            spart EQ p_spart.
      CHECK sy-subrc EQ 0.
    ENDIF.

    IF knvv-spart = 'H1'.
      IF NOT so_vkgrp[] IS INITIAL.
        CHECK knvv-vkgrp in so_vkgrp. 
        " wil this be correct if i have entries in the 
        " excluding tab of select options
      ENDIF.
&amp;lt;Some modifications and validation are done here&amp;gt;
    ENDIF.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 06:19:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regd-to-check-statement/m-p/3075692#M729295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T06:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: help regd to CHECK statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regd-to-check-statement/m-p/3075693#M729296</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 log_exp. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the statement CHECK is executed outside a loop and log_exp is incorrect, the statement terminates the current process block. You can specify any logical expression for log_exp. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The behavior of the runtime environment after exiting the processing block is described under Exiting Processing Blocks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP recommends to use this procedure with the statement CHECK only inside loops (see CHECK (Loops) ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 06:28:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regd-to-check-statement/m-p/3075693#M729296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T06:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: help regd to CHECK statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regd-to-check-statement/m-p/3075694#M729297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pratyusha,&lt;/P&gt;&lt;P&gt;If the check statement is executed outside a loop,if the logical expression is incorrect, it exits the current processing block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So change your coding accordingly and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sayee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 06:28:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regd-to-check-statement/m-p/3075694#M729297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T06:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: help regd to CHECK statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regd-to-check-statement/m-p/3075695#M729298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to both, but my Question is will it consider the values that are given in the exclude tab or not.&lt;/P&gt;&lt;P&gt;That means the SO_VKGRP which is having some entries in the EXCLUDE TAB will they be considered during the check or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 06:57:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regd-to-check-statement/m-p/3075695#M729298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T06:57:00Z</dc:date>
    </item>
  </channel>
</rss>

