‎2008 Jul 28 2:01 PM
hi gurus,
i have ceated a number range object in snum in respect to plant but i want to know how can i assign it to the document number range.so that ,i create the number range in respect of plant should appear in vn01.thanks in advance.
ansuman chakraborty.
‎2008 Jul 28 3:24 PM
Hi,
Use FM NUMBER_GET_NEXT by passing parameters number range number and number range object.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
NR_RANGE_NR = '01' -
Number range number
OBJECT = 'ZHR_ECPNO' -
Number range object
IMPORTING
NUMBER = ZHRECP-ECPNO.
Thanks,
Phani Diwakar.
Edited by: MVPhani Diwakar on Jul 28, 2008 4:26 PM
‎2008 Jul 28 3:10 PM
you have not fille the field subobjekt in snum (TNRO-DTELSOBJ), have you?
A.
‎2008 Jul 28 3:13 PM
In SNRO you will maintain the Number range Object , the same will be used to get the Internal number.
For that some where in the standard program they will make a call to the Function NUMBER_GET_NEXT
Check in your program Globally for the Function call
NUMBER_GET_NEXTthe main linkage happens when calling this function inside the program..
‎2008 Jul 28 3:14 PM
Goto SNRO and enter your Number Range Object, then enter the number ranges as you want.
‎2008 Jul 28 3:24 PM
Hi,
Use FM NUMBER_GET_NEXT by passing parameters number range number and number range object.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
NR_RANGE_NR = '01' -
Number range number
OBJECT = 'ZHR_ECPNO' -
Number range object
IMPORTING
NUMBER = ZHRECP-ECPNO.
Thanks,
Phani Diwakar.
Edited by: MVPhani Diwakar on Jul 28, 2008 4:26 PM