 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_CALCDETAIL' AND KSQL_COL_NAME ='FPLANTYPE') 
 ALTER TABLE T_MRP_CALCDETAIL ADD (FPLANTYPE NVARCHAR(50) DEFAULT ' ' NOT NULL );

 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_CALCDETAIL' AND KSQL_COL_NAME ='FPLANVALUE') 
 ALTER TABLE T_MRP_CALCDETAIL ADD (FPLANVALUE BIGINT DEFAULT 0 NOT NULL);