CREATE OR REPLACE TRIGGER INSERT_TMPITEMAUTFDEL
AFTER DELETE ON ITEMAUTF FOR EACH ROW
DECLARE
BEGIN
   IF DELETING THEN
      INSERT INTO TMP_ITEMAUTFDEL (NRITEMAUTFDEL,
                                   CDFILDEST,
                                   CDFILLANC,
                                   NRAUTOFORN,
                                   CDMARCA,
                                   CDPRODUTO,
                                   DTPROGENTAF,
                                   QTPROGENTAF,
                                   VRPREUNIAF)
                           VALUES (SEQ_TMPITEMAUTFDEL.NEXTVAL, 
                                   :OLD.CDFILDEST,
                                   :OLD.CDFILLANC,
                                   :OLD.NRAUTOFORN,
                                   :OLD.CDMARCA,
                                   :OLD.CDPRODUTO,
                                   :OLD.DTPROGENTAF,
                                   :OLD.QTPROGENTAF,
                                   :OLD.VRPREUNIAF);
   END IF;
END;