IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_INVOICENTRY2_A' AND KSQL_COL_NAME IN ('FENTRYPAYTYPE')) 
 ALTER TABLE T_PUR_INVOICENTRY2_A ADD (FENTRYPAYTYPE CHAR(1) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_CHECKENTRY2' AND KSQL_COL_NAME IN ('FBUSINESSTYPEID')) 
 ALTER TABLE T_PUR_CHECKENTRY2 ADD (FBUSINESSTYPEID BIGINT DEFAULT 0 NOT NULL );