/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\MRP_table.sql **/

 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_mrp_grossdemand_define_l' AND KSQL_COL_NAME ='fmrpsupplytype') 
 ALTER TABLE t_mrp_grossdemand_define_l ADD (fmrpsupplytype NVARCHAR(50) DEFAULT ' ' NOT NULL );
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_mrp_grossdemand_define_l' AND KSQL_COL_NAME ='fsupplysluggishtype') 
 ALTER TABLE t_mrp_grossdemand_define_l ADD (fsupplysluggishtype NVARCHAR(50) DEFAULT ' ' NOT NULL );
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_mrp_grossdemand_define_l' AND KSQL_COL_NAME ='fsafetystock') 
 ALTER TABLE t_mrp_grossdemand_define_l ADD (fsafetystock NVARCHAR(50) DEFAULT ' ' NOT NULL );

/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\MRP_table.sql **/
