Thanks for ur Quick reply Elzkie ..
I am doing this for Inbound Delivery .
Checked given 2 links and I have done the changes as suggested by Senthil and Colm. But still it is not creating batches . Can you please suggest me If I am missing anything .
Thanks ,
Sandeep M