<?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: Problem in Dynamic Where clause.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dynamic-where-clause/m-p/2349542#M518585</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select * 
from Ztable 
into table itab 
where Field1 = 'X' and ( Field2 = 'A' or Field2 = 'B' ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2007 19:46:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-31T19:46:08Z</dc:date>
    <item>
      <title>Problem in Dynamic Where clause..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dynamic-where-clause/m-p/2349541#M518584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement in which i have to do a select statement where (Field1 = 'X') and (Field2 = 'A' or Field2 = 'B').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if i write it directly, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select * from Ztable into table itab where Field1 = 'X' and Field2 = 'A' or Field2 = 'B'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I am not getting the expected result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead i need something which tells the where clause to do OR operation first and then AND operation..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas ?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Tatvagna Shah.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 19:43:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dynamic-where-clause/m-p/2349541#M518584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T19:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Dynamic Where clause..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dynamic-where-clause/m-p/2349542#M518585</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select * 
from Ztable 
into table itab 
where Field1 = 'X' and ( Field2 = 'A' or Field2 = 'B' ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 19:46:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dynamic-where-clause/m-p/2349542#M518585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T19:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Dynamic Where clause..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dynamic-where-clause/m-p/2349543#M518586</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;Actually...just got a hint at almost the same time you answered...!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still 10 points for you....Just coz, you were the only one to reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Tatvagna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 20:02:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dynamic-where-clause/m-p/2349543#M518586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T20:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Dynamic Where clause..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dynamic-where-clause/m-p/2349544#M518587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, you must remember that parentheses and operators are keywords, and must therefore be preceded and followed by at least one space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 16:46:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dynamic-where-clause/m-p/2349544#M518587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T16:46:55Z</dc:date>
    </item>
  </channel>
</rss>

