Skip to Content
-1

How to Generate NUMBER_GET_NEXT number Group wise

Jun 29, 2017 at 06:42 AM

41

avatar image

Need small help.

I have an object XYZ It is having Number range Group wise

Number group:101

Number Range: 01 2017 0001 to 00050

One more group is

Number group:102

Number Range: 01 2017 0001 to 00050

My problem is,How could i Generate next number Number group wise.
In Exporting Object and Number Range only they given.How could i get the
number as number group wise

CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
NR_RANGE_NR = '01'
OBJECT = 'J_1IG_ODN'
* QUANTITY = '1'
* SUBOBJECT = ' '
* TOYEAR = '0000'
* IGNORE_BUFFER = ' '
IMPORTING
NUMBER =
* QUANTITY =
* RETURNCODE =
* 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.
* Implement suitable error handling here
ENDIF.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers