IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_PURRECBILLENTRY' AND KSQL_COL_NAME ='fproducttype') 
 ALTER TABLE T_IM_PURRECBILLENTRY ADD (fproducttype CHAR(1) DEFAULT ' ' NOT NULL );