首页 > 代码库 > SAP ABAP编程 程序中取得流水号

SAP ABAP编程 程序中取得流水号

 DATAlv_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.

SAP ABAP编程 程序中取得流水号