CREATE OR ALTER trigger ttbconsumo_requisicao_b0u_05 for tbconsumo_requisicao
active before update position 0
AS
BEGIN

    UPDATE TBCONSUMO_REQUISICAO T SET T.REQUISICAO_PAI = T.ID WHERE T.REQUISICAO_PAI IS NULL;

END;