SAPBR Technologies home

SAP in Brazil, explained

NFe Outbound / NFe 10.0 / NFe GRC – Part 1

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.

Illustration

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:

Before you configure anything, also review these OSS Notes:

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:

Illustration

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

SAP screen: 1) 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

SAP screen: 4) 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

SAP screen: 7) 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).

SAP screen: 7) Maintain system response for own tax numbers

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

SAP screen: 8) Define authority's status codes

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

To be continued…

Comments

4 responses to “NFe Outbound / NFe 10.0 / NFe GRC – Part 1”

  1. NFe Outbound / NFe 10.0 / NFe GRC – Part 2 | SAP BRAZIL Avatar

    […] ← NFe Outbound / NFe 10.0 / NFe GRC – Part 1 […]

    Like

  2. NFe Outbound / NFe 10.0 / NFe GRC – Part 3 | SAP BRAZIL Avatar

    […] This post is a sequence of  NFe Outbound / NFe 10.0 / NFe GRC – Part 2 and NFe Outbound / NFe 10.0 / NFe GRC – Part 1 […]

    Like

  3. NFe Outbound / NFe 10.0 / NFe GRC – Part 4 | SAP BRAZIL Avatar

    […] This post is a sequence of post: NFe Outbound / NFe 10.0 / NFe GRC – Part 3, NFe Outbound / NFe 10.0 / NFe GRC – Part 2 and NFe Outbound / NFe 10.0 / NFe GRC – Part 1 […]

    Like

  4. Shyam Sundar Raman Avatar
    Shyam Sundar Raman

    Nicely explained, thanks for posting

    Liked by 1 person

Leave a Reply