Thanks basu da,
Can you put some idea on the logic. I thought of picking something from material number and go ahead. But the numbers will repeat somehow which will then not serve the purpose.
I believe someone might have surely got this requirement somewhere to serialize batch number for every material.