Application Development and Automation 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: 
Read only

user exit

Former Member
0 Likes
275

hi

plse guide me how to do this:

i am generating a batch number by 1500 plants.

plant1 generates a batch its count should be 1.

plant2 generates a batch its count should be 1.

plant3 generates a batch its count should be 1.

plant4 generates a batch its count should be 1.

and so on

plant1 generates a batch its count should be 2.

plant2 generates a batch its count should be 2.

plant3 generates a batch its count should be 2.

plant4 generates a batch its count should be 2.

and so on

plant1 generates a batch its count should be 3.

and so on

i have to store this in a ztable.with locking mechnism.

plse guide me how to solve this.

many thanks

aaryaa

1 REPLY 1
Read only

christian_wohlfahrt
Active Contributor
0 Likes
242

Hi!

If you are talking about SAP batches, then there is a customizing flag, if batches are site-specific or not. Either table MCH1 (without plant) or MCHA (with plant) will then hold the master data entry.

For an internal number assignment you need then a 'current number' field for each plant. You might make this with standard number range transaction (and z-number ranges), but you can also have a look at FM NUMBER_GET_NEXT and implement something similiar.

Regards,

Christian