Chinaunix首页 | 论坛 | 博客
  • 博客访问: 393670
  • 博文数量: 66
  • 博客积分: 1235
  • 博客等级: 少尉
  • 技术积分: 694
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-05 12:24
文章分类

全部博文(66)

文章存档

2010年(66)

分类:

2010-03-05 13:48:02

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).Then call the following function modules.
FORM. get_next_id CHANGING p_discrep.
 DATA: last_id LIKE zrecaudit-discrep,
        quant   LIKE inri-quantity,    "dummy
        code    LIKE inri-returncode. "returncode
 CALL FUNCTION 'NUMBER_RANGE_ENQUEUE'
       EXPORTING
            object           = 'ZRECAUDIT'
       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             = '01'
              object                  = 'ZRECAUDIT'
         IMPORTING
              number                  = last_id
              quantity                = quant
              returncode              = code
         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           = 'ZRECAUDIT'
         EXCEPTIONS
              object_not_found = 1
              OTHERS           = 2.
 ENDIF.
ENDFORM.                    " get_next_id

 
6.常用维护特定Number Range的Tcode:
 
5NZI Number range maintenance: RP_IRCERT
Number range maintenance: RP_IRCERT
ABNV Number range maint: FIAA-BELNR
Number range maint: FIAA-BELNR
AO11 Assign number range
分配编号范围
AS08 Number Ranges:Asset Number
号码范围:资产号码
BDCP Number range maintenance: ALE_CP
编号范围维护: ALE_CP
BG00 Number Range Maintenance: BGMK_NR
编码范围维护:BGMK_NR
BMVN Number Range Maintenance: DI_JOBID
编号范围维护: DI_JOBID
BUCF BP Cust: Number Ranges
BP 消费者: 编号范围
CFNA Maintain PRT number range: FHM_CRFH
维护PRT编号范围: FHM_CRFH
CMTCUS22 Maintain number range for CM product
维护 CM 产品的号码范围
CMTCUS32 Maintain number range for CM folder
维护 CM 文件夹的号码范围
CMTCUS42 Maintain number ranges for Baseline
维护起点的号码范围
FBN1 Accounting Document Number Ranges
科目凭证号码范围
FNS1 Collateral number range
附属编号区间
FOV0 Rental agreement number range
租用协议编号范围
FOW0 Real Estate application number range
不动产应用的数据范围
IN20 Object link number ranges
对象连接号码范围
IP22 Maintain number range: OBJK_NR
维护编号范围:OBJK_NR
KEN2 Maint. number ranges: CO-PA planning
维护号吗范围: CO-PA计划
OGS9 Generate ADP number ranges
生成 ADP 编号范围
OHX3 Maintain number ranges for 3PR
维护 3PR 的编号范围
OIL5 Equipment number ranges
设备编号范围
OION Order number ranges
订单编号范围
OMH6 Number Ranges for Purch. Documents
采购凭证的号码范围
QCCN QM standard number ranges
质量标准码范围
QS29 Maintain characteristic number range
维护特性编号范围
QS39 Maintain method number range
编号范围维护方式
VB(1 Rebate number ranges
回扣号范围
VN07 Maintain number range for shipments
维护装运的编号范围
WC64 Catalog code number ranges
类别代码编号范围
WTNR w/tax certificate number range
w/tax certificate number range
本文转载于:http://space.itpub.net/11854622/viewspace-470521
阅读(4492) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:ABAP--如何创建和使用sap的号码范围对象

给主人留下些什么吧!~~