IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_PRODUCTINBILL' AND KSQL_COL_NAME ='FUNITSRCTYPE')
 ALTER TABLE T_IM_PRODUCTINBILL ADD (FUNITSRCTYPE VARCHAR(30) DEFAULT 'NULL' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_OTHERINBILL' AND KSQL_COL_NAME ='FUNITSRCTYPE')
 ALTER TABLE T_IM_OTHERINBILL ADD (FUNITSRCTYPE VARCHAR(30) DEFAULT 'NULL' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MREQBILL' AND KSQL_COL_NAME ='FUNITSRCTYPE')
 ALTER TABLE T_IM_MREQBILL ADD (FUNITSRCTYPE VARCHAR(30) DEFAULT 'NULL' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MREQOUTBILL' AND KSQL_COL_NAME ='FUNITSRCTYPE')
 ALTER TABLE T_IM_MREQOUTBILL ADD (FUNITSRCTYPE VARCHAR(30) DEFAULT 'NULL' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_OTHEROUTBILL' AND KSQL_COL_NAME ='FUNITSRCTYPE')
 ALTER TABLE T_IM_OTHEROUTBILL ADD (FUNITSRCTYPE VARCHAR(30) DEFAULT 'NULL' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_TRANSAPPLY' AND KSQL_COL_NAME ='FUNITSRCTYPE')
 ALTER TABLE T_IM_TRANSAPPLY ADD (FUNITSRCTYPE VARCHAR(30) DEFAULT 'NULL' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_TRANSINBILL' AND KSQL_COL_NAME ='FUNITSRCTYPE')
 ALTER TABLE T_IM_TRANSINBILL ADD (FUNITSRCTYPE VARCHAR(30) DEFAULT 'NULL' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_TRANSOUTBILL' AND KSQL_COL_NAME ='FUNITSRCTYPE')
 ALTER TABLE T_IM_TRANSOUTBILL ADD (FUNITSRCTYPE VARCHAR(30) DEFAULT 'NULL' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_LOCATIONTRANSFER' AND KSQL_COL_NAME ='FUNITSRCTYPE')
 ALTER TABLE T_IM_LOCATIONTRANSFER ADD (FUNITSRCTYPE VARCHAR(30) DEFAULT 'NULL' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_ADJUSTBILL' AND KSQL_COL_NAME ='FUNITSRCTYPE')
 ALTER TABLE T_IM_ADJUSTBILL ADD (FUNITSRCTYPE VARCHAR(30) DEFAULT 'NULL' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_ASSEMBBILL' AND KSQL_COL_NAME ='FUNITSRCTYPE')
 ALTER TABLE T_IM_ASSEMBBILL ADD (FUNITSRCTYPE VARCHAR(30) DEFAULT 'NULL' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_DISASSEMBLEBILL' AND KSQL_COL_NAME ='FUNITSRCTYPE')
 ALTER TABLE T_IM_DISASSEMBLEBILL ADD (FUNITSRCTYPE VARCHAR(30) DEFAULT 'NULL' NOT NULL );


