DATA: lv_curno TYPE num10.
CALL FUNCTION ‘NUMBER_GET_NEXT‘
EXPORTING
nr_range_nr = ‘00‘
object = ‘ZOA_LOGNUM‘
IMPORTING
number = lv_curno
EXCEPTIONS
interval_not_found = 1
number_range_not_intern = 2
object_not_found = 3
quantity_is_0 = 4
quantity_is_not_1 = 5
interval_overflow = 6
buffer_overflow = 7
OTHERS = 8.
IF sy-subrc <> 0.
ELSE.
CALL FUNCTION ‘CONVERSION_EXIT_ALPHA_INPUT‘
EXPORTING
input = lv_curno
IMPORTING
output = lv_curno.
ENDIF.
write lv_curno.
时间: 2024-10-09 23:45:35