IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_RESCONFCOOR' AND KSQL_COL_NAME ='FTOOLNEEDRES') 
 ALTER TABLE T_MRP_RESCONFCOOR ADD (FTOOLNEEDRES BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_RESCOORENTRY' AND KSQL_COL_NAME ='FSUPPYSTYPE') 
 ALTER TABLE T_MRP_RESCOORENTRY ADD (FSUPPYSTYPE NVARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_RESCOORENTRY' AND KSQL_COL_NAME ='FRESULT') 
 ALTER TABLE T_MRP_RESCOORENTRY ADD (FRESULT CHAR(1) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_RESCOORENTRY' AND KSQL_COL_NAME ='FCARDNO') 
 ALTER TABLE T_MRP_RESCOORENTRY ADD (FCARDNO BIGINT DEFAULT 0 NOT NULL );