Skip to Content
author's profile photo Former Member
Former Member

Number range does not exist

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 12:50 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 01:00 PM

    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^

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2006 at 05:36 AM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.