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: 

About the function "NUMBER_GET_NEXT" to get the next number

Former Member
0 Kudos

hi experts:

I use this function to get the next number,but I have one problem here, the numbers are not one by one,for example,I get the number "1000000001",but the next one is "1000000009",but not 1000000002.

Does anybody would like to solve this problem?Thanks.

the code is:

CALL FUNCTION 'NUMBER_GET_NEXT'

EXPORTING

nr_range_nr = '01'

object = 'ZYFK_NUM'

IMPORTING

number = head_id

returncode = returncode1

EXCEPTIONS

interval_not_found = 1

number_range_not_intern = 2

object_not_found = 3

quantity_is_0 = 4.

1 ACCEPTED SOLUTION

former_member1245113
Active Contributor
0 Kudos

Hi

I think you have mentioned No. of numbers in buffer as 10 in the SNRO tcode please reset it to 0.

Regards

Ramchander Rao.

6 REPLIES 6

former_member1245113
Active Contributor
0 Kudos

Hi

I think you have mentioned No. of numbers in buffer as 10 in the SNRO tcode please reset it to 0.

Regards

Ramchander Rao.

0 Kudos

thanks.

I have set the buffer as 0,but the situation still boring me.

how it can be solved?

thanks all!

0 Kudos

Hi,

In your function module there is a import parameter Bypass_buffer ( or similar kind as i am unable to access SAP moment)

call function 'NUMBER_GET_NEXT'

exporting

---

bypass_buffer = 'X'. "Please check this is one of the parameters)

try this out.

or updata NRIV table to set the initial number back to 1000000000.

update table NRIV set nrlevel = 1000000000 WHERE object = 'your created object name' and

subobject name = 'your created subobject name'

or just wait till the buffered numbers get completed ( up to 1000000009) then onwards as you set 0 buffering you will get normal numbers.

Best Regards

Ramchander Rao.K

Edited by: ramchander krishnamraju on Dec 14, 2008 5:59 AM

0 Kudos

thanks, I have solve this problem.

thanks you very much!

Former Member
0 Kudos

Hi,

please search this thread of sdn where this FM is being discussed:

Hope it helps.

Regards,

Rahul

Former Member