ABAP如何创建和使用sap的号码范围对象

摘要:
要创建数字范围对象:1.使用TCODE:SNRO(SimplewaytoremberisSapNumberRangeObject)。2.输入数字范围对象的名称,然后单击“新建”按钮

创建号码范围对象:

1.使用TCODE:SNRO (Simple way to remember is SapNumberRangeObject).

ABAP如何创建和使用sap的号码范围对象第1张

2.输入号码范围对象的名称 并点击“新建”按钮.

3.输入描叙和相关字段具体参见下图:

ABAP如何创建和使用sap的号码范围对象第2张

Warning% àAssume that an interval is defined from 1 to 1000. If you want to issue a warning at the number 900, enter 10 (%) here.

4.点击“SAVE”按纽.系统将弹出下列屏幕:

ABAP如何创建和使用sap的号码范围对象第3张

5.点击“YES”按钮,并制定对象类.

6.点击“Number Ranges” .

ABAP如何创建和使用sap的号码范围对象第4张

7.点击 “Change Intervals”.

ABAP如何创建和使用sap的号码范围对象第5张

ABAP如何创建和使用sap的号码范围对象第6张

8.点击 “Insert Interval”.

9.输入相应的数据值,参见下屏:

ABAP如何创建和使用sap的号码范围对象第7张

10.点击 “Insert”,再点击保存.号码范围对象就已经成功建立.

测试the Number Range Object:

We can use the function module, NUMBER_GET_NEXT, to get the next number of any number range object.

Following is a test program to get the next available number of the object created above:

REPORT zsnro_test.
DATA:
NUMBER TYPE I.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01'
object = 'ZDEMO'
IMPORTING
NUMBER = NUMBER
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 :/ 'Next available number is: ', Number.

<script type="text/javascript"><!-- google_ad_client = "pub-1086451200925480"; google_alternate_color = "0000FF"; google_ad_width = 336; google_ad_height = 280; google_ad_format = "336x280_as"; google_ad_type = "text"; //2007-04-05: 336 x 280 google_ad_channel = "5227776827"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "000000"; google_color_text = "000000"; google_color_url = "008000"; //--> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"> </script> 相关文章:http://blog.csdn.net/CompassButton/archive/2006/10/16/1336751.aspx
Source URL:http://www.saptechnical.com/Tutorials/ABAP/SNRO/SNRO.htm

免责声明:文章转载自《ABAP如何创建和使用sap的号码范围对象》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇MySQL基于Amoeba实现读写分离Java二维码的制作下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

ABAP SY-SUBRC 使用过程中返回值的几种含义

当进行Debug的时候,经常会遇到"SY-SUBRC"的返回值。具体如何使用。在各种语句下返回值。 ================= FUNCTION MODULE (或RFC中) SY-SUBRC 的含义 ================使用SELECT语句选择查询:SY-SUBRC = 0: 至少有一行数据,当ENDSELECT语句执行完,SY-DB...

SAP-Function

[转]sap函数大全 ********SAP中常用函数 函数名 描述SD_VBAP_READ_WITH_VBELN 根据销售订单读取表vbap中的信息EDIT_LINES 把READ_TEXT返回的LINES中的行按照TDFORMAT=“*”重新组织VIEW_MAINTENANCE_CALL 维护表视图 函数名 描述DY_GET_FOCUS 获得屏幕焦点D...

Runtime error TSV_TNEW_PAGE_ALLOC_FAILED

NOTE:/20527 https://launchpad.support.sap.com/#/notes/20527 NOTE:2180736  https://launchpad.support.sap.com/#/notes/2180736 T-CODE:RZ10   进行SAP系统参数的设置,设置后需激活参数并重启SAP实例,配置参数才会生效 系...

SAP内存/ABAP内存/共享内存区别

(1)、读取和使用方法不同SAP内存使用SET/GET parameters方法;SET PARAMETER ID 'MAT' field p_matnr.GET PARAMETER ID 'MAT' field p_matnr. ABAP内存使用EXPORT 和IMPORT  方法;export p_matnr = p_matnr to memory...

本地开发好的 SAP Fiori Elements 应用,如何部署到 ABAP 服务器上?

这是 Jerry 2021 年的第 29 篇文章,也是汪子熙公众号总共第 300 篇原创文章。 之前 Jerry 的两篇文章,分别介绍了如何在本地使用 Visual Studio Code 创建一个 SAP Fiori Elements 应用,以及使用 Fiori Elements Controller Extension 理念,对该 Fiori Elem...

ABAP-供应商主数据创建(公司视图)

FUNCTION zmm_fm_21_04.*"----------------------------------------------------------------------*"*"本地接口:*"  IMPORTING*"     VALUE(IN) TYPE  ZSLIFNR_SRM*"  EXPORTING*"     VALUE(OUT...