The first NF-e (electronic nota fiscal) was issued in Brazil in September 2006, and it became mandatory for most companies in 2009 and 2010.
The official layout went from 1.00 to 2.00 and then to 3.10 (the current one). Over the years SAP delivered and kept improving its NF-e solution to follow those changes and meet the legal requirements.
Many people I know still avoid NF-e projects because they’ve never done one and are afraid to fail.

The goal of this post and the next ones is to show that implementing NF-e can be simple if you think simple.
There are other good sources to check before this blog. I recommend these first:
- SCN NF-e & SPED community: in Portuguese, but you can always use Google Translate, or use it as an excuse to learn Portuguese (kidding, don’t waste your time).
- NFE Boas discussões – Leia antes de postar: a list of many topics. A bit out of date but still worth a look.
- SAP Nota Fiscal Eletrônica: straight from SAP Help.
Before you configure anything, also review these OSS Notes:
- 2056762 – Guidelines for NF-e layout 3.10 SAP Notes installation
- 2057942 – Guideline for NF-e layout 3.10 implementation in ERP and SAP NFE
- 2060171 – [3.10] Announcement Note – NF-e Layout 3.10
- 2123768 – KBA [3.10] NF-e 3.10 go-live checklist for SAP NF-e GRC
- 2125859 – KBA [3.10] NF-e 3.10 go-live checklist for SAP ERP
And install the latest SLL-NFE support package (currently SP21):
I won’t cover any specific scenario, only the general concept. Before configuring, do an assessment and map the scenarios, processes and requirements for issuing NF-e at your company or customer.
So let’s configure the NF-e system (GRC NF-e). Most, but not all, of the SPRO configuration is organized like this:

1) Maintain own tax numbers
As simple as it gets. Enter your company’s CNPJ (one entry per business place), a description (the business place name, for example) and the state where the CNPJ is registered.
Table: /XNFE/V_TCNPJ
SPRO > Nota Fiscal Eletronica > General Settings > Maintain Own Tax Numbers

2) Digital signature configuration
Basis usually maintains this. If you’re not comfortable with it or don’t have the authorization, don’t be shy about asking the Basis team.
3) Maintain system security information
For every Secure Store and Forward (SSF) application, import the certificates you bought from the certification authorities. You do this in the Trust Manager, where you define and monitor the personal security environments (PSEs) used for digital signatures and encryption in SAP systems.
SPRO > Nota Fiscal > General Settings > Signature > Maintain System Security Information
4) Maintain application-dependent SSF information
You get an overview of the existing SSF applications and create an entry for each of your own tax numbers. Here you set the application-specific parameters for the SSF functions.
The applications that use SSF don’t all have to use the same security environment.
SPRO > Nota Fiscal > General Settings > Signature > Maintain Application-Dependent SSF Information

5) Name the logical destination
Another one Basis usually handles: the RFC connection. Start by naming the logical destinations, then create the logical destination entries used by the RFC connection.
SPRO > Nota Fiscal > Communication to ERP Back End System > Name the Logical Destination
Define the logical systems your SAP NFE system connects to. You need one for each back-end (ERP) system so SAP NFE can connect to it.
6) Create the RFC connection
An RFC destination’s parameters control the remote function call. This is how the NF-e, ECC and PI clients talk to each other.
You need an RFC destination for each logical system you want to connect to SAP NFE.
7) Maintain system response for own tax numbers
For each of your company’s tax numbers, you define where the digital certificate used for signing is stored, and whether you use the production or homologation environment. The digital certificate is required.
SPRO > Nota Fiscal > Outbound > Maintain System Response for Own Tax Numbers

For each CNPJ, maintain the business place description, KeyStorageView, Key Storage Element and SSF application (ask Basis if you don’t know them).

8) Define authority’s status codes
Here you define the codes and descriptions the authorities can return in response to nota fiscal messages. With this list, the application shows how each official code affects the NF-e status. A clear description per code makes follow-up and fixing issues easier.
SPRO > Nota Fiscal > Outbound > NFe > NF-e: Define Authority’s Status Code
Table: /XNFE/TSTAT

An updated list is here: Tabela atualizada das mensagens de retorno/erro da SEFAZ
To be continued…


Leave a Reply