IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_CPS_DETAILENTRY' AND KSQL_COL_NAME ='FSUPCONFIGCODE') 
 ALTER TABLE T_MRP_CPS_DETAILENTRY ADD (FSUPCONFIGCODE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_CPS_DETAILENTRY' AND KSQL_COL_NAME ='FSUPMATERIALATTR') 
 ALTER TABLE T_MRP_CPS_DETAILENTRY ADD (FSUPMATERIALATTR NVARCHAR(50) DEFAULT ' ' NOT NULL );