关于SAP的号码范围(number range)
2007-07-31 20:23
736 查看
导读:
1.Number Range的通用Tcode:SNRO
2.Number Range的通用读取函数:NUMBER_GET_NEXT
3.如有跳号现象,可以禁用对象的Buffer试试
4.几个关于Number Range的函数组:
SNR0 Online maint. of number ranges &groups
SNR1 Interface for number ranges and groups
SNR2 Maintenance of number range objects
SNR3 Number range checks, assignment &info.
SNR4 Number ranges utility
5.使用自定义的number range objects
1).Create number range object using OYSN (或者SNRO).
2)Create intervals.
![](http://p.blog.csdn.net/images/p_blog_csdn_net/long2006sky/2.bmp)
![](http://p.blog.csdn.net/images/p_blog_csdn_net/long2006sky/New Bitmap Image (2).bmp)
If have created the Subobject data element,keying in the SUBOBJECT is needed.
3).Then call the following function modules.
DATA: RC LIKE INRI-RETURNCODE,
NUMBER(10) TYPE C.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '1'
object = 'ZNTEST2'
* QUANTITY = '1'
SUBOBJECT = 'ATTA'
* TOYEAR = '0000'
* IGNORE_BUFFER = ' '
IMPORTING
NUMBER = NUMBER
* QUANTITY =
RETURNCODE = RC
* 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.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
write number.
If no subobject ,the hightline should be commented.
1.Number Range的通用Tcode:SNRO
2.Number Range的通用读取函数:NUMBER_GET_NEXT
3.如有跳号现象,可以禁用对象的Buffer试试
4.几个关于Number Range的函数组:
SNR0 Online maint. of number ranges &groups
SNR1 Interface for number ranges and groups
SNR2 Maintenance of number range objects
SNR3 Number range checks, assignment &info.
SNR4 Number ranges utility
5.使用自定义的number range objects
1).Create number range object using OYSN (或者SNRO).
2)Create intervals.
![](http://p.blog.csdn.net/images/p_blog_csdn_net/long2006sky/2.bmp)
![](http://p.blog.csdn.net/images/p_blog_csdn_net/long2006sky/New Bitmap Image (2).bmp)
If have created the Subobject data element,keying in the SUBOBJECT is needed.
3).Then call the following function modules.
DATA: RC LIKE INRI-RETURNCODE,
NUMBER(10) TYPE C.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '1'
object = 'ZNTEST2'
* QUANTITY = '1'
SUBOBJECT = 'ATTA'
* TOYEAR = '0000'
* IGNORE_BUFFER = ' '
IMPORTING
NUMBER = NUMBER
* QUANTITY =
RETURNCODE = RC
* 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.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
write number.
If no subobject ,the hightline should be commented.
相关文章推荐
- 关于SAP的号码范围(number range)
- 关于SAP的号码范围(number range)
- 关于SAP的号码范围(number range)
- 关于SAP的号码范围(number range)
- 关于SAP的号码范围(number range) -- from 老白
- 关于SAP的号码范围(number range)
- SAP的号码范围(number range)SNRO和SNUM自动编号工具的用法
- SAP的号码范围(number range)SNRO和SNUM自动编号工具的用法
- 关于SAP的编码范围---转自老白blog
- 关于会计凭证的号码范围
- 关于SAP的编码范围
- ABAP--如何创建和使用sap的号码范围对象
- SAP Number range 编号范围用法
- ABAP--如何创建和使用sap的号码范围对象
- ABAP--如何创建和使用sap的号码范围对象
- ABAP--如何创建和使用sap的号码范围对象
- ABAP--如何创建和使用sap的号码范围对象
- sap 物料MIGO入库时[有关业务/事件类型WA在年2017的号码范围不存在]的解决方法
- 关于SAP的编码范围
- SAP中关于用户IP信息的获取(转载)