‎2006 Mar 20 4:25 AM
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
‎2006 Apr 02 10:04 AM
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