2007 Jul 10 7:35 AM
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)
2007 Jul 10 7:53 AM
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
2007 Jul 10 9:53 AM
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>
2007 Jul 10 10:01 AM
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.