<?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 TO TEXT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-to-text/m-p/3671272#M884201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are 2 ways to convet one is hard coding and one is using function module..kindly chekc which one suitea and  &lt;STRONG&gt;reward points if useful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Use FM IDWT_READ_MONTH_TEXT to get the Month name for the given date.

Finally Concatenate date+5(1) 'th day of ' &amp;lt;LTX Value got from FM&amp;gt; space date+0(4) into a variable.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 one..hard coding..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;..


data: wl_day(2) type n,
wl_v(2),
wl_month(20).

move sy-datum+6(2) to wl_day.

case sy-datum+4(2).
when '01'.
write ' January ' to wl_month.
when '02'.
write ' February ' to wl_month.

...... and so on for every month. .....
endcase.

case sy-datum+7(1).
when '1'.
write 'st' to wl_v.
when '2'.
write 'nd' to wl_v.
when '3'.
write 'rd' to wl_v.
when others.
write 'th' to wl_v.
endcase.


Write the full format 
write:/ wl_day, wl_v, ' day of ', wl_month, sy-datum+0(4).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Apr 2008 07:23:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-21T07:23:44Z</dc:date>
    <item>
      <title>DATE TO TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-to-text/m-p/3671271#M884200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking for a function module that converts current date into text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.G.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;22/02/2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in english February the 22th, 2008&lt;/P&gt;&lt;P&gt;in french 22 février 2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 07:16:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-to-text/m-p/3671271#M884200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T07:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: DATE TO TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-to-text/m-p/3671272#M884201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are 2 ways to convet one is hard coding and one is using function module..kindly chekc which one suitea and  &lt;STRONG&gt;reward points if useful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Use FM IDWT_READ_MONTH_TEXT to get the Month name for the given date.

Finally Concatenate date+5(1) 'th day of ' &amp;lt;LTX Value got from FM&amp;gt; space date+0(4) into a variable.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 one..hard coding..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;..


data: wl_day(2) type n,
wl_v(2),
wl_month(20).

move sy-datum+6(2) to wl_day.

case sy-datum+4(2).
when '01'.
write ' January ' to wl_month.
when '02'.
write ' February ' to wl_month.

...... and so on for every month. .....
endcase.

case sy-datum+7(1).
when '1'.
write 'st' to wl_v.
when '2'.
write 'nd' to wl_v.
when '3'.
write 'rd' to wl_v.
when others.
write 'th' to wl_v.
endcase.


Write the full format 
write:/ wl_day, wl_v, ' day of ', wl_month, sy-datum+0(4).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 07:23:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-to-text/m-p/3671272#M884201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T07:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: DATE TO TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-to-text/m-p/3671273#M884202</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;There is no FM which can convert the date directly into that format. You need to use the FM MONTH_NAMES_GET by giving the date&lt;EM&gt;3(2) and you will get the Month name. now you can concatenate as 'Month name' date&lt;/EM&gt;0(2) 'th,'  date+6(4) into a variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understood.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 07:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-to-text/m-p/3671273#M884202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T07:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: DATE TO TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-to-text/m-p/3671274#M884203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this sample code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :w_date(25),&lt;/P&gt;&lt;P&gt;w_num type i,&lt;/P&gt;&lt;P&gt;w_num1 type i,&lt;/P&gt;&lt;P&gt;w_num2 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_LDATE_OUTPUT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;input = sy-datum&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;OUTPUT = w_date&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_num = strlen( w_date ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_num1 = w_num - 8 .&lt;/P&gt;&lt;P&gt;w_num2 = w_num - 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE w_date&lt;EM&gt;3(w_num1) w_date&lt;/EM&gt;0(2) ',' w_date+w_num2(4) into&lt;/P&gt;&lt;P&gt;w_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : w_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward Points if useful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R Adarsh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 07:34:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-to-text/m-p/3671274#M884203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T07:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: DATE TO TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-to-text/m-p/3671275#M884204</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;Try with the FM: 'CONVERSION_EXIT_IDATE_OUTPUT' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 07:43:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-to-text/m-p/3671275#M884204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T07:43:36Z</dc:date>
    </item>
  </channel>
</rss>

