Enterprise Resource Planning Blogs by Members
Gain new perspectives and knowledge about enterprise resource planning in blog posts from community members. Share your own comments and ERP insights today!
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos

Functionality to Generate Digital Signature for Portugal(PT) Invoice Documents (Table: SIPT_VBRK)



Content:

  1. Purpose
  2. Preparation
    1. Prerequisites
  3. Implementation Information
  4. Functionality and ways of working


1. Purpose:

There is a requirement from Portuguese authorities to print the certificate number along with Legal Text for the certified invoicing software on the billing documents and Crops billing documents send by Portugal(PT) Company.


          As per the business expectation, we should print below information on PT Invoice Output forms.


“YYYY- Processado por programa certificado n. º 631/AT”.

The first part of this sentence, YYYY, are the 1st, 11th, 21st, and 31st positions of the unique key. This unique key is different for each document.

The Second part of this sentence, “Processado por programa certificado n. º 631/AT” is long text and this information is same for each document.

            Currently we don’t have this information on PT invoice output forms and due to this Syngenta Is already fined for not printing this text.


2. Preparation:

                  To meet this requirement, all the companies in Portugal need to print the digital signature along with the long text on invoice forms to avoid the penalties from Tax authorities.


2.1 Prerequisites:

For this Legal Requirement, SAP has released the below notes to generate digital signature for all Portugal (PT) invoice documents.

Ranking

Application Area

Number

short text

1

XX-CSC-PT Portugal

1517894

Portaria no. 363/2010. D.R. no. 120, Série I de 2010-06-23

2

XX-CSC-PT Portugal

1301160

ODN enabled in SD and FI for Portugal for digital invoicing

3

XX-CSC-PT Portugal

1300880

Import Certificates

4

XX-CSC-PT Portugal

1109487

New qualifier values for Idocs

5

SD-EDI-OM-IV

1313457

Reference Document Number Missing

6

SD-EDI-OM-IV

1325207

Description of the term of payment

7

SD-EDI-OM-IV

1303712

Enable creation of digital signature

8

XX-CSC-MX

1345671

TAX Data with zero base amount in the original input message.

9

XX-CSC-MX

1357003

Digital Invoice not posted to accounting

10

XX-CSC-MX

  1365263

Free of charge items in digital signature

11

XX-CSC-MX

1338485

Wrong Approval in digital invoices

12

XX-CSC-MX

  1365961

BADI Change to incorporate Billing Type

13

XX-CSC-MX

1370439

Customer and company name length in the digital invoice.

14

XX-CSC-MX

  1371612

Data Control and Chronological numbering in digital invoices.

15

XX-CSC-MX

  1372605

Validation of XML file Fails

16

XX-CSC-MX

  1373594

Multiple Custom Documents per line item

17

XX-CSC-MX

1372621

Digital Invoice including withholdings with zero amount

Once we implement these notes, we will be able to see the digital signature for Portugal (PT) invoices in Table: SIPT_VBRK.


    We have implemented above mentioned notes under Enhancement CM Number: CM00006414 _ Requirement from Portuguese authorities to print the Digital and moved the changes to Production.


    These technical changes involve both note implementation and few BASIS team activities to upload SAR files.

Apart from these technical changes, we have the customization changes which will enable the digital signature creation at company code level.


Customization Changes:


    If you implement the functions for digital signature using the SAR file delivered with SAP Note 1517894, the two Customizing views for recording number range intervals for digital signature will not be included in your Implementation Guide. To make your Customizing settings, you must then use the SM30 transaction and enter the Customizing view name. This documentation explains how to complete the Customizing activities.

    When you implement the next Support Package for your system, the Customizing activities will be included in your Implementation Guide as follows:

o Customizing for Financial Accounting (New) Accounts Receivable and Accounts Payable Business Transactions Country-Specific Information Portugal Record Number Ranges for Digital Signature of Invoices (FI). The view name is SIPT_NUMBR_FI_V.

    Customizing for Sales and Distribution Billing Billing Documents Country-Specific Features Country-Specific Features for Portugal Record Number Ranges for Digital Signature of Billing Documents (SD). The view name is SIPT_NUMBR_SD_V.

    Alternatively, you can find both Customizing activities under Customizing for Cross-Application Functions General Application Functions Cross-Application Document Numbering Digital Signature Country-Specific Settings Portugal Digital Signature Settings.

Record Number Ranges for Digital Signature of Billing Documents (SD)

Customizing View SIPT_NUMBR_SD_V

Use:

    By law, you are required to ensure that your system digitally signs all billing documents created for Portuguese sales organizations in Sales and Distribution (SD) and passed on to Financial Accounting (FI). In this Customizing activity, you indicate which number range intervals that are used for billing document types need digital signatures and when the digital signature process should commence. The system then ensures that billing documents within these number range intervals are signed digitally.

    To fulfill legal requirements about the format of the signature, the system uses the entries that you make here for the leading document type and the series to create an invoice number. This invoice number is part of the input for the digital signature. For more information about the way in which the system generates the digital signature, see https://service.sap.com/globalization Country Information Portugal Additional Solution Information. Alternatively, see https://help.sap.com SAP ERP ERP Central Component SAP ERP Central Component Financials Country Versions Portugal Cross-Application Functions Digital Signature of Invoices.

