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: 

How to find the Next Doc Number?

Former Member
0 Kudos

I will automate the creation of "picking" in deliveries in an interface. Usually the picking is created on the delivery manually, and SAP assigns that picking document the next number.

How can I get the next number when I create picking in the interface?

I need this as a parameter in SD_DOCUMENT_UPDATE_PICKING, it asks for the subsequent doc number. I can put anything in there, but want to create the new Picking Doc number just like the system would do it.

Thank-You

1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor
0 Kudos

In transaction SNRO the number range object will be maintained, table NRIV

get the object and use fm number_get_next to get the next number

3 REPLIES 3

kesavadas_thekkillath
Active Contributor
0 Kudos

In transaction SNRO the number range object will be maintained, table NRIV

get the object and use fm number_get_next to get the next number

Former Member
0 Kudos

Hi,

\Find the number range object SAP use for picking and pass it to FM NUMBER_GET_NEXT to generate number

Former Member
0 Kudos

Refer to table NRIV.

Regards

Vinod