<?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: date conversion logic using function modules in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-logic-using-function-modules/m-p/7984540#M1605059</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;you have the date DD , MONTH name and YYYY from the 2 function modules.&lt;/P&gt;&lt;P&gt;Now just concatenate the desired text into a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO if you get ddmmYYYY use offset to read 1st two characters as day and last 4 as year. And tehn concatenate with month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2011 10:04:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-08T10:04:14Z</dc:date>
    <item>
      <title>date conversion logic using function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-logic-using-function-modules/m-p/7984539#M1605058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been researching in the forum how data conversion is done in ABAP and I found out about the function modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_LDATE_OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MONTH_NAMES_GET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that the first function module can convert the date format 06/08/2011 to MONTH DD,YYYY and the second function can easily translate the month names once language SPRAS has been specified. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is I am not sure how I can convert my VBRK-FKDAT with format MM/DD/YYYY into the format DD MONTH YYYY format with the MONTH still dependent on the specified language. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to look at how to MONTH_NAMES_GET FM works and made this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: d_return like sy-subrc,
      itab_T247 like T247 occurs 0 with header line,
      gs_spras type spras.

gs_spras = 'RU'.

CALL FUNCTION 'MONTH_NAMES_GET'
 EXPORTING
   LANGUAGE                    = gs_spras
 IMPORTING
   RETURN_CODE                 = d_return
  TABLES
    MONTH_NAMES                 = itab_T247
 EXCEPTIONS
   MONTH_NAMES_NOT_FOUND       = 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.

Loop at itab_t247.

Write:/ itab_t247-LTX.

endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code just lists the months in Russian (which is the language I need). I am just new to ABAP so I am an avid reader of the forum. I hope someone can help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;dgrachee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 09:57:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-logic-using-function-modules/m-p/7984539#M1605058</guid>
      <dc:creator>former_member1005579</dc:creator>
      <dc:date>2011-06-08T09:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: date conversion logic using function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-logic-using-function-modules/m-p/7984540#M1605059</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;you have the date DD , MONTH name and YYYY from the 2 function modules.&lt;/P&gt;&lt;P&gt;Now just concatenate the desired text into a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO if you get ddmmYYYY use offset to read 1st two characters as day and last 4 as year. And tehn concatenate with month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 10:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-logic-using-function-modules/m-p/7984540#M1605059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-08T10:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: date conversion logic using function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-logic-using-function-modules/m-p/7984541#M1605060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dgrachee ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change it as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
....
gs_spras = sy-langu. "'RU'.
CALL FUNCTION 'MONTH_NAMES_GET'
....
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 13:00:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-logic-using-function-modules/m-p/7984541#M1605060</guid>
      <dc:creator>former_member212713</dc:creator>
      <dc:date>2011-06-08T13:00:35Z</dc:date>
    </item>
  </channel>
</rss>

