Dear Kranthi,
Thanks a lot for your suggestion, that certainly resolved the issue.
However I have a additional Issue
I have these custom fields on the Sales A tab , they retain values after the user saves the sales order and does not go out of VA01.
1. So I tried to clear them as soon as user hit Click to Copy Values in the script above, but the problem, is user says they would still like to see them if they go to Sales A tab again.
2. So I tried to clear them using a separate script and put that script on screen events - onLoad or onAfterRefresh and onBeforeRefresh , but it gets called everytime.
Is there an event which only gets called just once - so that I can clear the values just the first time when transaction starts and not everytime I go to Sales A tab.?
Or may be there is any other creative way of doing this?