Hello

I'm trying to do a function that generate CRUD functions for a table that is passed as a parameter

via EXECUTE QueryString

my variable looks like this

QUERYCREATE = 'CREATE OR REPLACE FUNCTION incidencia.sp_mant_haburbana_actualizar(IN p_idhaburba character varying, IN p_grupurba character varying, IN p_tipohaburba character varying, IN p_nombhaburba character varying, IN p_codihaburba character varying, IN p_idubigeo character varying)
RETURNS TABLE(_error integer, _mensaje character varying) AS
$BODY$
.
.
.
.
.
';

But when i press F5 to update de function, it tells me Syntax error in the key word "BODY" and not allow me to generate my function, anybody know how to solve this please?,

thanks in advance