CREATE OR REPLACE TRIGGER USR_ATU_EMPRCNTRFIL_SAP_ME
BEFORE INSERT OR UPDATE OF CDEMPRESA, CDINSCESTA, CDINSCMUNI, CDSERIE
   ON EMPRCNTRFIL FOR EACH ROW
DECLARE
  V_OWNER    VARCHAR2(100);
  V_NAME     VARCHAR2(100);
  V_LINENO   NUMBER;
  V_CALLER_T VARCHAR2(100);
BEGIN
   OWA_UTIL.WHO_CALLED_ME(V_OWNER, V_NAME, V_LINENO, V_CALLER_T);
   IF TRIM(V_NAME) <> 'USR_EXP_SAP_ME_ENDERECO' THEN
      :NEW.USR_IDINTEGRAMESAP := 'S';
   END IF;
END;
/

-- VERSAO --
BEGIN ATUVEROBJ('USR_ATU_EMPRCNTRFIL_SAP_ME','6.02.XXX'); END;
/