<?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: Where clause:- in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988296#M705747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks A Lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2007 05:26:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-13T05:26:59Z</dc:date>
    <item>
      <title>Where clause:-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988290#M705741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a where condition as shown,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"where field1 eq var1" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now my requirement is to check for a list of values for var1.&lt;/P&gt;&lt;P&gt;that is, &lt;/P&gt;&lt;P&gt;I would like to provide a list of entries instead of var1( internal table or array of values )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 05:18:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988290#M705741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T05:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause:-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988291#M705742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;used for all entiers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES WHERE &lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;... FOR ALL ENTRIES IN itab WHERE ... col operator itab-comp ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;If the addition FOR ALL ENTRIES is specified before the language element WHERE, then the components comp of the internal table itab can be used as operands when comparing with relational operators. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The internal table itab must have a structured line type and the component comp must be compatible with the column col. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logical expression sql_cond of the WHERE condition can comprise various logical expressions by using AND and OR. However, if FOR ALL ENTRIES is specified, there must be at least one Comparison with a column of the internal table itab, which can be specified either statistically or dynamically (Release 6.40 and higher). In a statement with a SELECTstatement with FOR ALL ENTRIES, the addition ORDER BY can only be used with the addition PRIMARY KEY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The whole logical expression sql_cond is evaluated for each individual line of the internal table itab. The resulting set of the SELECT statement is the union of the resulting sets from the individual evaluations. Duplicate lines are automatically removed from the resulting set. If the internal table itab is empty, the whole WHERE statement is ignored and all lines in the database are put in the resulting set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;In Release 6.10 and higher, the same internal table can be specified after FOR ALL ENTRIES and after INTO. &lt;/P&gt;&lt;P&gt;The addition FOR ALL ENTRIES is only possible before WHERE conditions of the SELECT statement. &lt;/P&gt;&lt;P&gt;If the additions PACKAGE SIZE or UP TO n ROWS are specified together with FOR ALL ENTRIES, they are not passed to the database system but are applied instead to the resulting set once all selected rows on the application server have been imported. &lt;/P&gt;&lt;P&gt;With duplicated rows in the resulting set, the addition FOR ALL ENTRIES has the same effect as if addition DISTINCT were specified in the definition of the selection quantity. Unlike DISTINCT, the rows are not deleted from the database system but are deleted on the application server from the resulting set. &lt;/P&gt;&lt;P&gt;Addition FOR ALL ENTRIES is only possible for WHERE conditions of the SELECT statement. &lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Exporting all flight data for a specified departure city. The relevant airlines and flight numbers are first put in an internal table entry_tab, which is evaluated in the WHERE condition of the subsquent SELECT statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS p_city TYPE spfli-cityfrom. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF entry_tab_type, &lt;/P&gt;&lt;P&gt;         carrid TYPE spfli-carrid, &lt;/P&gt;&lt;P&gt;         connid TYPE spfli-connid, &lt;/P&gt;&lt;P&gt;       END OF entry_tab_type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: entry_tab   TYPE TABLE OF entry_tab_type, &lt;/P&gt;&lt;P&gt;      sflight_tab TYPE SORTED TABLE OF sflight &lt;/P&gt;&lt;P&gt;                       WITH UNIQUE KEY carrid connid fldate. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT carrid connid &lt;/P&gt;&lt;P&gt;       FROM spfli &lt;/P&gt;&lt;P&gt;       INTO CORRESPONDING FIELDS OF TABLE entry_tab &lt;/P&gt;&lt;P&gt;       WHERE cityfrom = p_city. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT carrid connid fldate &lt;/P&gt;&lt;P&gt;       FROM sflight &lt;/P&gt;&lt;P&gt;       INTO CORRESPONDING FIELDS OF TABLE sflight_tab &lt;/P&gt;&lt;P&gt;       FOR ALL ENTRIES IN entry_tab &lt;/P&gt;&lt;P&gt;       WHERE carrid = entry_tab-carrid AND &lt;/P&gt;&lt;P&gt;             connid = entry_tab-connid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 05:20:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988291#M705742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T05:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause:-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988292#M705743</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;Use for all entries ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T_MATNR TYPE STANDARD TABLE OF MATNR.&lt;/P&gt;&lt;P&gt;DATA: T_MARA   TYPE STANDARD TABLE OF MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MATNR FROM MARA&lt;/P&gt;&lt;P&gt;              INTO TABLE T_MATNR&lt;/P&gt;&lt;P&gt;              FOR ALL ENTRIES IN T_MARA&lt;/P&gt;&lt;P&gt;              WHERE MATNR = T_MARA-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 05:21:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988292#M705743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T05:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause:-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988293#M705744</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;   If u have another internal table then use for all entries for that otherwise do like this&lt;/P&gt;&lt;P&gt;        where field1 in ( 'value1', 'value2', 'value3' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 05:22:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988293#M705744</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2007-11-13T05:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause:-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988294#M705745</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;&lt;/P&gt;&lt;P&gt;u can use AND or OR operator for checking multiple values of field.. if static values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or FOR ALL ENTRIES... if dynamic values..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 05:22:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988294#M705745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T05:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause:-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988295#M705746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;USE&lt;/P&gt;&lt;P&gt;"  WHERE FIELD1 IN ('A1','A2',................) "  -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt;FOR ARRAY OF VALUES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT .......... FROM,,,......... FOR ALL ENTRIES IN IT_TABLE &lt;/P&gt;&lt;P&gt;                                                      WHERE FIELD1 = IT_TABLE-FIELD1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                                               -&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;&amp;gt;FOR INTERNAL TABLE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 05:23:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988295#M705746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T05:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause:-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988296#M705747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks A Lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 05:26:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988296#M705747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T05:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause:-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988297#M705748</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;You can use Ranges for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Populate your range ra_var with the values u want .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then midify ur where condition like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where field1 IN ra_var .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 05:27:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988297#M705748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T05:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause:-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988298#M705749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make range and enter fields values in that.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------" /&gt;&lt;P&gt;RANGES: FLDS.&lt;/P&gt;&lt;P&gt;FLDS-LOW = 'VALUE1'.&lt;/P&gt;&lt;P&gt;FLDS-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;FLDS-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;APPEND FLDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLDS-LOW = 'VALUE2'.&lt;/P&gt;&lt;P&gt;FLDS-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;FLDS-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;APPEND FLDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM ZTABLE INTO ITAB WHERE FLD IN FLDS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 05:32:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988298#M705749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T05:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause:-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988299#M705750</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;You can use this option...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where filed in ( list of values ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;where field in ( 'hyd', 'sec' , 'banglore').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how many entreis you want to give as list of values?.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards \&lt;/P&gt;&lt;P&gt;sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 06:15:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-clause/m-p/2988299#M705750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T06:15:12Z</dc:date>
    </item>
  </channel>
</rss>

