SAP Knowledge Base Article - Preview

2184726 - KBA [3.10] How to test the EPEC functionality [VIDEO]


The Brazilian tax authority (SEFAZ) published a new Technical Note (NT2014/001) which introduces the EPEC functionality to the Nota Fiscal Eletronica solution. EPEC is the abbreviation of 'Evento Previo de Emissao de Contingencia', in English 'Event Prior to Contingency'.

To implement the EPEC event in the NF-e solution, access the SAP Note 2152098 and 2186929. In the first SAP Note you will find in the attachments the documentation to use this functionality.

The EPEC event can be used when the company faces communication problems with SEFAZ's systems. This can be, communication issues using the SVC mode when the company tries to send a NF-e for approval, for example.

When you use the EPEC event, the NF-e solution generates an NF-e with tpEmis field value equal to '4'. You also have to inform the reason for switching to the contingency mode, the starting date and time of when the contingency mode has been activated, and also the number that is different of any other NF-e that has been sent to SEFAZ with other value in the field tpEmis.

During the EPEC event process, an XML file us created via EPEC containing basic information, such as:

  • UF, CNPJ and IE of the issuing company
  • Access Key, UF, CNPJ or CPF of the destination company
  • Total amount of the NF-e
  • Total amount of ICMS tax
  • Total amount of the ICMS-ST

Once you have sent the XML with the basic information to SEFAZ, you can print the DANFE which must contain the information in Portuguese 'DANFE impresso em contingencia - DPEC regularmente recebida pela Receita Federal do Brasil'.

Once the communication with SEFAZ's system is reestablished, you have to send the original NF-e document to SEFAZ, taking into account the deadline date and informing the same Access Key of the previous document sent for the EPEC event.

In case, you use the SAP NF-e (GRC) solution, make sure that the SP21 is installed in your system. The EPEC solution is delivered to SAP_APPL releases 605 (SAPKH60501) onwards. The documentation of EPEC event is attached in SAP Note 2152098.

To perform tests to issue NF-es with tpEmis with '4' (EPEC) without making any changes in PI/XI system, implement the report Z_SIMULATE_EPEC that is attached in this SAP KBA.



SAP NFE 10.0 - GRC


SAP ERP all versions ; SAP Electronic Invoicing for Brazil 10.0 (SAP Nota Fiscal Eletronica 10.0)


SAP GRC, Nota Fiscal Electronica, Evento Prévio de Entrada em Contingência, NF-e, 3.10 , KBA , gscbrazil_video , SLL-NFE , Nota Fiscal Electronica (NFe) , FI-LOC-NFE-BR-OUT , Outbound , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.