cancel
Showing results for 
Search instead for 
Did you mean: 

Billing document number range

former_member431487
Participant
0 Kudos

Hello experts,

I have created a new number range for existing billing document types based on sales org and plant. In development it worked fine but in Production the first 3 invoices got the number range 00001, 00002, 00003 but fourth invoice jumped to 00100. After that no other invoice was created but I checked in table and current no. is 00199. I have not maintained any buffer. I can understand nos. jumping by 1 or 2 but 97 is a lot. Any idea why this is happening?

Regards,

Karan

Accepted Solutions (0)

Answers (4)

Answers (4)

Lakshmipathi
Active Contributor

Check this thread

G. Lakshmipathi

former_member431487
Participant
0 Kudos

I went through the links given by you guys but what I don't understand is why is system behaving in a random manner. First 3 invoices were in sequence then 00100,00200,00300,00400 and then 00401. Could it have anything to do with batchjob running to create invoice?

Regards,

Karan

Former Member

Hi Karan,

Please get your basis to check if there is any system failure e.g. failed update (SM13) during that period of occurrence .  That's likely your best bet.

Thanks

Leonard

Former Member
0 Kudos

For Further information, you can refer to SAPTechnical.COM - Skipping of numbers in the SAP Number Range object

On the other question why such a big range of jump will likely to be beyond ABAP.  There are many situation that could happen such as System Failure which cause rollback etc.  One possibility is to get the time range of investigation and get basis to advise if there is any system issue like performance or failure.  Technically speaking though, the system is not wrong since your buffer size is 100 and the number jumped did not exceeded that number.

former_member186385
Active Contributor
0 Kudos

Hi,

Can you check your Number range object in SNRO, if any

If there is no buffer maintained, you can take a look at the userexit  "USEREXIT_NUMBER_RANGE" and check any buffer parameter is maintained

regards,

santosh

former_member431487
Participant
0 Kudos

Hi Santosh,

Thanks for your quick reply.

In object RV_BELEG in SNRO buffer is maintained as 100. But this was maintained in Development also still invoice number range was coming with increment of 1 only because we have a ZTABLE in which I have defined the new no. range for our sales org and I have not maintained any buffer in this custom table.

In VOFA the number range assigned for billing type is different but system is picking number range from the ZTABLE. Only problem is the gap of 100 which I am not able to fiure out why it's happening.

I checked with ABAPer also and he said that since billing doc is already created in Production so it's not possible to debug now. But when I recreated same scenario in Development then the number range is coming fine.

Any suggestions what else could be missing?

Regards,

Karan

Former Member
0 Kudos

Hi Karan,

I would like to understand this further.  Most of the time I've seen customization of ZTABLE to determine the Number Range based on certain criteria e.g. AA for Case A, BB for Case B.


I have not seen though the use of ZTABLE to determine the Ranges and Last Number.  Perhaps you can explain the purpose of the ZTABLE to help you further.

There are different types of buffering. One is Table Buffering and the other is Number Range Buffering. I know you probably aware but just pointing it out to clarify. Your ZTABLE is not checked with any Buffering Type.  But the number range object RV_BELEG is set for Parallel Buffering and hence the number range skipped.

Thanks

Leonard

Former Member
0 Kudos

Hi,

Also check if same number range is maintained for other billing types