DATA: start_date LIKE sy_datum,
      end_date LIKE sy_datum.
 
* Get first day of current month
  CONCATENATE sy-datum(6) '01' INTO start_date.
 
* Get last day of current month
  CALL FUNCTION 'LAST_DAY_OF_MONTHS'
       EXPORTING
            day_in            = start_date
       IMPORTING
            last_day_of_month = end_date.
  IF sy-subrc  0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
       WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
 
 
Serkan AKKAVAK
Computer Engineer
serkurumsal@yandex.com