IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_CPS_DETAILENTRY' AND KSQL_COL_NAME ='FDEMANDWAREHOUSE') 
 ALTER TABLE T_MRP_CPS_DETAILENTRY ADD (FDEMANDWAREHOUSE 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 ='FDEMANDPLANSCOPE') 
 ALTER TABLE T_MRP_CPS_DETAILENTRY ADD (FDEMANDPLANSCOPE 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 ='FSUPPLYPLANSCOPE') 
 ALTER TABLE T_MRP_CPS_DETAILENTRY ADD (FSUPPLYPLANSCOPE BIGINT DEFAULT 0 NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_CPS_SHORT_DETAIL' AND KSQL_COL_NAME ='FDEMANDWAREHOUSE') 
 ALTER TABLE T_MRP_CPS_SHORT_DETAIL ADD (FDEMANDWAREHOUSE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_CPS_SHORT_DETAIL' AND KSQL_COL_NAME ='FDEMANDPLANSCOPE') 
 ALTER TABLE T_MRP_CPS_SHORT_DETAIL ADD (FDEMANDPLANSCOPE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_CPS_SHORT_DETAIL' AND KSQL_COL_NAME ='FSUPPLYPLANSCOPE') 
 ALTER TABLE T_MRP_CPS_SHORT_DETAIL ADD (FSUPPLYPLANSCOPE BIGINT DEFAULT 0 NOT NULL );