Actually i was doing this as i am having an error as follows
"cannot edit a record in purchase orders purchtable .the record has never been selected "
So i thought this updating must provide a solution but it also failed…
So if you have a solution for the above problem ,please do reply me.