Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

NumberRange

Former Member
0 Likes
399

Hi all..

Again doubts..

In the case of number ranges there is a buffering system..

but i had read that for financial documents this buffering should not be done..

Is there any particular reason for that?

Then next doubt is about the function module number_get_next ... how does this function module know the numbers which are free...

please help me out...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
362

Hi

Yes!

If Buffering system is setted for a numeric range, the system saves a some numbers in the memory and use these numbers.

For example if last number is 10 and 10 number are buffered, the system'll save in memory the numbers fro 11 to 20, and use'll these number to create new document. When the last number of the buffer is used, the system'll load other 10 numbers.

But in this way if there's a crash of the system it can risk to burn the numbers of the buffer and create some discontinuities in the numeration of the documents.

This situasion doesn't have to occurs for FI document, you always make sure not to have discontinuities in the numeration of FI document.

So if this case the buffering system shouldn't be used.

Max

2 REPLIES 2
Read only

Former Member
0 Likes
362

Hi Simy,

1. Bufferring is used to speed up processing. However in the case of financial documents being generated, it might so happen that there will be a duplication in the number generated due to buffering, system performance or lock issues.

2. Number_get_Next gets the last existing number generated for that object and adds 1 to it.

eg:

call function 'NUMBER_GET_NEXT'

exporting

nr_range_nr = '01'

object = 'ZFORMLA'

importing

number = wsl_nextnumber

exceptions

interval_not_found = 1

number_range_not_intern = 2

object_not_found = 3

quantity_is_0 = 4

quantity_is_not_1 = 5

interval_overflow = 6

buffer_overflow = 7

others = 8.

Regards.

Message was edited by: Biju Varughese

Read only

Former Member
0 Likes
363

Hi

Yes!

If Buffering system is setted for a numeric range, the system saves a some numbers in the memory and use these numbers.

For example if last number is 10 and 10 number are buffered, the system'll save in memory the numbers fro 11 to 20, and use'll these number to create new document. When the last number of the buffer is used, the system'll load other 10 numbers.

But in this way if there's a crash of the system it can risk to burn the numbers of the buffer and create some discontinuities in the numeration of the documents.

This situasion doesn't have to occurs for FI document, you always make sure not to have discontinuities in the numeration of FI document.

So if this case the buffering system shouldn't be used.

Max