Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Distribuição (lista) & Download XML NF-e

Bom dia.

Estou tentando entender o funcionamento do serviço de distribuição.


De acordo com a nota a abaixo, ao rodar o programa /XNFE/COLLECT_DOCUMENTS vai baixar a lista e consequentemente criar o evento Conhecimento da operação. E na próxima vez que rodar o programa /XNFE/COLLECT_DOCUMENTS vai baixar o XML automaticamente.


Ou seja, o serviço deveria baixar todos os XMLs então?


2131912 - KBA [3.10] Best practices for new distribution webservice of NF-e

For the Preprocess of NF-e Summary, there are three new steps (you can check the documentation for further details):

  1. GRC will create an entry in the header table with this summarized information that SEFAZ sends in the first time.
  2. Some validations are done.
  3. The event of Operation Acknowledgement is sent to SEFAZ.

If this event is authorized, then this preprocessing will be set to completed. Then, on the next time program /XNFE/COLLECT_DOCUMENTS runs, SEFAZ should return the complete XML file for those NF-es in which the operation acknowledgement event is authorized, and the process will be then redetermined, and the same happens when receiving this via B2B. If the XML file is received via B2B in the meantime, the first one will be processed and the other one will be ignored.

At.,

Bernardo Braga

Not what you were looking for? View more on this topic or Ask a question