Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Find the Number range

Former Member
0 Kudos

Hi all;

Can any one help me on this issue !!

How to find the Number Range for Customer / Venodor.

we have already assign the Number range and how to find the next availabilty number.

I .e I need the next Availability number for Customer/ Vendor Nuber.

Thanks

-Ravi.

2 REPLIES 2

GauthamV
Active Contributor
0 Kudos

Transaction : SNRO

Table : NRIV

Transaction : XDN1 ( customer number ranges )

Former Member
0 Kudos

Hi,

Refer

To get the next available number:

Go to SNRO-> Click on Number Ranges button -> Click on status -> u will get the current number

Also you can use FM "NUMBER_GET_NEXT" to get the next number

CALL FUNCTION 'NUMBER_GET_NEXT'

EXPORTING

nr_range_nr = '01'

object = 'ZDOCNUM'

  • QUANTITY = '1'

  • SUBOBJECT = ' '

  • TOYEAR = '0000'

  • IGNORE_BUFFER = ' '

IMPORTING

number = v_docno

  • QUANTITY =

  • RETURNCODE =

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.

Regards

Sumana