IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_INVTYPEENTRY' AND KSQL_COL_NAME ='FOWNERTYPE1') 
 ALTER TABLE T_IM_INVTYPEENTRY ADD (FOWNERTYPE1 NVARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_INVTYPEENTRY' AND KSQL_COL_NAME ='FKEEPERTYPE1') 
 ALTER TABLE T_IM_INVTYPEENTRY ADD (FKEEPERTYPE1 NVARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_OUTINVTYPEENTRY' AND KSQL_COL_NAME ='FOUTOWNERTYPE1') 
 ALTER TABLE T_IM_OUTINVTYPEENTRY ADD (FOUTOWNERTYPE1 NVARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_OUTINVTYPEENTRY' AND KSQL_COL_NAME ='FOUTKEEPERTYPE1') 
 ALTER TABLE T_IM_OUTINVTYPEENTRY ADD (FOUTKEEPERTYPE1 NVARCHAR(30) DEFAULT ' ' NOT NULL );