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.
cancel
Showing results for 
Search instead for 
Did you mean: 

NUMBER_GET_NEXT

Former Member
0 Kudos
94

Hi,

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?

Thanks

Best regards

1 REPLY 1

Former Member
0 Kudos
39

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

Steph