根据起始年月与数字相加,计算所得年月
FUNCTION Z_TEST_MONTH_COUNT.
*"----------------------------------------------------------------------
*"*"Local interface:
*" IMPORTING
*" VALUE(P_MONTH) TYPE CHAR6
*" VALUE(COUNT) TYPE INT4
*" EXPORTING
*" VALUE(END_MONTH) TYPE CHAR6
*"----------------------------------------------------------------------
data : year_num type i.
data : month_num type i.
data : add_year type i.
data : start_month type i.
year_num = p_month+0(4).
month_num = p_month+4(2).
month_num = month_num + count.
start_month = month_num mod 12.
if start_month = 0.
start_month = 12.
endif.
add_year = month_num div 12.
if start_mon