Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

FM for getting MONTH name from DATE.

Hi all ,

We have a requirement to get Month name from the DATE,e.g IF date is 01/01/2008 we need a FM which can generate month name as 'JANUARY'.

\[removed by moderator\]

Thanks and Regards

Kiran

Edited by: Jan Stallkamp on Jul 30, 2008 4:26 PM

Tags:
replied

Hi Kiran,

Try MONTH_NAMES_GET

CALL FUNCTION 'MONTH_NAMES_GET'
    EXPORTING
      language    = sy-langu
    IMPORTING
      return_code = return
    TABLES
      month_names = month_names
  exceptions
    month_names_not_found       = 1
    others                      = 2.
 
 
 if sy-subrc  0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

Regards,

Chandra Sekhar

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question