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


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

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