<?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 fetching data based on time stamp!!! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-based-on-time-stamp/m-p/8101399#M1616427</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;as this is a ztable, is it possible for you to merge the date and time field into one timestamp field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other possibility would be to just select using the date and then delete some entries using the starttime and date and some using the endtime and date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jul 2011 06:12:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-07-25T06:12:49Z</dc:date>
    <item>
      <title>Problem in fetching data based on time stamp!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-based-on-time-stamp/m-p/8101398#M1616426</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 Ztable which stores the UID's created . The table has the fields date and time which stores the date on which the uid is created in ztable and time on which the UID is created in ztable . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my requirement is , i have to create a new program to send all the UID's created in the table into external system . this program must be run as batch job for every 15 minutes and pick the UID s created and send to external system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the select statement i have added the where condition for time and date as ranges apart from other where conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the batch job is successful , i m capturing the time at which the batch job is sucessful into another table and updating the date and time in that table . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in my program , in select stmt to fetch UID's . I'm passing the last time stamp  at which the batch job is succeful into lower range for time r_time-low and date into r_date-low. and im passing the sy-uzeit value into r_time-high and sy-datum into r_Date-high. &lt;/P&gt;&lt;P&gt;Now suppose if the r_time-low= 23:45:45 and r_time-high = 01:01:01 , the select statement to fetch the UID is faiilng . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'e suppose if there are any UID's created between 20/7/2011 at 23:45:45 and 21/07/2011 01:45:45 , im not able to fetch these records as lower value of time range(23:45:45) is greater than higher value of time range(01:45:45)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody give me any clue on this issue..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&amp;amp;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G.Pavan Kumar .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 06:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-based-on-time-stamp/m-p/8101398#M1616426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-25T06:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in fetching data based on time stamp!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-based-on-time-stamp/m-p/8101399#M1616427</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;as this is a ztable, is it possible for you to merge the date and time field into one timestamp field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other possibility would be to just select using the date and then delete some entries using the starttime and date and some using the endtime and date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 06:12:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-based-on-time-stamp/m-p/8101399#M1616427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-25T06:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in fetching data based on time stamp!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-based-on-time-stamp/m-p/8101400#M1616428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  oliver &lt;/P&gt;&lt;P&gt;thanks for the reply .&lt;/P&gt;&lt;P&gt;alternative -1&lt;/P&gt;&lt;P&gt;I will check the possibility of merging time and date into one time stamp field .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i merge the date and time into one timestamp field , is it possible to get the records created for example between 20/7/2011 at 23:45:45 and 21/7/2011 at 01:01:01 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alternative-2&lt;/P&gt;&lt;P&gt;(2)Other possibility would be to just select using the date and then delete some entries using the starttime and date and some using the endtime and date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even with the alternative-2 i think we get the same problem .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 06:21:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-based-on-time-stamp/m-p/8101400#M1616428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-25T06:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in fetching data based on time stamp!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-based-on-time-stamp/m-p/8101401#M1616429</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;1.&lt;/P&gt;&lt;P&gt;Your select would be &amp;gt; 20110720234545 AND &amp;lt;= 20110721010101. So this would be fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;Should work. With the above example you would select &amp;gt;= 20110720 AND &amp;lt;= 20110721. Then delete where date = 20110720 AND time &amp;lt; 234545. Then delete where date = 20110721 AND time &amp;gt; 010101.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 06:29:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-based-on-time-stamp/m-p/8101401#M1616429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-25T06:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in fetching data based on time stamp!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-based-on-time-stamp/m-p/8101402#M1616430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   When you read the data from the table and sent out, set a flag as processed.&lt;/P&gt;&lt;P&gt;   So new data would be without the flag set. Whenever you are sending the data out, update the flag as processed for the sent out data. Hope this helps.&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 06:30:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-based-on-time-stamp/m-p/8101402#M1616430</guid>
      <dc:creator>former_member219399</dc:creator>
      <dc:date>2011-07-25T06:30:41Z</dc:date>
    </item>
  </channel>
</rss>

