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.

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:
| Table | Description |
|---|---|
| J_1BNFCPD | Nota fiscal one-time accounts |
| J_1BNFDOC | Nota fiscal header |
| J_1BNFFTX | Nota fiscal header message |
| J_1BNFLIN | Nota fiscal line items |
| J_1BNFNAD | Nota fiscal partners |
| J_1BNFREF | Nota fiscal reference to header message |
| J_1BNFSTX | Nota fiscal tax per item |
| J_1BNFE_ACTIVE | Electronic nota fiscal: actual status |
| J_1BNFE_HISTORY | Electronic nota fiscal: history |
| J_1BNFE_INVALID | Electronic nota fiscal: invalid status actions |
| J_1BNFE_EVENT | NF-e events |
| J_1BNFE_CCE | NF-e CC-e (correction letter) |
| J_1BNFIMPORT_DI | Nota fiscal data for import documents |
| J_1BNFIMPORT_ADI | Nota fiscal data for additions to import documents |
| J_1BCTE_D_DOCREF | Reference to the NF-e being transported |
| J_1BCTE_D_RES | Resource information |
| J_1BNFTRANSVOL | Transported volumes |
| J_1BNFTRAILER | Trailer information |
| J_1BNFTRADENOTES | Header screen fields: trade notes |
| J_1BNFADD_INFO | Free fields for additional information |
| J_1BNFREFPROC | Additional information: referenced processes |
| J_1BNFSUGARSUPPL | Daily supply of sugarcane |
| J_1BNFSUGARDEDUC | Taxes and contributions on sugarcane |
| J_1BNFVEHICLE | Vehicle details |
| J_1BNFPHARMACEUT | Medicines and pharmaceutical raw materials |
| J_1BNFFUEL | Fuel 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-e | Archiving object | Monitor |
|---|---|---|
| NF-e outbound, layout 2.00 | /XNFE/NFE | NF-e 2.00: monitor for archived outbound NF-es |
| NF-e outbound, layout 3.10+ | /XNFE/ONFE | Monitor for archived outbound NF-es |
| NF-e batch, layout 2.00 | /XNFE/BAT | Display via archiving transactions |
| NF-e batch, layout 3.10+ | /XNFE/BATC | Display via archiving transactions |
| NF-e inbound | /XNFE/INNF | NF-e Fiscal Workplace for archived NF-es |
| CT-e outbound | /XNFE/CTE | CT-e monitor for archived CT-es |
| CT-e batch | /XNFE/BATC | Display via archiving transactions |
| CT-e inbound | /XNFE/INCT | CT-e Fiscal Workplace for archived CT-es |
| Event batch | /XNFE/BATC | Display via archiving transactions |
| MDF-e outbound | /XNFE/MDFE | Monitor for archived outbound MDF-es |
| MDF-e batch | /XNFE/BATC | Display 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.


Leave a Reply