SAPBR Technologies home

SAP in Brazil, explained

Archiving of Nota Fiscal / NFe Archiving

This post assumes you know what data archiving is.

SAP provides tools to archive notas fiscais, and each company sets its own strategy. Documents must stay available for 5 years, but you can archive documents younger than that and still have them available.

Archived documents

Archiving removes data from the database, not from the application. You can still:

  • Read a single archived object, such as one nota fiscal
  • Analyze an archive file sequentially
  • Reload data into the database (not possible for every archiving object)

Archiving an NF-e in SAP also archives its related data, such as events and history.

ECC

Archiving object J_1BNF archives these tables:

TableDescription
J_1BNFCPDNota fiscal one-time accounts
J_1BNFDOCNota fiscal header
J_1BNFFTXNota fiscal header message
J_1BNFLINNota fiscal line items
J_1BNFNADNota fiscal partners
J_1BNFREFNota fiscal reference to header message
J_1BNFSTXNota fiscal tax per item
J_1BNFE_ACTIVEElectronic nota fiscal: actual status
J_1BNFE_HISTORYElectronic nota fiscal: history
J_1BNFE_INVALIDElectronic nota fiscal: invalid status actions
J_1BNFE_EVENTNF-e events
J_1BNFE_CCENF-e CC-e (correction letter)
J_1BNFIMPORT_DINota fiscal data for import documents
J_1BNFIMPORT_ADINota fiscal data for additions to import documents
J_1BCTE_D_DOCREFReference to the NF-e being transported
J_1BCTE_D_RESResource information
J_1BNFTRANSVOLTransported volumes
J_1BNFTRAILERTrailer information
J_1BNFTRADENOTESHeader screen fields: trade notes
J_1BNFADD_INFOFree fields for additional information
J_1BNFREFPROCAdditional information: referenced processes
J_1BNFSUGARSUPPLDaily supply of sugarcane
J_1BNFSUGARDEDUCTaxes and contributions on sugarcane
J_1BNFVEHICLEVehicle details
J_1BNFPHARMACEUTMedicines and pharmaceutical raw materials
J_1BNFFUELFuel details

To archive, go to SAP Easy Access > Tools > Administration > Administration > Data Archiving (transaction SARA) and enter object J_1BNF. From there you can archive, delete and reload fiscal documents.

GRC

Object in NF-eArchiving objectMonitor
NF-e outbound, layout 2.00/XNFE/NFENF-e 2.00: monitor for archived outbound NF-es
NF-e outbound, layout 3.10+/XNFE/ONFEMonitor for archived outbound NF-es
NF-e batch, layout 2.00/XNFE/BATDisplay via archiving transactions
NF-e batch, layout 3.10+/XNFE/BATCDisplay via archiving transactions
NF-e inbound/XNFE/INNFNF-e Fiscal Workplace for archived NF-es
CT-e outbound/XNFE/CTECT-e monitor for archived CT-es
CT-e batch/XNFE/BATCDisplay via archiving transactions
CT-e inbound/XNFE/INCTCT-e Fiscal Workplace for archived CT-es
Event batch/XNFE/BATCDisplay via archiving transactions
MDF-e outbound/XNFE/MDFEMonitor for archived outbound MDF-es
MDF-e batch/XNFE/BATCDisplay via archiving transactions

Events have no archiving object of their own; they’re archived with their main object (NF-e, CT-e or MDF-e), using archiving class /XNFE/EVENT.

Comments

Leave a Reply