ERRBUF and RETCODE in ORACLE APPS CONCURRENT PROGRAMS .
Para saída do concurrent em vermelho ou amarelo.
RETCODE: Este parâmetro retorna o estatus do programa.
0- Sucesso –Completo
1- Atenção — Amarelo
2- Erro — Vermelho
0- Sucesso –Completo
1- Atenção — Amarelo
2- Erro — Vermelho
Exemplo
Create procedure concurren1(ERRBUF out varchar2, RETCODE out varchar2, v_order_id in varchar2)
as
begin…
…
begin
..
exception
when no_data_found then
retcode := 1;
errbuf:= ‘No data found for this query’;
end;
…
…
…
retcode:= 0;
commit;
exception
when others then
retcode := 2;
errbuf:= ‘Unexpected Error ‘||SQLERRM;
end;