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

ABAP - Fetch Last Day Of Any Month Using FIMA_DATE_CREATE

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_FLG_END_OF_MONTH = ' '
* I_YEARS = 0
* I_MONTHS = 0
* I_DAYS = 0
* 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