Homelab, Linux, JS & ABAP (~˘▾˘)~
 

[ABAP] Get month name

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
METHOD get_month_name.
 
   DATA: month_names TYPE TABLE OF t247.
 
   CALL FUNCTION 'MONTH_NAMES_GET'
     TABLES
       month_names = month_names
     EXCEPTIONS
       OTHERS      = 0.
 
   TRY.
       r_name = month_names[ mnr = i_month ]-ltx.
 
     CATCH cx_sy_itab_line_not_found.
   ENDTRY.
 
ENDMETHOD.