38 Entering Fiscal Authority Response (Inbound Information)

This chapter contains these topics:

A new file has been created to store the fiscal authority response/inbound information: Nota Fiscal Status Update Transactions (F76B652).

This information can be entered interactively by a user or automatically through integration with the third-party software.

38.1 Updating Electronic Nota Fiscal Status Using a Third Party Software

The third-party software must add a record to Nota Fiscal Status Update Transactions (F76B652) with the status of each NFe XML file that was processed by the fiscal authority.

At least the following fields need to be populated:

  • Legal Access key (DTBLAK)

  • Response Status Code (DTBRST)

  • Protocol Number (DTBPTL)

If Nota Fiscal Electronica Status Add Trigger (X76B653) is correctly started and a Nota Fiscal Status Update Transactions (F76B652) record is correctly entered, the statuses in the sales order and nota fiscal detail lines advance automatically.

38.1.1 Before You Begin

38.2 Updating Electronic Nota Fiscal Status Interactively

Navigation:

From Localizations - Brazil (G76B), choose Sales Order Management

From Sales Order Management - Brazil (G76B42), choose Sales Order Processing

From Sales Order Processing - Brazil (G76B4211), choose Nota Fiscal Processing

From Nota Fiscal Processing (G76B42111), choose National NFe

From Electronic Nota Fiscal - National (G76B42114), choose Nota Fiscal -e Status Update

To enter the response from the fiscal authority interactively, choose Nota Fiscal -e Status Update (P76B650).

  1. In the header, enter any combination of search criteria. An asterisk (*) can be entered as a wild card character.

    Figure 38-1 Nota Fiscal-e Status Update screen

    Description of Figure 38-1 follows
    Description of ''Figure 38-1 Nota Fiscal-e Status Update screen''

  2. If your search criteria returned multiple notas fiscais, multiple notas fiscais can be processed.

    Complete the following field:

    • Option (OP)

  3. Press F1 to list all the available values that can be entered in this option, as noted in the screen below.

    Figure 38-2 Field Sensitive Help screen

    Description of Figure 38-2 follows
    Description of ''Figure 38-2 Field Sensitive Help screen''

  4. Press Enter.

  5. Complete Protocol Number, Processed Date and Time if required.

  6. Press F10 (Nota Fiscal Status Update), to call NF-e Nota Fiscal Update - Brazil program (P76B651).

  7. If the NF-e Nota Fiscal Update - Brazil (P76B651) version is properly set up, Nota Fiscal Status Update Transactions (F76B652) record is created/updated.

    The trigger is automatically started when the Nota Fiscal Status Update Transactions (F76B652) record is created/updated.

    The trigger updates the statuses of the processed sales orders and notas fiscais in Sales Order Detail (F4211) and the Nota Fiscal Detail (F7611B) files.

    This program also creates a record in the Nota Fiscal Update - Brazil file (F76B651) when Accepted (option 1) or Contingency options (5 to 9) is selected so the Documento Auxiliar da Nota Fiscal Eletronica (DANFE) can be generated.

    When a Contingency Option (options 5 to 9) is selected, NF-e Contingency Data (P76B652) and Generic Text Application Window (P0016) are displayed and additional information regarding the contingency can be entered.

    Figure 38-3 NF-e Contingency Data window

    Description of Figure 38-3 follows
    Description of ''Figure 38-3 NF-e Contingency Data window''

  8. Enter Contingency Date and Time and press Enter.

  9. Generic Text Window (P0016) is displayed.

  10. Enter the Contingency Message and press Enter.

    Figure 38-4 Contingency Scan window

    Description of Figure 38-4 follows
    Description of ''Figure 38-4 Contingency Scan window''

    You may want to press F24 (key) to review all the options available in the Generic Text Window:

    Figure 38-5 Display Functions window

    Description of Figure 38-5 follows
    Description of ''Figure 38-5 Display Functions window''

  11. Select Model Memo option may be used to Add, Change and Delete a predefined message (Model Memo) to print when the Contingency Window (P0016) pops up.

    XML Generator (P76B601) and DANFE Generation (P76B660) programs can be called if XML Submission and/or DANFE processing options are enabled.

    XMLs and DANFEs generated through submission option can be reviewed through WRKSPLF (Work with All Spooled Files) command.

38.3 Checking the Status of an Electronic Nota Fiscal

Navigation:

From Localizations - Brazil (G76B), choose Sales Order Management

From Sales Order Management - Brazil (G76B42), choose Sales Order Processing

From Sales Order Processing - Brazil (G76B4211), choose Nota Fiscal Processing

From Nota Fiscal Processing (G76B42111), choose National NFe

From Electronic Nota Fiscal - National (G76B42114), choose NFe Inquiry Status

On NF-e Inquiry Status program (P76B675), enter a combination of:

  • Branch / Plant

  • Buyer

  • Sales Order Number

  • Order Type

  • Nota Fiscal Number

  • Series

  • NF Type

  • NFe Status

  • Fiscal authority response Status

  • Issue Date

  • Reference

  • Protocol

Figure 38-6 NF-e Inquiry Status screen

Description of Figure 38-6 follows
Description of ''Figure 38-6 NF-e Inquiry Status screen''

38.4 Printing the DANFE -- Documento Auxiliar da Nota Fiscal Electrónica

Navigation:

From Localizations - Brazil (G76B), choose Sales Order Management

From Sales Order Management - Brazil (G76B42), choose Sales Order Processing

From Sales Order Processing - Brazil (G76B4211), choose Nota Fiscal Processing

From Nota Fiscal Processing (G76B42111), choose National NFe

From Electronic Nota Fiscal - National (G76B42114), choose DANFE Generation

The DANFE Generation program (P76B660) reads information from the Nota Fiscal Update - Brazil (F76B651) and Nota Fiscal Detail (F7611B) files and updates two temporary work files:

  • DANFE - Header File - Brazil (F76B660)

  • DANFE - Detail File - Brazil (F76B661)

The DANFE is printed based on these temporary work files.

This program also updates the statuses of both the nota fiscal and sales order based on processing options values.

This program can be executed manually or automatically executed after the response status is entered as Accepted (option 1) or Contingency (options 5 to 11) and NF-e Nota Fiscal Update - Brazil (P76B651) is properly set up.

Note:

The DANFE Barcode prints on the upper right corner of the document. This barcode follows Code 128-C barcode specifications.

A numeric presentation of the barcode prints under the barcode.

It contains the Legal Access Key number plus a 2-digit number that is a Check Digit (based on Modulo 103 check digit specifications).

Protocol Number, Authorization Date and Time also print in the DANFE.

Figure 38-7 Example of a DANFE Form

Description of Figure 38-7 follows
Description of ''Figure 38-7 Example of a DANFE Form''