Understanding How to Automatically Process XML Transmission Responses

When you receive the XML transmission response from SEFAZ, you must update the records in your JD Edwards EnterpriseOne system to reflect the status of the transmission. You use the NFe XML Response Processing program to automatically process the XML transmission response that you receive from SEFAZ via the transmission software that you use.

This illustration shows the user and system steps for automatically processing the XML response file:

Process Flow for Automatically Processing XML Responses

When you automatically process XML responses:

  1. Run the NFe XML Response Processing program from the NF-e Response Process and Contingencies or NF-e Unused/Cancelled Legal Numbers program.

    Alternatively, you can run the NFe XML Response Processing program from a menu option or set up a subsystem job to run the program.

  2. The NFe XML Response Processing program looks for unprocessed XML transmission response files in the source folder that is specified in a processing option.

  3. If an unprocessed file exists in the source folder, the process retrieves and parses the structure based on the corresponding schema for the response type (retConsReciNFe, retInutNFe, retCancNFe, retDPEC, retEnvEvento).

  4. The program updates these tables:

    • NFe Status Log (F76B12TE)

    • Unused/Cancelled NF-e Legal Numbers (F76B22TE)

    • Nota Fiscal Detail (F761B)

    • Sales Order Detail (F4211)

  5. The program prints the DANF-e if a processing option is set to enable the printing of the form.

  6. The program moves the processed XML transaction response file to the target folder that is specified in a processing option.