Openbravo's DB Source Manager does not support return type "RECORD" You can find out more about the return types which openbravo supports click here.
You can write your own HQL functions using DAL instead of writing any new functions that is specific to either postgreSQL or Oracle.