10-30-2007 3:30 PM
Hi!!
The problem is with function number_get_next,because it does not give back the value to me that I hope, it does not increase of 1 in 1, it is increased of 65 in 65 . It already cleans to the variables and nothing, it already executes the function separately and of this form if it works correctly. verify if the values that are indicated to him are the correct ones and if they are it.
In fact not if the error this in the object that use, because it is an object Z that I am created.
I code that I have is the following one:
data: zobjeto like inri-object,
zrango like INRI-NRRANGENR,
znumero(10) type c.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
NR_RANGE_NR = zrango
OBJECT = zobjeto
QUANTITY = '1'
IMPORTING
NUMBER = znumero
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
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
And I cannot do debug because this code is within user-exit.
What I can do?
Thanks.
10-30-2007 3:34 PM
Hi
Before using this code you have create a Number range object and to define the number ranges using SNUM and SNRO tcodes
then you have to use that particular object which you have defined here
then as per the number range defined it skips the numbers
here you have to pass that OBJECTNAME, then only it works
Regards
Anji
10-30-2007 3:49 PM
Exact, in fact previously already I have worked with this function and without problem, but it used a standard object, maybe the problem this of that side. First in the SNUM I indicate the name of the object to create, indicate the following characteristics:
Number length domain = char10
Warning = 5.0
single those, I must indicate some other thing??
Thanks.