/**Begin D:\PDM_UPGRADE\PDM1\MRP_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_PUR_FCTDATA' AND KSQL_COL_NAME ='FDATASET')
 ALTER TABLE T_MRP_PUR_FCTDATA ADD (FDATASET 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 ='FPLANSTARTDATE') 
 ALTER TABLE T_MRP_PUR_FCTDATA ADD (FPLANSTARTDATE DATETIME);

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