<?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: Convert Text values to Timestamp in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/convert-text-values-to-timestamp/qaa-p/668480#M174684</link>
    <description>&lt;P&gt;Hello David,&lt;/P&gt;
  &lt;P&gt;I tried replicating your scenario:&lt;/P&gt;
  &lt;P&gt;Source:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/211731-i.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Source in BODS:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/211732-m.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Mapping:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/211733-i.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Logic:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/211734-m.png" /&gt;&lt;/P&gt;
  &lt;P&gt;I used cast function to avoid conversion warnings, you can try without cast if source records are less. &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;(Cast function impacts performance to some extent)&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt;After job execution:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/211735-i.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Output in Target database(Oracle):&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/211736-m.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/211737-m.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I've attached the .txt file used for testing.&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://answers.sap.com/storage/attachments/211738-textvalues-timestamp.txt"&gt;textvalues-timestamp.txt&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Hope it helps! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;Reward if useful.&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Rajan &lt;/P&gt;</description>
    <pubDate>Sat, 08 Sep 2018 06:29:27 GMT</pubDate>
    <dc:creator>rajan_burad</dc:creator>
    <dc:date>2018-09-08T06:29:27Z</dc:date>
    <item>
      <title>Convert Text values to Timestamp</title>
      <link>https://community.sap.com/t5/technology-q-a/convert-text-values-to-timestamp/qaq-p/668478</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I want to convert some timestamp values which are coming from a Text file source into "Timestamp" datatype, before loading them to the target table (Oracle). The values are in the format as given in below sample, and are in text format.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;2018-06-06T10:24:15.9803868+08:00 &lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;Can you please advise&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;BR /&gt;David&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 17:46:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/convert-text-values-to-timestamp/qaq-p/668478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-09-05T17:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Text values to Timestamp</title>
      <link>https://community.sap.com/t5/technology-q-a/convert-text-values-to-timestamp/qaa-p/668479#M174683</link>
      <description>&lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;david.krn&lt;/SPAN&gt;&lt;/P&gt;
  &lt;P&gt;Try below option.&lt;/P&gt;
  &lt;P&gt;to_date('2018-06-06T10:24:15.9803868+08:00','YYYY-MM-DDTHH24:MI:SS.FF')&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 21:22:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/convert-text-values-to-timestamp/qaa-p/668479#M174683</guid>
      <dc:creator>former_member27665</dc:creator>
      <dc:date>2018-09-07T21:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Text values to Timestamp</title>
      <link>https://community.sap.com/t5/technology-q-a/convert-text-values-to-timestamp/qaa-p/668480#M174684</link>
      <description>&lt;P&gt;Hello David,&lt;/P&gt;
  &lt;P&gt;I tried replicating your scenario:&lt;/P&gt;
  &lt;P&gt;Source:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/211731-i.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Source in BODS:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/211732-m.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Mapping:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/211733-i.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Logic:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/211734-m.png" /&gt;&lt;/P&gt;
  &lt;P&gt;I used cast function to avoid conversion warnings, you can try without cast if source records are less. &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;(Cast function impacts performance to some extent)&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt;After job execution:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/211735-i.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Output in Target database(Oracle):&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/211736-m.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/211737-m.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I've attached the .txt file used for testing.&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://answers.sap.com/storage/attachments/211738-textvalues-timestamp.txt"&gt;textvalues-timestamp.txt&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Hope it helps! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;Reward if useful.&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Rajan &lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2018 06:29:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/convert-text-values-to-timestamp/qaa-p/668480#M174684</guid>
      <dc:creator>rajan_burad</dc:creator>
      <dc:date>2018-09-08T06:29:27Z</dc:date>
    </item>
  </channel>
</rss>

