Hi Friends,
I am facing the problem in Number generation function.
e.g. NUMBER_GET_NEXT,
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01'
object = 'ZGPNO'
IMPORTING
number = gpno .
In that the error message is Number range '01' does not
exist .
But in one client its executing like Developer client (the ZGPNO object is avail with number range) but in other clients (object avail) its not working even though it gets Transported.
Please help me to solve this problem.
Thanks in advance
Regards
Shankar M P
Hi
The Number Ranges are client dependent
Why dont you check out the same number range by going to <b>SNUM</b> or <b>SNRO</b> with the same object 'ZGPNO and see if range '01' exists
This should be in the client in which you are testing.
Message was edited by: Dominic Pappaly
hi
good
try like this
data: wnorange like INRI-NRRANGENR, "number range,
wsubobj like inri-SUBOBJECT, "sub object
wdocno(12).
call function 'NUMBER_GET_NEXT'
exporting
nr_range_nr = wnorange
object = 'ZOWNNO'
subobject = wsubobj
importing
number = wdocno "Number generated by SAP
exceptions
interval_not_found = 1
number_range_not_intern = 2
object_not_found = 3
quantity_is_0 = 4
quantity_is_not_1 = 5
internal_overflow = 6
others = 7.
if sy-subrc ne 0.
message e086 with 'Number Range' sy-subrc.
endif.
thanks
mrutyun^
Hi Shankar
Please check table <b>NRIV</b> via SE16 with below values as input in the client that you have problem:
1. Pass values: 'ZGPNO' for Object, '01' for NRRANGENR. 2. Execute.
Now check if the entries exist, if not then you can catch your Functional consultant or the person who configures the number range objects.
If entries exists, please check if there is any value for SUBOBJECT, if it exits you have to pass the same while calling your FM.
Hope this helps you.
Kind Regards
Eswar
Add a comment