cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Invoice Number Range

yoku93
Discoverer
0 Kudos

Hello everyone.

We're running on SAP S/4 HANA. We want to customize billing document number, so it doesn't have document number range like 1000000001-1999999999. What we want for document number, especially for billing document, is that could be auto increment with current year and month number.

So it will be like this,

Document number : 7322010072

73 = Company Code

22 = Current Year

01 = Current Month

0072 = Running Number

Is it possible? How to do this?

Please advice.

Thank you.

Accepted Solutions (0)

Answers (2)

Answers (2)

venkateswaran_k
Active Contributor
0 Kudos

Hi,

Though your requirement is technically possible, - like to know the reason for your business requirement.

1. Is this that much mandatory - that your goes by legal requirements?

2. It is very challenging decision, what if the monthly invoices exceeded for any reason more than 9999.

However, if you still want to do that, these are the place where the ABAP team can customize in user exits.

1. Include program name : RV60AFZZ

Under this : User_exit : USEREXIT_NUMBER_RANGE

This routine will be hit while standard proram generates the number range. Where you can tap and change the number range according to your format.

Regards,

Venkat

venkateswaran_k
Active Contributor
0 Kudos

hi yoku93

Is this exit suits your requirement?

jignesh_mehta3
Active Contributor
0 Kudos

Hello,

If you leave only 4 digits for running Invoice Number, you will only be able to create 9999 Invoice in a month.

Still, if you need a Custom Invoice Number range, please look at SAP Note - 595327 (which is also valid for S4) and perform necessary development in your system. .

By the way, this topic has been discussed more than once in past.

Thanks,

yoku93
Discoverer
0 Kudos

Hi Jignesh, thank you for your answer.

I will check SAP Note - 595327 for further information.

Is it possible to get current month or current year number to be implement on custom invoice number range? So the digit number will be change automatically every month/year according to its number. And maybe the running number will be reset every month because it's only has 9999 number.

Please advice.

Thank you.

jignesh_mehta3
Active Contributor
0 Kudos

Hello Yohan,

Yes it is possible. However you will have to create 12 different Number Range for each year and your developer will have to write the Custom Code to check the system date, determine month (and year) and then pick the correct Number Range.

However, please note, if you have multiple Company Codes you may soon run out of the Number Range.

I would still challenge the Business for this requirement. Especially for the month. I am yet to see a client where Month and Year are needed in Invoice Number. May be there are doing this in legacy system, this does not mean it should continue in future.