Skip to Content
0
Former Member
Apr 15, 2010 at 09:52 PM

Use of FM 'NUMBER_GET_NEXT' and table NRIV

1934 Views

Hi all,

I have a quer regarding use of FM "'NUMBER_GET_NEXT' ".

I need to get the avaibale number for a particular object whose number range i know.Now when i pass the object details and Number range to this FM,it gives me the current available no vaue something like "00000000001000000203".

Now whe i query table NRIV for the same object and number range,I get the value in the field "Number Status" as "1000000249".

In SNRO,I can see the "No. of numbers in buffer" set to "50" for this object.

My question is : Why is the current availabe no value as per the FM o/p and the Table not the same???Is it because of the no of buffers value set in tcode SNRO for the Number raneg object?

Also my requirement is to get the next availabel no for the Object in my custom program.Now which method shoudl i follow??use FM or query the table?

Please advise.

Thanks.