<?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 Date Conversion - Unidentified Format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-unidentified-format/m-p/7438221#M1551277</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;I am getting a text file with column contains the date contains the following values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;070321&lt;/P&gt;&lt;P&gt;070331&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to how to convert this into correct date values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i open in this excel and format the column with date then i getting the value as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7/11/2092&lt;/P&gt;&lt;P&gt;7/21/2092&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any info?&lt;/P&gt;&lt;P&gt;a®s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: date conversion questions = FAQ, please search for available information before posting.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Nov 15, 2010 12:55 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Nov 2010 11:15:03 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2010-11-15T11:15:03Z</dc:date>
    <item>
      <title>Date Conversion - Unidentified Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-unidentified-format/m-p/7438221#M1551277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;I am getting a text file with column contains the date contains the following values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;070321&lt;/P&gt;&lt;P&gt;070331&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to how to convert this into correct date values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i open in this excel and format the column with date then i getting the value as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7/11/2092&lt;/P&gt;&lt;P&gt;7/21/2092&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any info?&lt;/P&gt;&lt;P&gt;a®s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: date conversion questions = FAQ, please search for available information before posting.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Nov 15, 2010 12:55 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Nov 2010 11:15:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-unidentified-format/m-p/7438221#M1551277</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2010-11-15T11:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion - Unidentified Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-unidentified-format/m-p/7438222#M1551278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not a kind of question that you ask .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways,&lt;/P&gt;&lt;P&gt;I think you have to use the conversion mask &lt;STRONG&gt;INVDT&lt;/STRONG&gt; ( conversion exit )&lt;/P&gt;&lt;P&gt;For example table tcurs &amp;amp; field gdatu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Nov 2010 11:28:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-unidentified-format/m-p/7438222#M1551278</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-11-15T11:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion - Unidentified Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-unidentified-format/m-p/7438223#M1551279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The question is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;070321 = 7/11/2092?&lt;/P&gt;&lt;P&gt;070331 = 7/21/2092?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is it:&lt;/P&gt;&lt;P&gt;070321 = 21 march 2007? or 07 march 2021?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Nov 2010 11:37:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-unidentified-format/m-p/7438223#M1551279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-15T11:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion - Unidentified Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-unidentified-format/m-p/7438224#M1551280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you please tell me from where are you getting this file. &lt;/P&gt;&lt;P&gt;is this file is given by the FC? If so better you should ask the FC to maintain this in a proper way .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Sumodh.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Nov 2010 11:49:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-unidentified-format/m-p/7438224#M1551280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-15T11:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion - Unidentified Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-unidentified-format/m-p/7438225#M1551281</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;Use below FM to solve your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT_DATE_TO_INTERNAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  zsplit_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:udate1(10) type c.&lt;/P&gt;&lt;P&gt;data:v_date(10) type c.&lt;/P&gt;&lt;P&gt;parameters:udate type char10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;udate1 = udate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform convert_date using udate1&lt;/P&gt;&lt;P&gt;                     changing v_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ v_date.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  CONVERT_DATE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_UDATE1  text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     &amp;lt;--P_V_DATE  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form convert_date  using    p_udate1&lt;/P&gt;&lt;P&gt;                   changing p_v_date.&lt;/P&gt;&lt;P&gt;  call function 'CONVERT_DATE_TO_INTERNAL'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      date_external            = udate&lt;/P&gt;&lt;P&gt;      accept_initial_date      = space&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      date_internal            = v_date&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      date_external_is_invalid = 1&lt;/P&gt;&lt;P&gt;      others                   = 2.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate v_date&lt;EM&gt;4(2) v_date&lt;/EM&gt;6(2) v_date+0(4) into v_date separated by '/'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " CONVERT_DATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Nov 2010 11:52:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-unidentified-format/m-p/7438225#M1551281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-15T11:52:12Z</dc:date>
    </item>
  </channel>
</rss>

