Skip to Content
0
Former Member
Feb 06, 2008 at 09:08 PM

Problem with generating of numbers NUMBER_GET_NEXT

879 Views

Hi,

I need to generate numbers for Project-Id. I've created a number range object (SNRO) NR_PROID (Settings: number length domain: numc10, No. of numbers in buffer: 10) with interval 01: 0000000001 - 9999999999, current number 100.

I use it in the FM NUMBER_GET_NEXT:

CALL FUNCTION 'NUMBER_GET_NEXT'

EXPORTING

NR_RANGE_NR = '01'

OBJECT = 'NR_PROID'

IMPORTING

NUMBER = PROJID_TEMP

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.

But I always get numbers from 0 to 9, and then 0, 1, ...9 again. Each time increases the current number of the object's interval (10 numbers).

However if I test the FM NUMBER_GET_NEXT with my object NR_PROID (SE37) it works fine.

Does anybody know, what the reason could be?

Thank you in advance.

Irina

Edited by: Irina Ziegler on Feb 6, 2008 10:08 PM

Edited by: Irina Ziegler on Feb 6, 2008 10:08 PM