This is my coding function compFormula return char is: begin return mssgeneral.companyname || ' - Goods Received Note From ' || to_char (:grndate1, 'dd/mm/rrrr') || ' to ' || to_char (:grndate2, 'dd/mm/rrrr'); end; But I sill get a error 307 after compilation. I can't find the error. Please help me.