<?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 Regardging date conversion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regardging-date-conversion/m-p/1452765#M214253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have date coming up of form "04/25/06" which I want to convert into sy-datum (20060425) format. Can you guys help me how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jun 2006 19:31:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-15T19:31:11Z</dc:date>
    <item>
      <title>Regardging date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regardging-date-conversion/m-p/1452765#M214253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have date coming up of form "04/25/06" which I want to convert into sy-datum (20060425) format. Can you guys help me how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 19:31:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regardging-date-conversion/m-p/1452765#M214253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T19:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regardging date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regardging-date-conversion/m-p/1452766#M214254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the CONVERT_DATE_TO_INTERNAL function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.


data: date(10) type c value '06/15/06'.
data: the_date type sy-datum.

call function 'CONVERT_DATE_TO_INTERNAL'
     exporting
          date_external = date
     importing
          date_internal = the_date.


write:/ the_date.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 19:32:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regardging-date-conversion/m-p/1452766#M214254</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-06-15T19:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Regardging date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regardging-date-conversion/m-p/1452767#M214255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Nuren,&lt;/P&gt;&lt;P&gt;  Use FM &amp;lt;b&amp;gt;CONVERT_DATE_TO_INTERNAL&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION &amp;lt;b&amp;gt;'CONVERT_DATE_TO_INTERNAL'&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;    EXPORTING &lt;/P&gt;&lt;P&gt;      date_external            = input &lt;/P&gt;&lt;P&gt;    IMPORTING &lt;/P&gt;&lt;P&gt;      date_internal            = output &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;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;    MESSAGE e888(fk) RAISING wrong_input. &lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 19:34:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regardging-date-conversion/m-p/1452767#M214255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T19:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Regardging date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regardging-date-conversion/m-p/1452768#M214256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: v_year(4) TYPE n.

MOVE my_input_date+6(2) TO v_year.
IF v_year &amp;gt; sy-datum+2(2). &amp;lt;-- assuming the input date will not be in future
  v_year = v_year + 1900.
ELSE.
  v_year = v_year + 2000.
ENDIF.
CONCATENATE v_year
            my_input_date+0(2)
            my_input_date+3(2)
       INTO my_target_date.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 19:38:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regardging-date-conversion/m-p/1452768#M214256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T19:38:14Z</dc:date>
    </item>
  </channel>
</rss>

