<?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 Creating datetime in XML format from ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-datetime-in-xml-format-from-abap/m-p/3357353#M805541</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;     I have a ABAP program that creates an XML file and everything is fine. I just need one date field in XML to conform to W3CC standard (EX: 2006-12-01T10:53:05.2170000). I need datetime in the format "2006-12-01T10:53:05.2170000". How do I acheive this in ABAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Mithun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jan 2008 18:53:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-30T18:53:29Z</dc:date>
    <item>
      <title>Creating datetime in XML format from ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-datetime-in-xml-format-from-abap/m-p/3357353#M805541</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;     I have a ABAP program that creates an XML file and everything is fine. I just need one date field in XML to conform to W3CC standard (EX: 2006-12-01T10:53:05.2170000). I need datetime in the format "2006-12-01T10:53:05.2170000". How do I acheive this in ABAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Mithun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 18:53:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-datetime-in-xml-format-from-abap/m-p/3357353#M805541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T18:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating datetime in XML format from ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-datetime-in-xml-format-from-abap/m-p/3357354#M805542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That seems to be easy:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
  lv_timestamp  TYPE timestampl,
  lv_xml_date   TYPE string.

GET TIME STAMP FIELD lv_timestamp.

CONCATENATE lv_timestamp+0(4)
            lv_timestamp+4(2)
            lv_timestamp+6(2)
  INTO lv_xml_date
  SEPARATED BY '-'.

CONCATENATE lv_xml_date
            'T'
  INTO lv_xml_date.

CONCATENATE lv_timestamp+8(2)
            lv_timestamp+10(2)
            lv_timestamp+12(2)
  INTO lv_xml_date+12(8)
  SEPARATED by ':'.

CONCATENATE lv_xml_date
            lv_timestamp+5(7)
  INTO lv_timestamp
  SEPARATED BY '.'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points, if reply is applicable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mike Schernbeck on Jan 30, 2008 9:24 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 20:23:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-datetime-in-xml-format-from-abap/m-p/3357354#M805542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T20:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating datetime in XML format from ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-datetime-in-xml-format-from-abap/m-p/3357355#M805543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mike. I rewarded full points. One more question. Is there a FM to get Greenwich standard time applicable to your time zone?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Mithun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 20:53:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-datetime-in-xml-format-from-abap/m-p/3357355#M805543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T20:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating datetime in XML format from ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-datetime-in-xml-format-from-abap/m-p/3357356#M805544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps, one of these fits your need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MA_CNV_TIMESTAMP_IN_GMTTSTAMP&lt;/P&gt;&lt;P&gt;MA_CNV_TSTAMP_IN_GMTDATETIME&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 07:18:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-datetime-in-xml-format-from-abap/m-p/3357356#M805544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T07:18:29Z</dc:date>
    </item>
  </channel>
</rss>

