cancel
Showing results for 
Search instead for 
Did you mean: 

automatic Number range assignment

former_member266852
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member266852
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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