Hi Naveen,
I am not having the working code with me all my codes and other stuff got deleted at the time of my relieving.
I think the problem is not with the above code, I am having a suspect can u check it. First see what Task Id's are getting in to the BO from the Work Order raising screen. Then see whether each task is getting correctly saved or not or the new task is updating the entire old tasks id's. If this happens then take care that each and every task is correctly saved and then from their they are retrieved correctly and Po is getting created or not.
if possible and no problem can you send entire code what u r trying to do for PO creation. I will have a look at it and even I am looking for the design how u r approaching to create a PO so that I can have some guess where it is going in wrong direction. Thanks
Regards..
Hanu K