<?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 get month name in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-month-name/m-p/3134059#M744636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this code -&lt;/P&gt;&lt;P&gt;TABLES : t247.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA : v_mon(2) TYPE n,&lt;/P&gt;&lt;P&gt;       v_date(10) VALUE '04.09.2007',&lt;/P&gt;&lt;P&gt;       v_ltx LIKE t247-ltx,&lt;/P&gt;&lt;P&gt;       v_ktx LIKE t247-ktx.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT SINGLE ktx&lt;/P&gt;&lt;P&gt;              ltx&lt;/P&gt;&lt;P&gt;              INTO (v_ktx , v_ltx)&lt;/P&gt;&lt;P&gt;              FROM t247&lt;/P&gt;&lt;P&gt;              WHERE spras = sy-langu AND&lt;/P&gt;&lt;P&gt;                    mnr EQ v_date+3(2).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;WRITE : v_ktx , v_ltx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise use FM MONTH_NAME_GET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will prefer the above quote.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Dec 2007 09:50:27 GMT</pubDate>
    <dc:creator>amit_khare</dc:creator>
    <dc:date>2007-12-17T09:50:27Z</dc:date>
    <item>
      <title>Function Module to get month name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-month-name/m-p/3134057#M744634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need to capture the month name in a variable.Example if the month is 02 then i need the result as February or if it is 12 then i need the result as December..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any Function Module for the same..&lt;/P&gt;&lt;P&gt;Please suggest..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 09:47:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-month-name/m-p/3134057#M744634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-17T09:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get month name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-month-name/m-p/3134058#M744635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not that I'm aware of but its easy to write one. Build a case statement around a FM/Routine Importing/Using the month number and Exporting/Changing the variable containing the month name. There are only 12 months so it should be short and simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sougata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 09:50:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-month-name/m-p/3134058#M744635</guid>
      <dc:creator>Sougata</dc:creator>
      <dc:date>2007-12-17T09:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get month name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-month-name/m-p/3134059#M744636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this code -&lt;/P&gt;&lt;P&gt;TABLES : t247.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA : v_mon(2) TYPE n,&lt;/P&gt;&lt;P&gt;       v_date(10) VALUE '04.09.2007',&lt;/P&gt;&lt;P&gt;       v_ltx LIKE t247-ltx,&lt;/P&gt;&lt;P&gt;       v_ktx LIKE t247-ktx.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT SINGLE ktx&lt;/P&gt;&lt;P&gt;              ltx&lt;/P&gt;&lt;P&gt;              INTO (v_ktx , v_ltx)&lt;/P&gt;&lt;P&gt;              FROM t247&lt;/P&gt;&lt;P&gt;              WHERE spras = sy-langu AND&lt;/P&gt;&lt;P&gt;                    mnr EQ v_date+3(2).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;WRITE : v_ktx , v_ltx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise use FM MONTH_NAME_GET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will prefer the above quote.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 09:50:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-month-name/m-p/3134059#M744636</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-12-17T09:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get month name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-month-name/m-p/3134060#M744637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;   using the following function module MONTH_NAMES_GET.&lt;/P&gt;&lt;P&gt;                or &lt;/P&gt;&lt;P&gt;data: l_month(10) type c.&lt;/P&gt;&lt;P&gt;   select ltx form t247&lt;/P&gt;&lt;P&gt;             into l_month&lt;/P&gt;&lt;P&gt;             where spras = 'EN'&lt;/P&gt;&lt;P&gt;                 and mnr = 12 "==&amp;gt; month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Vallamuthu.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 09:53:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-month-name/m-p/3134060#M744637</guid>
      <dc:creator>vallamuthu_madheswaran2</dc:creator>
      <dc:date>2007-12-17T09:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get month name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-month-name/m-p/3134061#M744638</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 FM  MONTH_NAME_GET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 09:53:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-month-name/m-p/3134061#M744638</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2007-12-17T09:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get month name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-month-name/m-p/3134062#M744639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;3 ways;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:itab_month type standard table of T247&lt;/P&gt;&lt;P&gt;data: month_name type table of t247 with header line.&lt;/P&gt;&lt;P&gt;data: mm(2) type n.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;mm = sy-datum+4(2).&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MONTH_NAMES_GET'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;MONTH_NAMES = month_name.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;read table month_name index mm.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;write: / month_name-ltx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ychatest2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : t247.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : v_mon(2) TYPE n,&lt;/P&gt;&lt;P&gt;v_date(10) VALUE '04.09.2007',&lt;/P&gt;&lt;P&gt;v_ltx LIKE t247-ltx,&lt;/P&gt;&lt;P&gt;v_ktx LIKE t247-ktx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE ktx&lt;/P&gt;&lt;P&gt;ltx&lt;/P&gt;&lt;P&gt;INTO (v_ktx , v_ltx)&lt;/P&gt;&lt;P&gt;FROM t247&lt;/P&gt;&lt;P&gt;WHERE spras = sy-langu AND&lt;/P&gt;&lt;P&gt;mnr EQ v_date+3(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE : v_ktx , v_ltx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use sub srtingoperation, as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MONTH_NAMES_GET cannot be used to spell the month, it is used to retrieve the available month options in a perticular system and their possible representation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to spell the month use the FM ' SPELL_AMOUNT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use sub string operation for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: c1(2) type c,&lt;/P&gt;&lt;P&gt;d1 type d value '04.09.2007,&lt;/P&gt;&lt;P&gt;WORDS LIKE SPELL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c1 = d1+3(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SPELL AMOUNT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXP&lt;/P&gt;&lt;P&gt;AMOUNT = C1&lt;/P&gt;&lt;P&gt;LANGUAGE = SY-LANGU&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;IN_WORDS = WORDS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: WORDS-WORD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 09:54:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-month-name/m-p/3134062#M744639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-17T09:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get month name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-month-name/m-p/3134063#M744640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use FM " Month_name_get".. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be better to write Case statements and create some piece of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward If Useful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chitra Parameswaran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 09:56:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-month-name/m-p/3134063#M744640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-17T09:56:12Z</dc:date>
    </item>
  </channel>
</rss>

