Thanks for the response Naresh. But i have a method for the dialog box to open.
public Object dialog()
DialogRunbase dialog = super();
dialogFromNegInstNum = dialog.addFieldValue(typeid(BankChequeStartNum), fromNegInstNum, “@SYS4083”);
dialogNumOfNegInst = dialog.addFieldValue(typeid(BankChequeQty), numOfNegInst, “@SYS14578”);
On the above method there is a field called BankChequeStartNum .This field is responsible for adding the string ‘000003’ but i kept a break point on the above line but i could see that it takes the value as 3 instead of ‘000003’.So the methods itself elminates the 0’s so it saves in the table without 0’s/