创建号码范围对象:
1.使用TCODE:SNRO (Simple way to remember is SapNumberRangeObject).
<shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"><stroke joinstyle="miter"></stroke><formulas><f eqn="if lineDrawn pixelLineWidth 0"></f><f eqn="sum @0 1 0"></f><f eqn="sum 0 0 @1"></f><f eqn="prod @2 1 2"></f><f eqn="prod @3 21600 pixelWidth"></f><f eqn="prod @3 21600 pixelHeight"></f><f eqn="sum @0 0 1"></f><f eqn="prod @6 1 2"></f><f eqn="prod @7 21600 pixelWidth"></f><f eqn="sum @8 21600 0"></f><f eqn="prod @7 21600 pixelHeight"></f><f eqn="sum @10 21600 0"></f></formulas><path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"></path><lock v:ext="edit" aspectratio="t"></lock></shapetype><shape id="_x0000_i1025" style="WIDTH: 261.75pt; HEIGHT: 150.75pt" type="#_x0000_t75"><imagedata src="file:///C:/DOCUME~1/PARVAT~1/LOCALS~1/Temp/msoclip1/03/clip_image001.png" o:title=""></imagedata></shape>
2. 输入号码范围对象的名称 并点击“新建”按钮.
3. 输入描叙和相关字段具体参见下图:
<shape id="_x0000_i1030" style="WIDTH: 6in; HEIGHT: 394.5pt" type="#_x0000_t75"><imagedata src="file:///C:/DOCUME~1/PARVAT~1/LOCALS~1/Temp/msoclip1/03/clip_image003.png" o:title=""></imagedata></shape>
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”按纽.系统将弹出下列屏幕:
<shape id="_x0000_i1031" style="WIDTH: 253.5pt; HEIGHT: 153.75pt" type="#_x0000_t75"><imagedata src="file:///C:/DOCUME~1/PARVAT~1/LOCALS~1/Temp/msoclip1/03/clip_image005.png" o:title=""></imagedata></shape>
5.点击“YES”按钮,并制定对象类.
6. 点击“Number Ranges” .
<shape id="_x0000_i1029" style="WIDTH: 349.5pt; HEIGHT: 273.75pt" type="#_x0000_t75"><imagedata src="file:///C:/DOCUME~1/PARVAT~1/LOCALS~1/Temp/msoclip1/03/clip_image007.png" o:title=""></imagedata></shape>
7. 点击 “Change Intervals”.
<shape id="_x0000_i1028" style="WIDTH: 255pt; HEIGHT: 172.5pt" type="#_x0000_t75"><imagedata src="file:///C:/DOCUME~1/PARVAT~1/LOCALS~1/Temp/msoclip1/03/clip_image009.png" o:title=""></imagedata></shape>
<shape id="_x0000_i1027" style="WIDTH: 409.5pt; HEIGHT: 237pt" type="#_x0000_t75"><imagedata src="file:///C:/DOCUME~1/PARVAT~1/LOCALS~1/Temp/msoclip1/03/clip_image011.png" o:title=""></imagedata></shape>
8.点击 “Insert Interval”.
9. 输入相应的数据值,参见下屏:
<shape id="_x0000_i1026" style="WIDTH: 411pt; HEIGHT: 161.25pt" type="#_x0000_t75"><imagedata src="file:///C:/DOCUME~1/PARVAT~1/LOCALS~1/Temp/msoclip1/03/clip_image013.png" o:title=""></imagedata></shape>
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.aspxSource URL:
http://www.saptechnical.com/Tutorials/ABAP/SNRO/SNRO.htm
分享到:
相关推荐
ABAP - Keyword Documentation This documentation describes the syntax and meaning of the keywords of the ABAP language and its object-oriented part ABAP Objects. Alongside this, language frameworks ...
创建和使用SAP的号码范围对象,图解说明,中文的。还有测试用例。。。
SAP初探之ABAP-数据库对象 解释说明 在ABAP里面 面向对象的概念
SAP方丈-ABAP-SAP增强应用实例
SAP-ABAP-OO-实现-CL-SALV-TABLE
ABAP-SAP的几种(代)出口类型 Web_dynpro-关于WEBDYNPRO的编程开发(一) ABAP-FOR ALL ENTRIES IN 注意点 ABAP-根据T-CODE找BADI ABAP-根据T-CODE找BAPI ABAP-UPLOAD文件时常用的数据转换 关于using和changing ...
SAP-ABAP-Certification-Review.pdf
简单来讲,SAPLINK就是用来导入和导出ABAP程序,等开发对象的一个开源分享项目的产物. 1.上载前置工具程序 导入SAPLINK需要使用ZSAPLINK_INSTALLER程序进行导入. TCode:SE38,新建名为ZSAPLINK_INSTALLER的程序. 2....
SAP初探之ABAP-数据库对象[参照].pdf
详细介绍了SAP ABAP 高级编程技术
SAP-ABAP-IDOC使用材料资料.pdf
SAP资料集有ABAP-PP-MM-RFC-BAPI-JCO等.rar
SAP的开发工具ABAP-4学习资料. 主要是SAP的一些关键字的用法!
SAP初探之ABAP-数据库对象[归纳].pdf
SAP方丈-ABAP-SAP增强应用实例.docx
似乎是系统有Bug,或是其他原因,采购申请中的发布标识,在取消审批后,不能复原。
SAP ABAP-Dictionary_查询表结构和内容 实战技术
ABAP-培训教材附录 ABAP-培训教材ABAP-培训教材ABAP-培训教材ABAP-培训教材
CD260-ABAP-in-Eclipse-开发-CN CD260-ABAP-in-Eclipse-开发-CNCD260-ABAP-in-Eclipse-开发-CNCD260-ABAP-in-Eclipse-开发-CN
这是一篇sap权限对象的创建、设置的文档,同时伴有abap使用权限对象的代码,说明权限对象的使用方法。