<?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: Function module to convert date format (dd.mm.yyyy) to date value or integer format. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-date-format-dd-mm-yyyy-to-date-value-or-integer/m-p/323390#M4972</link>
    <description>&lt;P&gt;A simple move of the date field to an integer will convert a date to an integer. (SAP use a difference in days from 01.01.1901 where some other O/S or software use other reference) &lt;/P&gt;&lt;P&gt;To convert an external format to integer there are many FM (e.g. SE37 look for CONVERSION_EXIT_*DATE*_INPUT) and methods (like those of class cl_abap_datfm, e.g.CONV_DATE_EXT_TO_INT) that use current user configuration or a parameter for expected or plausible date format.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Raymond&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2016 13:12:42 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2016-11-04T13:12:42Z</dc:date>
    <item>
      <title>Function module to convert date format (dd.mm.yyyy) to date value or integer format.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-date-format-dd-mm-yyyy-to-date-value-or-integer/m-p/323387#M4969</link>
      <description>&lt;P&gt;Hi Experts ,&lt;/P&gt;&lt;P&gt;I have a requirement to convert date format (dd.mm.yyyy) to date value or integer format.&lt;/P&gt;&lt;P&gt;Input: 12/12/2014&lt;/P&gt;&lt;P&gt;Output: 40181630&lt;/P&gt;&lt;P&gt;I tried following FM but it is not working properly.&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_INVDT_OUTPUT&lt;/P&gt;&lt;P&gt;Please let me know if there is any other function module which will convert data format to date value.&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2024 21:59:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-date-format-dd-mm-yyyy-to-date-value-or-integer/m-p/323387#M4969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2024-01-21T21:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to convert date format (dd.mm.yyyy) to date value or integer format.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-date-format-dd-mm-yyyy-to-date-value-or-integer/m-p/323388#M4970</link>
      <description>&lt;P&gt;Hello Sivakiran, Maybe you should try FM: CONVERSION_EXIT_INVDT_INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 01:00:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-date-format-dd-mm-yyyy-to-date-value-or-integer/m-p/323388#M4970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-04T01:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to convert date format (dd.mm.yyyy) to date value or integer format.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-date-format-dd-mm-yyyy-to-date-value-or-integer/m-p/323389#M4971</link>
      <description>&lt;P&gt;You may use either the RSDAT conversion routine (&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/3b/c33d41536ff323e10000000a155106/frameset.htm"&gt;SAP Library: Conversion Routine RSDAT&lt;/A&gt;), or use the generic input conversion released function module RS_CONV_EX_2_IN.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 05:56:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-date-format-dd-mm-yyyy-to-date-value-or-integer/m-p/323389#M4971</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-11-04T05:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to convert date format (dd.mm.yyyy) to date value or integer format.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-date-format-dd-mm-yyyy-to-date-value-or-integer/m-p/323390#M4972</link>
      <description>&lt;P&gt;A simple move of the date field to an integer will convert a date to an integer. (SAP use a difference in days from 01.01.1901 where some other O/S or software use other reference) &lt;/P&gt;&lt;P&gt;To convert an external format to integer there are many FM (e.g. SE37 look for CONVERSION_EXIT_*DATE*_INPUT) and methods (like those of class cl_abap_datfm, e.g.CONV_DATE_EXT_TO_INT) that use current user configuration or a parameter for expected or plausible date format.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Raymond&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 13:12:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-date-format-dd-mm-yyyy-to-date-value-or-integer/m-p/323390#M4972</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-11-04T13:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to convert date format (dd.mm.yyyy) to date value or integer format.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-date-format-dd-mm-yyyy-to-date-value-or-integer/m-p/323391#M4973</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;DATA: integer_date TYPE i.

    in_date = '12/12/2014'.


    TRY.
        cl_abap_datfm=&amp;gt;conv_date_ext_to_int(
          EXPORTING
            im_datext                    = in_date  
          IMPORTING
            ex_datint                    = internal_date
        ).

      CATCH cx_abap_datfm_no_date.    "

      CATCH cx_abap_datfm_invalid_date.    "

      CATCH cx_abap_datfm_format_unknown.    "

      CATCH cx_abap_datfm_ambiguous.    "

    ENDTRY.

  integer_date = internal_date.
 &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Nov 2016 16:51:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-date-format-dd-mm-yyyy-to-date-value-or-integer/m-p/323391#M4973</guid>
      <dc:creator>raghug</dc:creator>
      <dc:date>2016-11-04T16:51:26Z</dc:date>
    </item>
  </channel>
</rss>

