<?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 DATS to EDM.DateTime Conversion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dats-to-edm-datetime-conversion/m-p/672657#M29652</link>
    <description>&lt;P&gt;Hello community, &lt;/P&gt;
  &lt;P&gt;I'm trying to set up an oData-Service and have troubles with using date fields from a table.&lt;/P&gt;
  &lt;P&gt;1. I have imported the DDIC Structure with Sdate (Datatype DATS)&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/249372-ddic.png" /&gt;&lt;/P&gt;
  &lt;P&gt;2. Field Sdate is mapped to EDM.DateTime&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/249373-datetime.png" /&gt;&lt;/P&gt;
  &lt;P&gt;3. Error in Gateway Client --- Format invalid when calling GET_ENTITY_SET&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/249374-error.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Obviously the date is not formatted correctly.&lt;/P&gt;
  &lt;P&gt;But why? &lt;/P&gt;
  &lt;P&gt;Best regards and many thanks in advance&lt;BR /&gt;Johannes Sonner&lt;/P&gt;</description>
    <pubDate>Mon, 10 Dec 2018 09:49:20 GMT</pubDate>
    <dc:creator>former_member460045</dc:creator>
    <dc:date>2018-12-10T09:49:20Z</dc:date>
    <item>
      <title>DATS to EDM.DateTime Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dats-to-edm-datetime-conversion/m-p/672657#M29652</link>
      <description>&lt;P&gt;Hello community, &lt;/P&gt;
  &lt;P&gt;I'm trying to set up an oData-Service and have troubles with using date fields from a table.&lt;/P&gt;
  &lt;P&gt;1. I have imported the DDIC Structure with Sdate (Datatype DATS)&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/249372-ddic.png" /&gt;&lt;/P&gt;
  &lt;P&gt;2. Field Sdate is mapped to EDM.DateTime&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/249373-datetime.png" /&gt;&lt;/P&gt;
  &lt;P&gt;3. Error in Gateway Client --- Format invalid when calling GET_ENTITY_SET&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/249374-error.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Obviously the date is not formatted correctly.&lt;/P&gt;
  &lt;P&gt;But why? &lt;/P&gt;
  &lt;P&gt;Best regards and many thanks in advance&lt;BR /&gt;Johannes Sonner&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 09:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dats-to-edm-datetime-conversion/m-p/672657#M29652</guid>
      <dc:creator>former_member460045</dc:creator>
      <dc:date>2018-12-10T09:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: DATS to EDM.DateTime Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dats-to-edm-datetime-conversion/m-p/672658#M29653</link>
      <description>&lt;P&gt;Did you search and read a discussion such as &lt;A href="https://archive.sap.com/discussions/thread/3441583"&gt;Rules for OData datetime properties&lt;/A&gt;, if yes what is the content of the field (use Request/Response Daten)&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 10:29:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dats-to-edm-datetime-conversion/m-p/672658#M29653</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2018-12-10T10:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: DATS to EDM.DateTime Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dats-to-edm-datetime-conversion/m-p/672659#M29654</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;yes i checked it. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Rule 3
The nullable attribute can only be correctly evaluated if the backend date contains '00000000' as a value. ABAP date values containing spaces (this is allowed unfortunately) will not be treated as null, but also not be able to convert to an edm.datetime - you will get a runtime error from the server.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regarding Rule 3: I dont know how I could check the request/response data because it does'nt even hit the set breaktpoint in the GET_ENTITY_SET function. In the table itself (with se16) I cannot see any spaces. &lt;/P&gt;&lt;P&gt;And Rule 5 is exactly what I did. The DATS Element of the table is directly used for the entity defintion.&lt;/P&gt;&lt;P&gt;I'm very confused because DATS is YYYYMMDD but it is shown in the error log as DD.MM.YY&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Johannes&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 12:28:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dats-to-edm-datetime-conversion/m-p/672659#M29654</guid>
      <dc:creator>former_member460045</dc:creator>
      <dc:date>2018-12-10T12:28:24Z</dc:date>
    </item>
  </channel>
</rss>

