Using the evtCancNFe_v9.99 Cancellation Schema

To use the evtCancNFe_v9.99 schema, you must:

  • Verify that a next numbering scheme is set up for cancelled NFe lots.

  • Set a processing options in the NF-e Response Process and Contingencies program (P76B12TE) to specify whether to generate the XML according to the evtCancNFe_v9.99 schema, and to specify the maximum number of NFes to include in a lot of cancelled NFes.

    The maximum number of NFes allowed by the government is 20.

  • Set a processing option in the Unused/Cancelled NF-e Numbers program (P76B22TE) to specify the acceptable time lapse between the approval and the cancellation.

    The government requirements for evtCancNFe_v9.99 schema also state that you can void NFes only in the first 24 hours after you receive approval from the government for the NFe.

  • Set processing options in the NF-e Transmission program (P76B0021) to specify whether to generate the XML according to the evtCancNFe_v9.99 schema, which federation unit to write to the output file, and the name of the layout to write to the output file.

When you generate the XML file using the evtCancNFe_v9.99 schema, the system runs the Cancelled NFes by Lot XML Generator program (R76B524).

Note: The evtCancNFe_v9.99 schema includes several sub-schemas. You specify the versions of the additional schemas in the processing options of the Cancelled NFes by Lot XML Generator program.