<?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 Select using range in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-range/m-p/6203155#M1376403</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;i have a req to use in a select statement two dates variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg variable dat1 and dat2 has some date for eg say 01-09-08 and 09-02-09 and i want to use select statement with both the dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg say&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM table INTO table it_text&lt;/P&gt;&lt;P&gt;                   WHERE key1   = var1                  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   date = date1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i want to use range for defining the dates as i have nw two dates.  and i want to get records for both the dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Arora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Sep 2009 13:17:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-29T13:17:38Z</dc:date>
    <item>
      <title>Select using range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-range/m-p/6203155#M1376403</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;i have a req to use in a select statement two dates variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg variable dat1 and dat2 has some date for eg say 01-09-08 and 09-02-09 and i want to use select statement with both the dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg say&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM table INTO table it_text&lt;/P&gt;&lt;P&gt;                   WHERE key1   = var1                  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   date = date1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i want to use range for defining the dates as i have nw two dates.  and i want to get records for both the dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Arora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 13:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-range/m-p/6203155#M1376403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-29T13:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select using range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-range/m-p/6203156#M1376404</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 this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ranges: d for table-date.
d-sign = 'I'.
d-option = 'EQ'.
d-low = '20080101'.
append d.

d-sign = 'I'.
d-option = 'EQ'.
d-low = '20091001'.
append d.

SELECT * FROM table INTO table it_text
WHERE key1 = var1 AND
 date IN d.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;regards,darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 13:46:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-range/m-p/6203156#M1376404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-29T13:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select using range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-range/m-p/6203157#M1376405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I remember your all previous questions and following them closely. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspects if you read moderatoru2019s message or not? Yet your question should be forbidden because you must follow youu2019re below thread but updating your additional problem regarding ranges in select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Moderator message - Moved to the correct forum

Edited by: Rob Burbank on Sep 9, 2009 10:14 AM&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="thread" id="1470635"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take care and yet you not deserve to reactive the answers anymore since you did not share your solutions with us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Amit Gujargoud on Sep 29, 2009 3:52 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 13:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-range/m-p/6203157#M1376405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-29T13:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select using range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-range/m-p/6203158#M1376406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;problme resolved self&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 13:50:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-range/m-p/6203158#M1376406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-29T13:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Select using range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-range/m-p/6203159#M1376407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is the solution...&lt;/P&gt;&lt;P&gt;DATA r_netwr type range of table-netwr,                  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        wa_datvr like line of r_netwr                   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constants: lc_sign type C value 'I',&lt;/P&gt;&lt;P&gt;           lc_options(2) type C Value 'BT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear r_netwr.&lt;/P&gt;&lt;P&gt;  wa_datvr-sign   = lc_sign .&lt;/P&gt;&lt;P&gt;      wa_datvr-option = lc_options.&lt;/P&gt;&lt;P&gt;      wa_datvr-low    = l_predat.&lt;/P&gt;&lt;P&gt;      wa_datvr-high   = gs_toav0_old-ar_date.&lt;/P&gt;&lt;P&gt;      append wa_datvr to r_netwr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM table INTO TABLE gt_table&lt;/P&gt;&lt;P&gt;                                      AND datvr   in r_netwr.               &lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 14:02:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-range/m-p/6203159#M1376407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-29T14:02:54Z</dc:date>
    </item>
  </channel>
</rss>

