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: 

ranges

Former Member
0 Kudos
175

what are the number ranges fo following while using predefined applications for recording

1.lifnr(vendor acc number(xk01)

2.Sales order number (va01)

3.material number(mm01)

4.cutomer account number(vd01)

3 REPLIES 3

Former Member
0 Kudos
52

Hi

See the Tcodes <b>SNUM and SNRO</b>

first try to know the NUMBER RANGE OBJECTs for the respective objects like Customer, vendor, material etc

and in the relative transaction search for the different types of partners ranges

<b>Reward points for useful Answers</b>

Regards

Anji

varma_narayana
Active Contributor
0 Kudos
52

Hi...

Number range Objects are defined the Transaction SNRO.

The definition of number range object is based on the domain.

All number range object definitions are stored in table TNRO.

So you can check Domains of the fields that u mentioned and find the entries in the table.

Note:sometimes the domain name may not be the same.

<b>reward if helpful.</b>

varma_narayana
Active Contributor
0 Kudos
52

Hi ..

You can also find the NUMBER RANGE OBJECTS in the source code of a transaction.

Find the Call Function 'NUMBER_GET_NEXT'. (Select the MAIN PROGRAM radiobutton while searching.

This function will have a parameter OBJECT.

double click on its actual parameter. Here NROBJ.

eg:

CALL FUNCTION 'NUMBER_GET_NEXT'

EXPORTING

OBJECT = NROBJ

NR_RANGE_NR = T077D-NUMKR

IMPORTING

NUMBER = KNA1-KUNNR

RETURNCODE = RETCODE

EXCEPTIONS

INTERVAL_NOT_FOUND = 01

NUMBER_RANGE_NOT_INTERN = 02

OBJECT_NOT_FOUND = 03.

it will show the declaration.

eg:

DATA: NROBJ LIKE TNRO-OBJECT VALUE 'DEBITOR'.

here you can find the NUMBER RANGE OBJECT name 'DEBITOR'

hope this will surely help u.