首页 > 其他分享 >SAP ABAP 生成流水号

SAP ABAP 生成流水号

时间:2023-03-23 16:34:29浏览次数:60  
标签:object number 流水号 ABAP nr SAP

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.

标签:object,number,流水号,ABAP,nr,SAP
From: https://www.cnblogs.com/LikZ-WM/p/17121629.html

相关文章