<?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>Question Re: data services query does not pull data using required date. in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/data-services-query-does-not-pull-data-using-required-date/qaa-p/12229048#M4577801</link>
    <description>&lt;P&gt;Thank you so much.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Nov 2020 06:13:29 GMT</pubDate>
    <dc:creator>former_member505874</dc:creator>
    <dc:date>2020-11-11T06:13:29Z</dc:date>
    <item>
      <title>data services query does not pull data using required date.</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-query-does-not-pull-data-using-required-date/qaq-p/12229046</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;
  &lt;P&gt;I want to extract data from CKIS table on sap but when I use the "WHERE clause" in data services to extract data using a date which 2020.10.31 I get all data for the whole 2020.Please advice on were I am going wrong .Screen prints below.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1860637-1.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1860638-2.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 05:35:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-query-does-not-pull-data-using-required-date/qaq-p/12229046</guid>
      <dc:creator>former_member505874</dc:creator>
      <dc:date>2020-11-11T05:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: data services query does not pull data using required date.</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-query-does-not-pull-data-using-required-date/qaa-p/12229047#M4577800</link>
      <description>&lt;P&gt;In short: Watchout for implicit data type conversion warnings!&lt;/P&gt;&lt;P&gt;Detail:&lt;/P&gt;&lt;P&gt;You compare the KADKY field of data type date with a string of value '2020-10-31'. The only option this can be done is by converting KADKY to a string (using the BODS internal date format) and then the value is e.g. '2020.01.01'. The substring '2020.' is always larger than '2020-' no matter what other chars follow.&lt;/P&gt;&lt;P&gt;You want&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;KADKY &amp;gt;= to_date('2020-10-31', 'YYYY-MM-DD')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or better to stick to the default date format&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;KADKY &amp;gt;= to_date('2020.10.31', 'YYYY.MM.DD')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now it is clear that the left and right side is a date and a date comparison will happen instead of a string comparison. Also important for performance.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 05:49:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-query-does-not-pull-data-using-required-date/qaa-p/12229047#M4577800</guid>
      <dc:creator>werner_daehn</dc:creator>
      <dc:date>2020-11-11T05:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: data services query does not pull data using required date.</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-query-does-not-pull-data-using-required-date/qaa-p/12229048#M4577801</link>
      <description>&lt;P&gt;Thank you so much.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 06:13:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-query-does-not-pull-data-using-required-date/qaa-p/12229048#M4577801</guid>
      <dc:creator>former_member505874</dc:creator>
      <dc:date>2020-11-11T06:13:29Z</dc:date>
    </item>
  </channel>
</rss>

