<?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: SELECT WHERE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-where/m-p/5015149#M1167071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do a range &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES: r_date FOR vbak-erdat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_date-low = sy-datum - 61.&lt;/P&gt;&lt;P&gt;r_date-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_date-option = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append R_DATE. Clear: R_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_date-low = sy-datum - 61.&lt;/P&gt;&lt;P&gt;r_date-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_date-option = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append R_DATE. Clear: R_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select erdat into w_erdat from vbak&lt;/P&gt;&lt;P&gt;  where erdat in r_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should compare two values agains one field in select statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Jan 2009 15:47:49 GMT</pubDate>
    <dc:creator>former_member191735</dc:creator>
    <dc:date>2009-01-02T15:47:49Z</dc:date>
    <item>
      <title>SELECT WHERE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-where/m-p/5015148#M1167070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like know how i can do a SELECT with more than one value to one field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_value1 = 001.&lt;/P&gt;&lt;P&gt;v_value2 = 002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT lifnr&lt;/P&gt;&lt;P&gt;  where lifnr eq v_value1 and v_value2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want do the select using two variable comparing one field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone can help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Denilson&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;always use meaningful subject in future&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vijay Babu Dudla on Jan 2, 2009 1:15 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 15:36:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-where/m-p/5015148#M1167070</guid>
      <dc:creator>Private_Member_527672</dc:creator>
      <dc:date>2009-01-02T15:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHERE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-where/m-p/5015149#M1167071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do a range &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES: r_date FOR vbak-erdat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_date-low = sy-datum - 61.&lt;/P&gt;&lt;P&gt;r_date-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_date-option = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append R_DATE. Clear: R_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_date-low = sy-datum - 61.&lt;/P&gt;&lt;P&gt;r_date-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_date-option = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append R_DATE. Clear: R_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select erdat into w_erdat from vbak&lt;/P&gt;&lt;P&gt;  where erdat in r_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should compare two values agains one field in select statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 15:47:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-where/m-p/5015149#M1167071</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2009-01-02T15:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHERE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-where/m-p/5015150#M1167072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT lifnr
where lifnr IN ( v_value1 , v_value2 ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 15:54:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-where/m-p/5015150#M1167072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-02T15:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHERE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-where/m-p/5015151#M1167073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Guys for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select lifnr&lt;/P&gt;&lt;P&gt; WHERE ( ( lifnr = value1 ) or ( lifnr = value2 ) ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thaks&lt;/P&gt;&lt;P&gt;Denilson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 16:08:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-where/m-p/5015151#M1167073</guid>
      <dc:creator>Private_Member_527672</dc:creator>
      <dc:date>2009-01-02T16:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHERE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-where/m-p/5015152#M1167074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_value1 = 001.&lt;/P&gt;&lt;P&gt;v_value2 = 002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT lifnr&lt;/P&gt;&lt;P&gt;where lifnr =  v_value1 or&lt;/P&gt;&lt;P&gt;         lifnr = v_value2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manuel Reck on Jan 2, 2009 7:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 18:30:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-where/m-p/5015152#M1167074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-02T18:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHERE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-where/m-p/5015153#M1167075</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;What you did is also ok but as far as my knowledge goes better approach will be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT LIFNR WHERE LIFNR IN ( VALUE1, VALUE2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is just matter of understanding frpm person to person .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pooja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 06:29:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-where/m-p/5015153#M1167075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T06:29:05Z</dc:date>
    </item>
  </channel>
</rss>

