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

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.

No comments:

Post a Comment