snro,可以创建序列号对象
call function 'NUMBER_RANGE_ENQUEUE'
exporting
object = 'ZLIKP' snro创建的object_name
exceptions
foreign_lock = 1
object_not_found = 2
system_failure = 3
others = 4.
if sy-subrc = 0.
call function 'NUMBER_GET_NEXT'
exporting
nr_range_nr = '02' 号码范围
object = 'ZLIKP' 对象号
importing
number = p_nextid
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.
call function 'NUMBER_RANGE_DEQUEUE'
exporting
object = 'ZLIKP'
exceptions
object_not_found = 1
others = 2.
endif.