SAP ABAP 生成流水号

TCODE:SNRO

 

 填写流水号对象的相关信息

 

 

 

 

 

流水号的使用:

 CALL FUNCTION 'NUMBER_GET_NEXT'
            EXPORTING
              nr_range_nr             '01'
              object                  'ZMMSAPNO'
            IMPORTING
              number                  = lv_sapno  "生成的流水号
            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 EQ 0.

     ENDIF.

posted @ 2023-03-23 16:27  LikZ-WM  阅读(339)  评论(0编辑  收藏  举报