<?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 is not working with date range . in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-is-not-working-with-date-range/m-p/3605161#M868325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Building a date range using ranges is risky. You might miss a value in HIGH field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you to use select-option no-display and build the date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SKJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Mar 2008 21:32:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-27T21:32:08Z</dc:date>
    <item>
      <title>Select is not working with date range .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-is-not-working-with-date-range/m-p/3605158#M868322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my program doing a simple select from cdhdr table based on date range i have created but it fails .&lt;/P&gt;&lt;P&gt;here is the code I am using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE *   FROM tvarv  INTO  wa_tvarv WHERE name EQ 'Z_SERVICE_CHANGE_DATE' .&lt;/P&gt;&lt;P&gt;move wa_tvarv-low to v_date .&lt;/P&gt;&lt;P&gt;move wa_tvarv-high to v_time .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;fill the date range&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*write v_date to ra_date-low  .&lt;/P&gt;&lt;P&gt;    move  v_date TO ra_date-low  .&lt;/P&gt;&lt;P&gt;*write sy-datum to v_dateh .&lt;/P&gt;&lt;P&gt;    ra_date-high = sy-datum  .&lt;/P&gt;&lt;P&gt;    ra_date-sign = 'I' .&lt;/P&gt;&lt;P&gt;    ra_date-option = 'BT' .&lt;/P&gt;&lt;P&gt;    APPEND ra_date .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;fill the time range&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    move v_time  TO  ra_time-low .&lt;/P&gt;&lt;P&gt;*write sy-uzeit to v_timeh .&lt;/P&gt;&lt;P&gt;    ra_time-high = sy-uzeit  .&lt;/P&gt;&lt;P&gt;    ra_time-sign = 'I' .&lt;/P&gt;&lt;P&gt;    ra_time-option = 'BT' .&lt;/P&gt;&lt;P&gt;    APPEND ra_time .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Get all the records from cdhdr table for contract i.e VERKBELEG .&lt;/P&gt;&lt;P&gt;    *&lt;STRONG&gt;SELECT objectclas objectid FROM cdhdr INTO CORRESPONDING FIELDS OF TABLE it_cdhdr&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;                               *&lt;STRONG&gt;WHERE objectclas = 'VERKBELEG'&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;                               *&lt;STRONG&gt;AND  udate IN ra_date&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;                               *&lt;STRONG&gt;and  UTIME in ra_time .&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;above select is creating Problem .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help will be Appreciated .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 20:36:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-is-not-working-with-date-range/m-p/3605158#M868322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T20:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select is not working with date range .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-is-not-working-with-date-range/m-p/3605159#M868323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wonder if you have a conflict between your date and time.  If you want all records between 3PM and 3AM the next day, that will cause a conflict.  That's because the first date should be "before" the second date, wthin a given day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To troubleshoot, why don't you try taking the time part out of the SQL?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 20:43:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-is-not-working-with-date-range/m-p/3605159#M868323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T20:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select is not working with date range .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-is-not-working-with-date-range/m-p/3605160#M868324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;     Try only using the Date selection criteria.... It's not working because you are trying both data as well as time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greetson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 21:10:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-is-not-working-with-date-range/m-p/3605160#M868324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T21:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Select is not working with date range .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-is-not-working-with-date-range/m-p/3605161#M868325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Building a date range using ranges is risky. You might miss a value in HIGH field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you to use select-option no-display and build the date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SKJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 21:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-is-not-working-with-date-range/m-p/3605161#M868325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T21:32:08Z</dc:date>
    </item>
  </channel>
</rss>

