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

Number range problem

Dear Experts,

I want a new number range when creating a billing document. for this i created a new object ZNR in SNUM plant wise. and i am using FM - NUMBER_GET_NEXT in RV60AFZZ(USEREXIT_NUMBER_RANGE) . But how to map i am not able to under stand please help me.

wether i should write this code in other place.

Can any one.

Edited by: Charitha Reddy on Feb 25, 2009 10:09 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 25, 2009 at 10:49 AM

    you have to check the Current number in particula number range. some times the current number range is 10, means the number already created, after that in customization they will set the current number range is 1, the 1 is already created, check the current number range and then proceed.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 25, 2009 at 10:56 AM

    Hi,

    CALL FUNCTION 'NUMBER_GET_NEXT'

    EXPORTING

    nr_range_nr = '01'

    object = nr_object

    IMPORTING

    number = l_number

    returncode = returncode

    EXCEPTIONS

    interval_not_found = 1

    number_range_not_intern = 2

    object_not_found = 3

    quantity_is_0 = 4

    interval_overflow = 5.

    where nr_range_nr is the number and object is your object name, l_number is the generated number and return code.

    Keerthi.

    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.