Application Development and Automation 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: 
Read only

Number range does not exist

Former Member
0 Likes
1,966

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,274

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

4 REPLIES 4
Read only

Former Member
0 Likes
1,275

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

Read only

Former Member
0 Likes
1,274

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^

Read only

0 Likes
1,274

Hi Mrutyunjaya Tripathy,

what is the value of wnorange, wsubobj.

Object in my case is 'ZGPNO'

pls explain clearly.

Thanks

Shankar

Read only

Former Member
0 Likes
1,274

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