Skip to Content

automatic Number range assignment

Dear All friends

I have one scenario where i have created number range year specific like 801000 to 801999 for year 2008

and 901000 to 901999 for year 2009

now i want that my user should not change the number range manually in commercial Invoice it must change automatically when we change fyiscal year.

can i acheive this thourgh any userexit or any other way

Regards

Shambhu

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Dec 03, 2008 at 01:40 PM

    Hi,

    as far as I know the number range for the Invoice is internal only, therefore the user can not change.

    There are to possibilities to assign the numberrange to your Invoice type.

    Either you do it manuelly in customizing each year, but in this case you will face problemes when the new year beginns.

    Better you use USEREXIT_NUMBER_RANGE (Modulpool SAPLV60A, Programm RV60AFZZ).

    IRegards

    William

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 03, 2008 at 02:04 PM

    Hi,

    First of all, how did you create the number range valid for certain year ??? It seems that you have added new object via enhancement... right ?

    Now, coming to your question as other colleague also confirmed that number is set internally by the system and why do you want to use the year specific {which I doubt} number range ?

    Hrishi

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      All my friends,

      As per my requirements I have 35 states and each states required state specific number range and this number range must change with each fiscal year so i created number range according to region define in SAP example

      13 region for maha rashtra

      year 8

      Now number range is 80(year) 13 (region) 10000 (Invoice Number)

      801310000 (Invoice series for maharashtra on fiscal year 2008)

      so i have created number range like this for each state and year

      My problem is i dont want each year user should assign number range series to invoice type it must determine automatically

      so please suggest me how can i achieve this can i achieve this through any userexit then what logic should i use

      Regards

      Shambhu

  • avatar image
    Former Member
    Dec 04, 2008 at 10:43 AM

    Hi,

    has already said the only possibility is the Userexit I mentioned before.

    Read the year of the invoice date and the state out of the customer and set the number range.

    Regards

    William

    Add comment
    10|10000 characters needed characters exceeded