IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMWRIOFFDET' AND KSQL_COL_NAME ='FSOURCEENTRYID')
 ALTER TABLE T_ER_PUBREIMWRIOFFDET ADD (FSOURCEENTRYID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMWRIOFFDET' AND KSQL_COL_NAME ='FSOURCEBILLID')
 ALTER TABLE T_ER_PUBREIMWRIOFFDET ADD (FSOURCEBILLID VARCHAR(100) DEFAULT ' ' NOT NULL );
