<?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: convert XML string into an abap format date and time in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xml-string-into-an-abap-format-date-and-time/m-p/5936046#M1333795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if [this help you..|http://www.sapfans.com/forums/viewtopic.php?f=13&amp;amp;t=329376]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2009 06:31:52 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2009-07-13T06:31:52Z</dc:date>
    <item>
      <title>convert XML string into an abap format date and time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xml-string-into-an-abap-format-date-and-time/m-p/5936041#M1333790</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;Does anyone know of a method or a function module in ABAP which converts XML string into an abap format date and time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a part of the xml that I want to convert.&lt;/P&gt;&lt;P&gt;&amp;lt;ns2:EventDateTime&amp;gt;2009-07-02T10:13:45+10:00&amp;lt;/ns2:EventDateTime&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ns2:EventMessageTransmissionDateTime&amp;gt;2009-07-02T10:13:45.987+10:00&amp;lt;/ns2:EventMessageTransmissionDateTime&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently EventDateTime and EventMessageTransmissionDateTime are type XSDDATETIME_Z and these are converted to proper dates and times. We will be changing these fields to a &lt;STRONG&gt;STRING&lt;/STRONG&gt; instead of XSDDATETIME_Z. The reason for this is to make the field more versatile. The customer would be receiving dates with Zulu (2009-09-23T12:00:00Z), with offsets (2009-09-23T12:00:00+10:00/-10:00) and just local timestamp (2009-09-23T12:00:00). With this, we need to make the date fields as string &lt;/P&gt;&lt;P&gt;to be able to accept the various date formats (esp. the local timestamp).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am looking for a standard function module or method that will convert the xml string to a proper date and time abap format.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would appreciate anyone's help!&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: eunice ocson on Jul 13, 2009 1:49 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: eunice ocson on Jul 13, 2009 1:50 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: eunice ocson on Jul 13, 2009 1:51 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: eunice ocson on Jul 13, 2009 1:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jul 2009 23:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xml-string-into-an-abap-format-date-and-time/m-p/5936041#M1333790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-12T23:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: convert XML string into an abap format date and time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xml-string-into-an-abap-format-date-and-time/m-p/5936042#M1333791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ocson,&lt;/P&gt;&lt;P&gt;Check &lt;STRONG&gt;TEXT_CONVERT_XML_TO_SAP&lt;/STRONG&gt; function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Venkat.O&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 02:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xml-string-into-an-abap-format-date-and-time/m-p/5936042#M1333791</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-07-13T02:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: convert XML string into an abap format date and time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xml-string-into-an-abap-format-date-and-time/m-p/5936043#M1333792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eunice &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the FM 'SMUM_XML_PARSE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more info &lt;/P&gt;&lt;P&gt;[Convert XML string to ABAP|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2757484"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 04:47:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xml-string-into-an-abap-format-date-and-time/m-p/5936043#M1333792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-13T04:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: convert XML string into an abap format date and time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xml-string-into-an-abap-format-date-and-time/m-p/5936044#M1333793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately that FM does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eunice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 04:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xml-string-into-an-abap-format-date-and-time/m-p/5936044#M1333793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-13T04:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: convert XML string into an abap format date and time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xml-string-into-an-abap-format-date-and-time/m-p/5936045#M1333794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is I already have it as a string. It could either be like this &lt;STRONG&gt;2009-01-13T15:33:20&lt;/STRONG&gt; or this &lt;STRONG&gt;2009-01-13T15:33:20Z&lt;/STRONG&gt;. What I'm looking for is a method/FM that could translate that automatically into a date and time. If there's an existing smarts in SAP that I could use to convert that to a proper abap format timestamp. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eunice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 05:31:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xml-string-into-an-abap-format-date-and-time/m-p/5936045#M1333794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-13T05:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: convert XML string into an abap format date and time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xml-string-into-an-abap-format-date-and-time/m-p/5936046#M1333795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if [this help you..|http://www.sapfans.com/forums/viewtopic.php?f=13&amp;amp;t=329376]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 06:31:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xml-string-into-an-abap-format-date-and-time/m-p/5936046#M1333795</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-07-13T06:31:52Z</dc:date>
    </item>
  </channel>
</rss>

