<?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: please explain in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-explain/m-p/3598260#M866577</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 - special for reports with logical databases&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. CHECK sel.&lt;/P&gt;&lt;P&gt;2. CHECK SELECT-OPTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK sel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Checks the selection criterion requested by the statement&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS sel ... .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement is equivalent to f IN sel , if sel was&lt;/P&gt;&lt;P&gt;defined by SELECT-OPTIONS sel FOR f and can be used anywhere&lt;/P&gt;&lt;P&gt;in logical expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the result of this check is negative, the processing in&lt;/P&gt;&lt;P&gt;this event is terminated and the GET events for any&lt;/P&gt;&lt;P&gt;subordinate database tables are not processed either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This variant of the CHECK statement should be used only if&lt;/P&gt;&lt;P&gt;the logical database for the corresponding table does not&lt;/P&gt;&lt;P&gt;support dynamic selections (see CHECK SELECT-OPTIONS ), or&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS with the addition NO DATABASE SELECTION .&lt;/P&gt;&lt;P&gt;Otherwise, the relevant record is not read from the database&lt;/P&gt;&lt;P&gt;and made available to the program.&lt;/P&gt;&lt;P&gt;&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;Effect&lt;/P&gt;&lt;P&gt;Called only after a GET event.&lt;/P&gt;&lt;P&gt;This statement checks all the selections for SELECT-OPTIONS&lt;/P&gt;&lt;P&gt;where the reference field after FOR belongs to the current&lt;/P&gt;&lt;P&gt;table dbtab (specified after GET . However, this applies&lt;/P&gt;&lt;P&gt;only if the logical database for dbtab does not support&lt;/P&gt;&lt;P&gt;dynamic selections . Otherwise, the selections are passed&lt;/P&gt;&lt;P&gt;directly to the logical database (with the exception:&lt;/P&gt;&lt;P&gt;addition " NO DATABASE SELECTION " to SELECT-OPTIONS ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This variant of the CHECK statement only makes sense if the&lt;/P&gt;&lt;P&gt;logical database does not support dynamic selections for the&lt;/P&gt;&lt;P&gt;corresponding table or SELECT-OPTIONS are defined with the&lt;/P&gt;&lt;P&gt;addition " NO DATABASE SELECTION ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can determine from the ABAP/4 Development Workbench&lt;/P&gt;&lt;P&gt;whether dynamic selections are defined and, if so, for which&lt;/P&gt;&lt;P&gt;logical database tables by selecting Development -&amp;gt;&lt;/P&gt;&lt;P&gt;Programming environ. -&amp;gt; Logical databases followed by Extras&lt;/P&gt;&lt;P&gt;-&amp;gt; Dynamic selections .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2008 08:52:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-25T08:52:49Z</dc:date>
    <item>
      <title>please explain</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-explain/m-p/3598258#M866575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i got a select statement in my program as shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select    * from  ce4e001 where bukrs eq s_bukrs-low.&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;check s_kndnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;check s_prctr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    move-corresponding ce4e001 to v_ce4e001.&lt;/P&gt;&lt;P&gt;    append v_ce4e001.&lt;/P&gt;&lt;P&gt;  endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this select statement you can see two check statements &lt;/P&gt;&lt;P&gt;where s_kndnr(customer) and s_prctr(profitcenter) are my selection screen fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one tell me what is the exact meaning i mean why they have used those check statements before appending&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 08:44:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-explain/m-p/3598258#M866575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T08:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: please explain</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-explain/m-p/3598259#M866576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The syntax CHECK select-option is equivalent to CHECK field IN select-option, if select-option is defined like SELECT-OPTIONS: select-option FOR field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two checks , insure that all data appended to internal table has values in the ranges defined by the two select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 08:50:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-explain/m-p/3598259#M866576</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-03-25T08:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: please explain</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-explain/m-p/3598260#M866577</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 - special for reports with logical databases&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. CHECK sel.&lt;/P&gt;&lt;P&gt;2. CHECK SELECT-OPTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK sel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Checks the selection criterion requested by the statement&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS sel ... .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement is equivalent to f IN sel , if sel was&lt;/P&gt;&lt;P&gt;defined by SELECT-OPTIONS sel FOR f and can be used anywhere&lt;/P&gt;&lt;P&gt;in logical expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the result of this check is negative, the processing in&lt;/P&gt;&lt;P&gt;this event is terminated and the GET events for any&lt;/P&gt;&lt;P&gt;subordinate database tables are not processed either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This variant of the CHECK statement should be used only if&lt;/P&gt;&lt;P&gt;the logical database for the corresponding table does not&lt;/P&gt;&lt;P&gt;support dynamic selections (see CHECK SELECT-OPTIONS ), or&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS with the addition NO DATABASE SELECTION .&lt;/P&gt;&lt;P&gt;Otherwise, the relevant record is not read from the database&lt;/P&gt;&lt;P&gt;and made available to the program.&lt;/P&gt;&lt;P&gt;&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;Effect&lt;/P&gt;&lt;P&gt;Called only after a GET event.&lt;/P&gt;&lt;P&gt;This statement checks all the selections for SELECT-OPTIONS&lt;/P&gt;&lt;P&gt;where the reference field after FOR belongs to the current&lt;/P&gt;&lt;P&gt;table dbtab (specified after GET . However, this applies&lt;/P&gt;&lt;P&gt;only if the logical database for dbtab does not support&lt;/P&gt;&lt;P&gt;dynamic selections . Otherwise, the selections are passed&lt;/P&gt;&lt;P&gt;directly to the logical database (with the exception:&lt;/P&gt;&lt;P&gt;addition " NO DATABASE SELECTION " to SELECT-OPTIONS ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This variant of the CHECK statement only makes sense if the&lt;/P&gt;&lt;P&gt;logical database does not support dynamic selections for the&lt;/P&gt;&lt;P&gt;corresponding table or SELECT-OPTIONS are defined with the&lt;/P&gt;&lt;P&gt;addition " NO DATABASE SELECTION ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can determine from the ABAP/4 Development Workbench&lt;/P&gt;&lt;P&gt;whether dynamic selections are defined and, if so, for which&lt;/P&gt;&lt;P&gt;logical database tables by selecting Development -&amp;gt;&lt;/P&gt;&lt;P&gt;Programming environ. -&amp;gt; Logical databases followed by Extras&lt;/P&gt;&lt;P&gt;-&amp;gt; Dynamic selections .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 08:52:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-explain/m-p/3598260#M866577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T08:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: please explain</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-explain/m-p/3598261#M866578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;CHECK is used for terminating the Loop Pass Conditionally .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check s_kndnr.&lt;/P&gt;&lt;P&gt;check s_prctr.&lt;/P&gt;&lt;P&gt;here in the check statements when u give value in the selection screen fields, they check whether the values(kdnr,prctr) are present in the table  ce4e001. if present then  the following conditions are executed.&lt;/P&gt;&lt;P&gt;if not nothing wiil be moved into   v_ce4e001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so that only they have used those check statements before appending&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sreelakshmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 08:56:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-explain/m-p/3598261#M866578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T08:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: please explain</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-explain/m-p/3598262#M866579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;now how can i replace this old select statement with a new one by using into table key word by incorporating these two check statements&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 10:03:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-explain/m-p/3598262#M866579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T10:03:02Z</dc:date>
    </item>
  </channel>
</rss>

