IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_EXPENSEDETAIL_A' AND KSQL_COL_NAME ='FWHITEML') 
 ALTER TABLE T_ER_EXPENSEDETAIL_A ADD (FWHITEML INT DEFAULT 0 NOT NULL );
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_EXPENSEDETAIL_A' AND KSQL_COL_NAME ='FREDML') 
 ALTER TABLE T_ER_EXPENSEDETAIL_A ADD (FREDML INT DEFAULT 0 NOT NULL );
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_EXPENSEDETAIL_A' AND KSQL_COL_NAME ='FOTHERCONTROLAMT') 
 ALTER TABLE T_ER_EXPENSEDETAIL_A ADD (FOTHERCONTROLAMT DECIMAL(23,10) DEFAULT 0 NOT NULL );
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_EXPENSEDETAIL_A' AND KSQL_COL_NAME ='FWINEWAY') 
 ALTER TABLE T_ER_EXPENSEDETAIL_A ADD (FWINEWAY NVARCHAR(10) DEFAULT ' ' NOT NULL );