IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_pom_xmftorderentry_e' AND KSQL_COL_NAME ='freportqty') 
 ALTER TABLE t_pom_xmftorderentry_e ADD (freportqty DECIMAL(23,10) DEFAULT 0 NOT NULL);
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_pom_xmftorderentry_e' AND KSQL_COL_NAME ='fworkwasteqty') 
 ALTER TABLE t_pom_xmftorderentry_e ADD (fworkwasteqty DECIMAL(23,10) DEFAULT 0 NOT NULL);
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_pom_xmftorderentry_e' AND KSQL_COL_NAME ='fmtlcostqty') 
 ALTER TABLE t_pom_xmftorderentry_e ADD (fmtlcostqty DECIMAL(23,10) DEFAULT 0 NOT NULL);
 
 
 
