‎2006 Oct 18 9:32 AM
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...
‎2006 Oct 18 9:43 AM
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
‎2006 Oct 18 9:41 AM
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
‎2006 Oct 18 9:43 AM
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