Saturday, 30 April 2022

PT QR code


There is a special legal requirements for Portual QR codes.

Printing Forms:

In order to ensure that our customers meet all legal requirements and that their system is properly up to date in accordance to these requirements, we would like to send a summary of the most important rules related to the printing forms of documents according to the rules defined by the Portuguese Tax Authority (AT).

Some of the rules described in this document are not recent, since they have been active in Portarias n.º 363/2010, 340/2013 and Ofício circulado N.º 50.001/2013.

We have also taken into consideration the most recent rules defined by the Despacho 8632/2014 and Decreto Lei n.º 28/2019.

The following list describes the most relevant aspects of the existing rules:

Digital Signature Footprint

In every fiscally relevant document (FI invoices, SD Billing and Outbound delivery documents) the following information must be presented, otherwise the document was not certified:

• <footprint> - Processado por programa certificado n.º <certificate id>/AT

As according to the note 2398759, it’s possible to use the method CL_SIPT_PR_INFO=>GET_SIGNATURE_INFO to retrieve the digital signature footprint (4 characters) and certificate ID.

The Digital Signature characters (footprint) to be printed in the layout are the following:

• Field SIPT_VBRK-PRINT_CHAR – For SD Billing documents

• Field SIPT_LIKP-PRINT_CHAR – For Outbound delivery documents

• Field SIPT_BKPF-PRINT_CHAR – For FI invoices

The certificate ID is CERT_ID, which can be retrieved in the same tables.

The final result of the print out would be something like the following: " yyxx -Processado por Programa Certificado Nº 631/AT"

QR Code

The Decree-Law no. 28/2019, of 15 February, has determined new Portuguese requirements for invoices and other fiscally relevant documents. According to the new requirements, these documents must contain a two-dimensional bar code (QR code).

The QR Code must respect the technical specifications indicated by the Tax Authorities and printed on the documents of digitally signed documents. In the case of documents with more than one page, the code can appear on the first or last page of the document.

The creation of the two-dimensional bar code (QR code) must comply with the following specifications:


• Error Correction Code (ECC): ‘M’;

• Type: Byte;

• Points per module (Size): 2;

• Version: V=9 (minimum value);

• Image dimensions: minimum 30x30 mm;

• Margin: 0,25 cm;

The system requirements for the printing of QR codes in general can be found in the following notes:

• 2029824 - Support for QR code and data matrix bar code (ABAP part)

• 2029589 - Support for QR code and data matrix bar code (kernel part)

• 2030263 - Support for QR Code 2005 Barcode in SAPscript and Smart Forms


No comments:

Post a Comment