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: 

Duplicate batch number allocation for prodction order

Former Member
0 Kudos

Hi friend,

When production order is created a new batch is allocated to it automatically(We have maintained external number range for batch number).

But the problem is occuring when we are creating two prodction at same time. Both of the Production Order getting same batch number.

How to prevent allocating same number for both the production order ?

Regards,

Amit R

1 ACCEPTED SOLUTION

christian_wohlfahrt
Active Contributor
0 Kudos

Hi Amit!

Wouldn't you use an <i>internal</i> number range? Then the numbers would be picked out of a number pool and duplicates can't happen any longer (like the document number creation for all the SAP-documents).

Sounds like you have a user-exit for the number definition. Maybe here a number range should be used to get this feature, too.

Regards,

Christian

2 REPLIES 2

christian_wohlfahrt
Active Contributor
0 Kudos

Hi Amit!

Wouldn't you use an <i>internal</i> number range? Then the numbers would be picked out of a number pool and duplicates can't happen any longer (like the document number creation for all the SAP-documents).

Sounds like you have a user-exit for the number definition. Maybe here a number range should be used to get this feature, too.

Regards,

Christian

0 Kudos

Hi Christian,

I managed to solve it with the help of user exits and table lock funcationality.

Regards,

Amit