<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/1658010#M291953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; the FM have the same function to convert the month&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_LDATE_OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;wannaqian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Nov 2006 10:15:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-27T10:15:15Z</dc:date>
    <item>
      <title>date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/1658006#M291949</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;I have requirement In which I have to print the date in  YYYY.MMMM.DD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; EX:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date: 27.11.2006&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be printed as:  2006 November 27&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one please tell me how do I convert it and print the format I required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 09:59:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/1658006#M291949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T09:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/1658007#M291950</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;chk this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;200061127 -&amp;gt;  2006.NOVEMBER.27&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: DATE_CHAR(20).
DATA: DATE TYPE SY-DATUM.
DATA: MONTH_NAME LIKE T247-LTX.
DATE = SY-DATUM.

SELECT SINGLE LTX FROM T247
INTO MONTH_NAME
WHERE SPRAS = SY-LANGU
AND MNR = SY-DATUM+4(2).

CONCATENATE SY-DATUM(4) MONTH_NAME SY-DATUM+6(2)
INTO DATE_CHAR SEPARATED BY '.'.
WRITE: / DATE_CHAR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;now u will get exact solution&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;if solved pls mark points&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 10:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/1658007#M291950</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-27T10:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/1658008#M291951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change the date format in user data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 10:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/1658008#M291951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T10:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/1658009#M291952</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 the Function module CONVERSION_EXIT_SDATE_OUTPUT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input the date as - 20061020&lt;/P&gt;&lt;P&gt;The output will be - 20.oct.2006&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 10:11:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/1658009#M291952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T10:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/1658010#M291953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; the FM have the same function to convert the month&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_LDATE_OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;wannaqian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 10:15:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/1658010#M291953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T10:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/1658011#M291954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;follow this proces&lt;/P&gt;&lt;P&gt;1- concatenate all the value and store in different variables.&lt;/P&gt;&lt;P&gt;2- take a internal table where you store all the eleven months &lt;/P&gt;&lt;P&gt;3-concatenate year and month from the internal table and the appropriate date and display them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 10:17:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/1658011#M291954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T10:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/1658012#M291955</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;Check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : wf_month type char10.&lt;/P&gt;&lt;P&gt;data : wf_output type char20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;    CALL FUNCTION 'ISP_GET_MONTH_NAME'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DATE               = '00000000'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        LANGUAGE           =  SY-LANGU&lt;/P&gt;&lt;P&gt;       MONTH_NUMBER       = sy-datum+4(2)&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LANGU_BACK         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       LONGTEXT           = WF_MONTH&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SHORTTEXT          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       CALENDAR_ID        = 1&lt;/P&gt;&lt;P&gt;       DATE_ERROR         = 2&lt;/P&gt;&lt;P&gt;       NOT_FOUND          = 3&lt;/P&gt;&lt;P&gt;       WRONG_INPUT        = 4&lt;/P&gt;&lt;P&gt;       OTHERS             = 5&lt;/P&gt;&lt;P&gt;              .&lt;/P&gt;&lt;P&gt;concatenate sy-datum&lt;EM&gt;0(4) wf_month sy-datum&lt;/EM&gt;6(2) into wf_output seperated by space.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wf_output will have the output you need,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Ajith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 10:28:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/1658012#M291955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T10:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/1658013#M291956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Copy and paste the below codes to an executable program and run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Input Date: 27.11.2006&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Output Date: 2006 November 27&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: GC_DATE_ORIGINAL(10) TYPE C VALUE '27.11.2006'.&lt;/P&gt;&lt;P&gt;DATA: GC_DATE_RESULT(20).&lt;/P&gt;&lt;P&gt;DATA: GTBL_MONTH_NAMES TYPE TABLE OF T247 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: GC_RETURN_CODE TYPE SY-SUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MONTH_NAMES_GET'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    LANGUAGE              = SY-LANGU&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    RETURN_CODE           = GC_RETURN_CODE&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    MONTH_NAMES           = GTBL_MONTH_NAMES&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    MONTH_NAMES_NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;    OTHERS                = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF GC_RETURN_CODE &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;ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;no error&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  READ TABLE GTBL_MONTH_NAMES WITH KEY MNR = GC_DATE_ORIGINAL+3(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    CONCATENATE GC_DATE_ORIGINAL&lt;EM&gt;6(4) GTBL_MONTH_NAMES-LTX GC_DATE_ORIGINAL&lt;/EM&gt;0(2)&lt;/P&gt;&lt;P&gt;      INTO GC_DATE_RESULT&lt;/P&gt;&lt;P&gt;      SEPARATED BY SPACE.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  CLEAR GTBL_MONTH_NAMES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / GC_DATE_RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above codes get all the months name in a internal table.&lt;/P&gt;&lt;P&gt;If you are converting lots of date, use FM 'MONTH_NAMES_GET' above. Run only the FM once and reuse the content for all your date convertion. Thus, increase your program performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls rewards points if solve your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 10:28:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/1658013#M291956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T10:28:59Z</dc:date>
    </item>
  </channel>
</rss>

