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


Former Member
0 Kudos


I' am working on the functionality to modify the partner addresses while creating the sales documents.

To update the addresses, we need the document number, which is not available since the document is not yet created. I tried using function module NUMBER_GET_NEXT, but when it does provide the following free number, it also blocks it, so when we create the document, we get the next one (e.g. we get document number 1 with the function, and then we create document with number 2).

Do you know any function to obtain the doc number without blocking it?


Best regards


Former Member
0 Kudos

I'm not sure it is blocking the number! It is getting the next number which is stored in the table NRIV

For example here is the data of the range RP_PREL

040	RP_PREL		01	0000	00000001	00099999		X
040	RP_PREL		02	0000	90000001	99999999	

When you create the document you get the next one after the you returned by the function module...

One solution would be to get the next number from the table NRIV and then create the document!

Or why don't you update after the creation of the document!

Thank you for the reward