Use this function to generate and manage ATCUD codes for Portuguese legislation.

Note The ATCUD and QR code are required on all accounting documents. If there is no valid code in the ATCUD field, you cannot post or validate accounting documents.

Process overview

Steps to complete

1. Create the Sequence number definition for the folder, company, or site by year using the ATDUC identification number. The Type should be Alphanumeric. You can only generate for the final series. If not, you receive an error. In the Components grid, you need to define the sequence number as shown below. This example is for a site. On line 6, the slash is required to comply with the Portuguese tax authority.


Component type Length Formula
1 Constant 3 PRF
2 Constant 1
3 Site 5
4 Constant 1
5 Year 2
6 Constant 1 /

2. Click Generate to create the series number for a specific document type. You need to generate a series for each document type.

3. You need to manually provide the series to the Portuguese fiscal authorities website. The fiscal authority sends you the ATCUD code for the series.

4. Enter the ATCUD code you receive from the fiscal authorities into the ATCUD field.

ATCUD code in accounting documents

The ATCUD code in the ATCUD field is automatically added to documents when you perform a final action where the document, like an invoice, can no longer be modified. Depending on the function, this can include posting, validating, or selecting electronic signature. A log file details the insertion of the ATCUD code.

Functions:

  • Sales invoices GESSIH
  • Sales deliveries GESSDH
  • Sales deliveries GESSDH2
  • Sales orders GESSOH
  • Sales quotes GESSQH
  • Payment/receipt entry GESPAY
  • Customer invoices GESBIC
  • Transport note GESTNH
  • Purchasing returns GESPNH
  • Customer returns GESSRH
  • Subcontract returns GESSTR
  • Intersite transfers GESSIS
  • Subcontractor transfers GESSST

Mass validation functions:

  • Invoice/credit memo validation FUNCFMINV
  • Delivery validation FUNCFMDLV
  • Transport note validation FUNCFMTNH
  • Order electronic signature FUNCFMSOH
  • Quote electronic signature FUNCFMSQH
  • Customer invoice posting BPCVAL
  • Payment proposals PAYPROPAL
  • Open item management MODECHE
  • Direct order invoice gen. FUNAUTINVO
  • Invoice validation FUNPIH
  • Purchasing Return validation FUNPNHTRT
  • Sales Return validation FUNCFMSRH
  • Proforma electronic signature FUNCFMPRO

Reports

When you print a document or a report, the ATCUD and QR code are included.

SAF-T export

When you perform a SAF-T export, the ATCUD code is included in the <atcud> </atcud> tag with the same format used for documents. If there is no ATCUD code, a 0 is placed in the tag.

Importing invoices

When you import an invoice, you receive a blocking message if the ATCUD field is empty. You need to enter the ATCUD code to import an invoice for a Portuguese company.

Prerequisites

See also Refer to documentation Implementation

Screen management

Entry screen

Specific actions

Error messages

The only error messages are the generic ones.

Tables used

See also Refer to documentation Implementation