IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_INSTOCK' AND KSQL_COL_NAME IN ('FBUSINESSDIRECT')) 
 ALTER TABLE T_PUR_INSTOCK ADD (FBUSINESSDIRECT VARCHAR(50) DEFAULT 'normal' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_IMINVENTORY' AND KSQL_COL_NAME IN ('FBASICUNITID')) 
 ALTER TABLE T_PUR_IMINVENTORY ADD (FBASICUNITID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_IMINVENTORY' AND KSQL_COL_NAME IN ('FBASICQTY')) 
 ALTER TABLE T_PUR_IMINVENTORY ADD (FBASICQTY DECIMAL(23,10) DEFAULT 0 NOT NULL );