Skip to Content
avatar image
Former Member

Function Module to convert month in number to month in words.

Hi,

How do I convert month in number to month in words? Is there any Function Module for this?

Please do reply.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

15 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 27, 2008 at 06:42 AM

    Hi,

    Function module ISP_GET_MONTH_NAME

    Import parameters Value

    DATE

    LANGUAGE EN

    MONTH_NUMBER 01

    Export parameters Value

    LANGU_BACK EN

    LONGTEXT January

    SHORTTEXT JAN

    Regards

    Shiva

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 27, 2008 at 07:17 AM

    Hi

    IDWT_READ_MONTH_TEXT, this function module does not exist in SAP version 4.6C.

    Please let me kow the function module which exists in 4.6C.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 27, 2008 at 06:47 AM

    hi,

    I tried using this function module, but i am getting an error. Can you tell me more clearly of how this function module can be used.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 27, 2008 at 06:50 AM

    Hi,

    The function module ISP_GET_MONTH_NAME is not existing in SAP version 4.6C. Are there any other function modules that can be used?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 27, 2008 at 06:50 AM

    HI,

    Use this function module

    CONVERSION_EXIT_IDATE_OUTPUT
    
     INPUT                           20071212
     OUTPUT                       12DEC2007
    
    after that output+2(3)

    u can get month.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 27, 2008 at 06:55 AM

    Hi,

    Can I get more details of how to use the table T015M, I cant use CONVERSION_EXIT_IDATE_OUTPUT, because i need month in expansion,not only three characters. please help.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      data : v_monam type t015m-monam.

      Select single MONAM

      from T015M

      into v_MONAM

      where spras = sy-langu

      and Monum= p_monum.

      V_MONAM will have the month name.

      write : v_monam.

      regards

      Shiva

  • avatar image
    Former Member
    Mar 27, 2008 at 07:02 AM

    Hi,

    Use the funtion module IDWT_READ_MONTH_TEXT.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 27, 2008 at 07:05 AM

    Hi,

    Check the following code,you can meet ur requirement.

    data: date1(15),

    date2(15).

    CALL FUNCTION 'CONVERSION_EXIT_IDATE_OUTPUT'

    EXPORTING

    input = sy-datum

    IMPORTING

    OUTPUT = date1

    .

    write:/ date1.

    concatenate date10(2) date12(3) date1+5 into date2 separated by space.

    write:/ date2.

    Reward,if it is useful.

    Thanks,

    Chandu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 27, 2008 at 07:08 AM

    Hi,

    Check the below code.

    data: wa_t247 like t247,

    v_month like t247-MNR.

    v_month = sy-datum+4(2).

    CALL FUNCTION 'IDWT_READ_MONTH_TEXT'

    EXPORTING

    langu = 'E'

    month = v_month

    IMPORTING

    T247 = wa_t247.

    write:/5 'Month name = ', wa_t247-ltx.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 27, 2008 at 07:10 AM

    Hi,

    The table T015M is maintained in both english and spanish, but I need in french also, Could you help me out , which Function module or table can be used which is maintained all three languages (english,french,spanish).

    Add comment
    10|10000 characters needed characters exceeded