/**Begin D:\PDM_UPGRADE\PDM1\MRP_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_PUR_FCTENTRY' AND KSQL_COL_NAME ='FSUPPLIER')
 ALTER TABLE T_MRP_PUR_FCTENTRY ADD (FSUPPLIER BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_PUR_FCTENTRY' AND KSQL_COL_NAME ='FORG')
 ALTER TABLE T_MRP_PUR_FCTENTRY ADD (FORG BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_PUR_FCTENTRY' AND KSQL_COL_NAME ='FPURORG')
 ALTER TABLE T_MRP_PUR_FCTENTRY ADD (FPURORG BIGINT DEFAULT 0 NOT NULL );
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_PUR_FCTDATA' AND KSQL_COL_NAME ='FSUMDIM')
 ALTER TABLE T_MRP_PUR_FCTDATA ADD (FSUMDIM NVARCHAR(30) DEFAULT ' ' NOT NULL );

/**End D:\PDM_UPGRADE\PDM1\MRP_table.sql **/
