Understanding the Process Flow to Set Up and Manage Automatic Processing of XML Transmission Responses
To set up and manage automatic processing of XML transmission responses:
Set up the folders for the source, target, and working XML files.
You must set up folders for the XML response files that you receive from SEFAZ (source folder), a folder for the XML response files that the system has processed (target folder), and a working folder for in-process XML response files.
Set up the versions of the NFe Info Generation program (R76B561) that you will specify in the processing options for the NFe XML Response Processing program (R76B525).
Set the processing options for the NFe XML Response Processing program.
See Setting Processing Options for NFe XML Response Processing (R76B525)
Run a version of the NFe Info Generation program to generate the XML file to submit.
You run a different version of the NFe Info Generation program to generate the different XML files types - enviNFe, cancNFe, inutNFe, envDPEC, or retEnvEvento.
Use the transmission software to transmit the XML file to SEFAZ.
Use the transmission software to receive the XML response file from SEFAZ.
Save the response XML file to the source folder.
You might manually save the response file to this folder, or have the transmission software automatically save it to the source folder.
Run the NFe XML Response Processing program to process the response XML file.
This program:
Retrieves the response XML file from the source folder.
Processes the data in the file.
Updates the appropriate tables.
Moves the processed XML file to the target folder.
Releases the sales order (prints DANF-e document) if the processing option is set to do so.