<?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_DATE_TO_INTERN_FORMAT' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-date-to-intern-format/m-p/2793164#M651761</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;enter your date in the format like this:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;enter the date: 12122007&lt;/P&gt;&lt;P&gt;output will be : 12/12/2007&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;copy and paste the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have changed the last line..read it carefully..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:P TYPE D.&lt;/P&gt;&lt;P&gt;DATA:DATS LIKE SY-DATUM.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;datum = p&lt;/P&gt;&lt;P&gt;dtype = DATS&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ERROR =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IDATE =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSG =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MSGLN =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;write (10) P USING EDIT MASK '__/__/____'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2007 05:36:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-12T05:36:37Z</dc:date>
    <item>
      <title>'CONVERT_DATE_TO_INTERN_FORMAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-date-to-intern-format/m-p/2793162#M651759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi abapers,&lt;/P&gt;&lt;P&gt;                when i am entering the input value in parameter the value of the output is entirely different.it just split the date without convert the date. help me please.&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:P TYPE D.&lt;/P&gt;&lt;P&gt;DATA:DATS LIKE SY-DATUM.  &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    datum         = p&lt;/P&gt;&lt;P&gt;    dtype         = DATS&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ERROR         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IDATE         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MESSG         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MSGLN         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;write (10) P  USING EDIT MASK '____/__/__'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 05:30:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-date-to-intern-format/m-p/2793162#M651759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T05:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: 'CONVERT_DATE_TO_INTERN_FORMAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-date-to-intern-format/m-p/2793163#M651760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the fm:&lt;/P&gt;&lt;P&gt;CONVERT_DATE_TO_INTERN_FORMAT&lt;/P&gt;&lt;P&gt;SAMPLE USAGE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'CONVERT_DATE_TO_INTERN_FORMAT'&lt;/P&gt;&lt;P&gt;exporting datum = '12/12/2006'&lt;/P&gt;&lt;P&gt;dtype = 'DATS'&lt;/P&gt;&lt;P&gt;importing idate = v_date. "v_date should be of type sy-datum or chracter field of length 8&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 05:36:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-date-to-intern-format/m-p/2793163#M651760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T05:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: 'CONVERT_DATE_TO_INTERN_FORMAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-date-to-intern-format/m-p/2793164#M651761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;enter your date in the format like this:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;enter the date: 12122007&lt;/P&gt;&lt;P&gt;output will be : 12/12/2007&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;copy and paste the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have changed the last line..read it carefully..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:P TYPE D.&lt;/P&gt;&lt;P&gt;DATA:DATS LIKE SY-DATUM.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;datum = p&lt;/P&gt;&lt;P&gt;dtype = DATS&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ERROR =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IDATE =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSG =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MSGLN =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;write (10) P USING EDIT MASK '__/__/____'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 05:36:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-date-to-intern-format/m-p/2793164#M651761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T05:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: 'CONVERT_DATE_TO_INTERN_FORMAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-date-to-intern-format/m-p/2793165#M651762</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;pls give us ur input date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;here is a working sample code: '9/2/2003' to 20030209&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;data : urdate(10) type c,
mydate type d.

*move '9/2/2003' to urdate.
 urdate = '9/2/2003'.

CALL FUNCTION 'RP_FORMATING_DATE'
EXPORTING
DATE_I = urdate
* BIRTH_DATE = 'X'
IMPORTING
DATE_O = mydate
* EXCEPTIONS
* DATE_INVALID = 1
* OTHERS = 2
.
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'
EXPORTING
DATUM = mydate
DTYPE = 'DATS'
IMPORTING
* ERROR =
IDATE = mydate
* MESSG =
* MSGLN =
.
write : mydate.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it was helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 05:37:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-date-to-intern-format/m-p/2793165#M651762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T05:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: 'CONVERT_DATE_TO_INTERN_FORMAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-date-to-intern-format/m-p/2793166#M651763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use function module 'CONVERT_DATE_TO_INTERN_FORMAT'&lt;/P&gt;&lt;P&gt;With datum = &amp;lt;date_value&amp;gt;&lt;/P&gt;&lt;P&gt;dtype = 'DATS'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 05:38:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-date-to-intern-format/m-p/2793166#M651763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T05:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: 'CONVERT_DATE_TO_INTERN_FORMAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-date-to-intern-format/m-p/2793167#M651764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MAnjula,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now paste this code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:P TYPE D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:DATS LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;    &amp;lt;b&amp;gt; date type d.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;  datum = p&lt;/P&gt;&lt;P&gt;  dtype = DATS&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt; IMPORTING&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ERROR =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &amp;lt;b&amp;gt;  IDATE = date&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MESSG =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MSGLN =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;write (10) date using EDIT MASK '____/__/__'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 05:42:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-date-to-intern-format/m-p/2793167#M651764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T05:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: 'CONVERT_DATE_TO_INTERN_FORMAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-date-to-intern-format/m-p/2793168#M651765</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;please look at the changes in bold.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:P TYPE D.&lt;/P&gt;&lt;P&gt;DATA:DATS LIKE SY-DATUM. &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;data : idate type DATUV.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;datum = p&lt;/P&gt;&lt;P&gt;dtype = DATS&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt; IMPORTING&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ERROR =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &amp;lt;b&amp;gt;IDATE = idate&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSG =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MSGLN =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write (10) &amp;lt;b&amp;gt;idate&amp;lt;/b&amp;gt; USING EDIT MASK '____/__/__'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards if useful,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nazeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 05:43:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-date-to-intern-format/m-p/2793168#M651765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T05:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: 'CONVERT_DATE_TO_INTERN_FORMAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-date-to-intern-format/m-p/2793169#M651766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi abapers,&lt;/P&gt;&lt;P&gt;                sorry i thik i didnt explain u properly.for ex.when i am entering the input in parameter as '03/03/2007'.the output is '0303/20/07'.this is a wrong answer.&lt;/P&gt;&lt;P&gt;i want 2007/03/03.help me please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 06:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-date-to-intern-format/m-p/2793169#M651766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T06:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: 'CONVERT_DATE_TO_INTERN_FORMAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-date-to-intern-format/m-p/2793170#M651767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi abapers,&lt;/P&gt;&lt;P&gt;sorry i thik i didnt explain u properly.for ex.when i am entering the input in parameter as '03/03/2007'.the output is '0303/20/07'.this is a wrong answer.&lt;/P&gt;&lt;P&gt;i want 2007/03/03.help me please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 06:13:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-date-to-intern-format/m-p/2793170#M651767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T06:13:40Z</dc:date>
    </item>
  </channel>
</rss>

