Google Search - Blog...........

Showing posts with label function module to get the last date of any month. Show all posts
Showing posts with label function module to get the last date of any month. Show all posts

ABAP - Get The End Date Of Any Month Or Year.

REPORT ztest.

DATA: lv_actual_date TYPE sy-datum,
lv_end_of_month_date TYPE sy-datum.

PARAMETERS:p_date TYPE dats.

lv_actual_date = p_date.

CALL FUNCTION 'FIMA_DATE_CREATE'
EXPORTING
i_date = lv_actual_date
i_years = 1
i_months = 2
i_days = 4
i_calendar_days = 0
i_set_last_day_of_month = 'X'
IMPORTING
e_date = lv_end_of_month_date .


WRITE: / lv_end_of_month_date.