Code: Alles auswählen.
date = COMM_STRUCTURE-calmonth.
date+6 = '01'.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
i_date = date
i_periv = comm_structure-FISCVARNT
IMPORTING
e_buper = periode
e_gjahr = gjahr
.
IF sy-subrc <> 0.
RETURNCODE = sy-subrc.
else.
RETURNCODE = 0.
ENDIF.
CONCATENATE periode+1 gjahr INTO result.
ABORT = 0.