Fiscal Document Generation Process

The Generate Fiscal Document Number process verifies that the required information is available before the fiscal document is sent to the tax authority.

If the information is available, the process generates a fiscal document key and a fiscal document sequential number. The validation process prevents sending invalid data that is later rejected by the tax authority, reducing additional and unnecessary work. The Generate Fiscal Document Number process verifies mandatory information, such as first party and third party tax registrations, addresses, and carrier information.

This image highlights the fiscal document generation process in the general fiscal document flow:

This image shows the fiscal document generation process.

After the fiscal document is validated, the status of the document changes from Scheduled to Generated. Choose one of these actions:
  • If the transaction relates to goods, then the fiscal document number is available in the Manage Fiscal Document Generation page. Click the fiscal document number link to review the goods fiscal document details, such as fiscal document key, customer information, and taxes.
  • If the transaction relates to services, then the temporary service document number is available in the Manage Fiscal Document Generation page. Click the Temporary Service Document Number link to open the temporary service document (RPS) details.

If any information is missing or invalid, the status of the fiscal document changes to Validation Error. Click the fiscal document status link and review all validation errors. Based on the error messages, you must correct the information in transaction, fiscal attributes, or fiscal document configuration. You can update the transaction page again so you can correct the transaction, and click Request Fiscal Document. You can also update the Fiscal Attributes page. Run the Generate Fiscal Document Number process until there are no validation errors, and the status changes to Generated.

Note: Mixed invoices generate both service fiscal documents to the city tax authority, and mixed fiscal documents to SEFAZ (Treasury Office). The Generate Fiscal Document Number process first handles all service fiscal documents associated with the mixed invoice. The mixed fiscal document is generated only after all service fiscal documents are approved by the city tax authority.
Follow these steps to run the Generate Fiscal Document Number process for a single transaction:
  1. From the Shipments or Billing work area, navigate to the Manage Fiscal Document Generation task.
  2. In the Search region, enter the selection criteria, and click Search.
  3. Select the transaction, and click Generate Fiscal Document.

    The process is submitted for the selected transaction.

You can also submit the Generate Fiscal Document Number process from the Scheduled Processes work area to generate fiscal documents in bulk. To submit the process, follow these steps:
  1. Navigate to the Scheduled Processes work area.
  2. Click Schedule New Process.
  3. Search for the Generate Fiscal Document Data for Fiscal Authority process.
  4. Select the process, and click OK.
  5. Click OK. The Process Details page opens.
  6. Enter the selection criteria to select the fiscal document records that you want to extract.
  7. Click Submit.

Selected Parameters

  • Business Unit

    Enter the business unit for the transaction. This is a mandatory parameter.

  • Legal Reporting Unit

    Enter the legal reporting unit for the transaction.

  • Product Type

    Enter the product type of the transaction. Possible values are Goods, Services, and Goods and Services.

  • Event Class

    Select the event class of the transaction.

    This table lists the event class and the corresponding fiscal document types:

    Application Event Class Fiscal Document Type
    Inventory Management Returns to supplier shipment Return to supplier fiscal documents
    Inventory Management Transfer order shipment Internal material transfer fiscal documents
    Receivables Debit memo Complementary fiscal documents based on debit memo transactions
    Receivables Invoice Regular fiscal documents based on invoice transactions
  • From Transaction Number

    Enter the transaction number of the transaction. All transactions with the transaction number greater than or equal to this parameter are selected.

  • To Transaction Number

    Enter the transaction number of the transaction. All transactions with the transaction number lower than or equal to this parameter are selected.

  • From Transaction Date

    Enter the transaction date of the transaction. All transactions with the transaction date greater than or equal to this parameter are selected.

  • To Transaction Date

    Enter the transaction date of the transaction. All transactions with the transaction date lower than or equal to this parameter are selected.

    For more information on fiscal document processing variations, see the Quick Reference for Oracle ERP Cloud Documentation for Brazil (2329725.1) on My Oracle Support at https://support.oracle.com.