Hi Mahesh,
Refnumber is needed for all the other methods. Only for the 'SAVE' its not needed. Can you copy the part where you are declaring the methods.
First give the refnumber for the HEADER CREATE method, and keep it blank for SAVE. This refnumber is a numeric field , so you can directly declare the value as 1 in place of '000001'.
Try that.
Regards
Ashish