Prerequisites:

 You have defined number range intervals for your billing documents in the Customizing for Sales and Distribution under Billing Documents Define Number Range for Billing Documents.

 You have ensured sequential numbering in Portuguese company codes by implementing the user exit described in SAP Note 595327.

Activities:

  1. You obtain and upload a PSE file for each production system from SAP that contains SAP’s private encryption key.
  2. In this Customizing activity, for Portuguese company codes, you enter all number range intervals that you use for all billing document types created in SD. You mark the number range intervals that are relevant for digital signatures, that is, the documents that are numbered within this number range interval must be signed digitally. You assign a leading document type and a series to each number range interval and indicate the company code for which the interval is used. You enter a starting date and time to activate the digital signature generation. Only documents numbered after the starting date/time are digitally signed. For more information about these entries, see the F1-Help for these fields.
  3. You make similar settings for those number range intervals that are used in FI for manually created invoices. You do this in the Record Number Ranges for Digital Signature of Invoices (FI) [SIPT_NUMBR_FI_V] Customizing activity. For more information, see the following documentation.
  4. When you start billing, the system generates digital signatures automatically for the documents created within the number range intervals that you have marked here.
  5. Whenever you add a new number range interval in SD to be used for billing in a Portuguese company code, you record it here and indicate whether it is relevant for digital signatures.

Record Number Ranges for Digital Signature of Invoices (FI)

Customizing View SIPT_NUMBR_FI_V

Use:

    By law, you are required to ensure that your system digitally signs all invoices for Portuguese company codes that are created manually in Financial Accounting (FI). In this Customizing activity, you indicate which number range series that are used for invoices need digital signatures and when the digital signature process should commence. The system then ensures that invoices within these number range series are signed digitally.


    To fulfill legal requirements about the format of the signature, the system uses the entries that you make here for the leading accounting document type and the series to create an invoice number. This invoice number is part of the input for the digital signature. For more information about the way in which the system generates the digital signature, see https://service.sap.com/globalization Country Information Portugal Additional Solution Information. Alternatively, see https://help.sap.com SAP ERP ERP Central Component SAP ERP Central Component Financials Country Versions Portugal Cross-Application Functions Digital Signature of Invoices.

Prerequisites:

 You have defined document types and document number ranges by completing the relevant Customizing activities in the Customizing for Financial Accounting (New) under Financial Accounting Global Settings (New) Document.

 you have activated the SIPT application using the BF11 transaction.

Activities:

  1. You obtain and upload a PSE file for each production system from SAP that contains SAP’s private encryption key.
  2. In this Customizing activity, for Portuguese company codes, you enter all number range intervals that you use for all accounting document types. You mark the number range intervals that are relevant for digital signature, that is, the FI documents that are created manually within this number range interval must be signed digitally. Do not mark intervals that are used for numbering FI documents that originate as documents in SD. You only need to mark the SD number range interval for digital signature in this case (see step 3).

For more information about these entries, see the F1-Help for the fields in the Customizing view.


  1. You make similar settings for those number range intervals that are used in Sales and Distribution (SD) for creating billing documents. You do this in the Record Number Ranges for Digital Signature of Billing Documents (SD) [SIPT_NUMBR_SD_V] Customizing activity. For more information, see the previous documentation.
  2. When you start invoicing, the system generates digital signatures automatically for the documents manually created within the number range intervals that you have marked here.
  3. Whenever you add a new number range interval in FI that is to be used by a Portuguese company code, you record it here and indicate whether it is relevant for digital signature.

3. Implementation Information:


3.1 Solution Overview:

              AS per Portugal (PT) country regulations, all the Invoice documents should be signed digitally before we move the goods from the plant/warehouse.


This solution will enable to generate digital signature for all Portugal Invoices in Table: SIPT_VBRK and will print the digital signature along with the long text on Invoice output forms.


4. Functionality and ways of working:


              As per the Functional changes mentioned in above steps, we have maintained required entries in Table: SIPT_NUMBR_SD_V and we have enabled the digital signature check box for Portugal Country company code.

            As per Technical (Note Implementation) and Functional changes will enable us to generate digital signature for the Portugal Invoices in Table: SIPT_VBRK and this digital signature is unique for each and every billing document.

          Apart from form the technical and configuration changes, we have also done the smart form changes to display the digital signature along with long text on Invoice output forms and please find below steps to understand this end-to-end functionality.


          we have created invoice: 6670020164 for Portugal (PT) company code and you can see the below screen shot where the digital signature got created in Table: SIPT_VBRK.


        As per the smart form changes, In below Screen you can see that digital signature along with legal text on invoice output form.

         

The first part of this sentence, "oyIZ", are the 1st, 11th, 21st, and 31st positions of the digital signature(unique key). This unique key is different for each document.


The Second part of this sentence, “Processado por programa certificado n. º 631/AT” is long text and this information is same for each document.



   








2 Comments
Labels in this area