1、 SE80 输入class 名称,然后输入方法名称,以及parameter
method GET_LAST_DAY.
call function 'LAST_DAY_OF_MONTHS'
exporting
day_in = p_from
importing
last_day_of_month = p_to
exceptions
day_in_no_date = 1
others = 2.
endmethod.
2、 调用
lv_last_day = sy-datum.
call method ztestcls=>get_last_day
exporting
p_from = lv_last_day
changing
p_to = wa_last_day.
write:wa_last_day.