IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_PLANORDERENTRY' AND KSQL_COL_NAME ='FLEADTIME') 
 ALTER TABLE T_MRP_PLANORDERENTRY ADD (FLEADTIME INT DEFAULT 0 NOT NULL);

 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_PLANORDERENTRY' AND KSQL_COL_NAME ='FWASTAGERATEFORMULA') 
 ALTER TABLE T_MRP_PLANORDERENTRY ADD (FWASTAGERATEFORMULA NVARCHAR(30) DEFAULT ' ' NOT NULL);
