Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Call function NUMBER_GET_NEXT

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.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question