Thanks Ashwin for the detail explanation.
Even for me it is working, when i set as etag, but I got confused, if i want to edit the same document number from GUI, how i need to restrict, am still not able to find the solution for this.
Anyway thanks for every one.
Please post your inputs, if you face these kind of issues.
Thanks & Regards,
Vijay V