SAP number segment

Source: Internet
Author: User
Tags ranges
[Go to http://blog.csdn.net/wengyupeng/article/details/8513527]
1. General tcode: snro

 

Common maintenance of specific 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
  Allocation number range
AS08 Number ranges: asset number
  Number range: asset number
Bdcp Number range maintenance: ale_cp
  Number range maintenance: ale_cp
Bg00 Number range maintenance: bgmk_nr
  Code range maintenance: bgmk_nr
Bmvn Number range maintenance: di_jobid
  Number range maintenance: di_jobid
Bucf BP Cust: Number Ranges
  BP consumer: number range
Cfna Maintain PRT number range: fhm_crfh
  Maintenance PRT number range: fhm_crfh
Cmtcus22 Maintain number range for CM Product
  Maintain the number range of CM Products
Cmtcus32 Maintain number range for CM folder
  Maintain the number range of the CM folder
Cmtcus42 Maintain number ranges for baseline
  Maintain the starting point number range
Fbn1 Accounting document number ranges
  Subject creden number range
Fns1 Collateral number range
  Affiliated ID range
Fov0 Marshal agreement number range
  Range of lease protocol numbers
Fow0 Real estate application number range
  Data range of real estate applications
In20 Object Link number ranges
  Object connection number range
Ip22 Maintain number range: objk_nr
  Maintenance number range: objk_nr
Ken2 Maint. number ranges: CO-PA Planning
  Maintenance number? scope: CO-PA plan
Ogs9 Generate ADP number ranges
  Range of generated ADP numbers
Ohx3 Maintain number ranges for 3pr
  Maintain the serial number range of 3pr
Oil5 Equipment number ranges
  Device ID range
Oion Order Number Ranges
  Order number range
Omh6 Number Ranges for purch. Documents
  Number range of purchase creden
Qccn QM standard number ranges
  Quality Management Standard Code Range
Qs29 Maintain characteristic number range
  Maintenance feature number range
Qs39 Maintain Method number range
  Number range maintenance method
VB (1 Rebate number ranges
  Kickback number range
Vn07 Maintain number range for shipments
  Maintain the serial number range of the shipment
Wc64 Catalog code number ranges
  Category code number range
Wtnr W/tax certificate number range
  W/tax certificate number range
2. Configuration    

Figure 1.

Location 1. here corresponds to the company code in the second figure (figure 2. If this parameter is not specified, no company code exists in Figure 2.

Location 2. Length of the serial number range

Location 3. remaining number 10% warning

Position 4. If it is checked, a year column is automatically displayed in Figure 2. Start from New Year

Location 5. If the number is not checked, start from scratch after the number is used up

 

 

 

 

 

Figure 2

Interval: Maintenance number range

Status: the current number.

 

Figure 3

 

Number range status: current number

 

3. Code

 

Report ztest_weng1.
Data lv_id type num10.

Start-of-selection.
Perform get_next_id.




Form get_next_id.
Data: last_id type bukrs,
Quant like inri-quantity, "dummy
Code like inri-returncode. "returncode

"Noco is the object name
Call function 'Number _ range_enqueue'
Exporting
Object = 'noco'
Exceptions
Foreign_lock = 1
Object_not_found = 2
System_failure = 3
Others = 4.
If sy-subrc = 0.
Do 100 times.
Call function 'Number _ get_next'
Exporting
Nr_range_nr = '01'
Object = 'noco'
Subobject = '000000'
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.
Lv_id = last_id.
Write lv_id.
Enddo.
Call function 'Number _ range_dequeue'
Exporting
Object = 'noco'
Exceptions
Object_not_found = 1
Others = 2.
Endif.
Endform.

SAP number segment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.