Ansicht
Dokumentation

GLO_PT_SVC_REP - Manage Series Validation Code for Portugal

GLO_PT_SVC_REP - Manage Series Validation Code for Portugal

CL_GUI_FRONTEND_SERVICES - Frontend Services   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Purpose

According to Portaria 195/2020, it is mandatory for all the companies to communicate the series identifier used in document numbering of invoices, deliveries, etc., to the tax authorities. The tax authorities will return a validation code for each communicated series identifier. Use the validation code to create a Unique Document Number or ATCUD. ATCUD is created by combining the validation code and the sequential document number. It is mandatory to print the ATCUD on documents, to report e-Invoices and SAF-T (PT) files and to include in the QR-Code.

Use the Manage Series Validation Code report to associate the series identifier with a validation code and to manage Registration, Cancellation, Finalizing of the series identifier for all the affected business processes. The report displays configuration and master data associated with number range Series Identifiers from all relevant business processes and structures the information as required for the registration process.

Integration

Prerequisites

  • Number ranges in the respective business process configurations are correctly maintained with the defined rules.
  • Communication setup for integrating to the Tax Authority web service is done.
  • Series Registration/Finish/Cancel is already performed in the Tax Portal in case of manual update process.
  • Maintain the correct VAT number in the Company code Master Data.

Features

Using the Manage Series Validation Codereport, you can do following actions on number range series identifier:

  • Register one/many number range series identifiers from one/many business processes.
  • Individually Cancel/Finish number range series identifier which is already registered.

There are two possibilities to perform these actions:

  • Triggering the Tax Authority web service to register/finish/cancel the series identifier directly from the Manage Series Validation Codereport. This is a one step process.
  • Using the Tax Authority Portal to register/finish/cancel the series identifier and then updating the same manually in the Manage Series Validation Codereport. This is a two-step process.

The Manage Series Validation Codereport then persists Validation Code and status associated with the number range series. This is subsequently used by business applications for printing, SAF-T reporting and impacted processes.

Procedure

Web Service Update

  1. To access the Manage Series Validation Codereport from your SAP GUI, go to transaction GLO_PT_SVC.
  2. You will see the user input field Series Business Process. This represents the independent business processes which use number ranges relevant for series communication. Example: Sales Billing, Deliveries etc.
  3. Select relevant business processes for which you intend to register the series identifiers and choose Execute(F8).
  4. Fields associated with the series identifier is displayed in an ALV Grid and you can perform the below actions:
  • You can update information in the ALV grid after latest actions by choosing Refreshoption.

  • You can perform all ALV standard operations. Ex: Filter, Sort etc

  • You can view the error/success information after requesting the series registration by choosing Message Logs.

  • You can navigate to detail screen by choosing any series identifier entry.

  1. To register the series identifier(s), select one or many series identifiers and choose WS Registration.
  2. Verify the Web Service registration by choosing Refresh. The Validation Codecolumn should be updated, and Series Statusshould be set as Active. If validation code is not updated, you could refer to the error log by choosing Message Logfor detailed information.

Notes

  • You cannot manually edit validation codes of series identifiers once registration is complete using Web Service.
  • If you are performing registration operation for multiple series Identifiers, all the series identifiers should correspond to a single tax entity (VAT Registration number). System will display an integration error when trying to register for multiple tax entities.
  1. Once the number range is consumed, to mark the status of series identifier as Finished, perform the following actions for a series in Activestatus.
    1. Choose the series identifier you intend to finish from the ALV Grid.
    2. In the subsequent detail screen, choose Finish Series.
    3. Pop up will be displayed to confirm the finish action.
    4. Series Last Numberfield is prepopulated with number range status. You can edit the last number as well.
    5. Select the Communication Methodas PI Web Service Updatefrom the dropdown menu.
    6. Enter the Finish Justificationfor finish the series identifier and choose Okto confirm the Finish Seriesaction.
    7. On finishing the series, Series Statusis marked as Finishedin the ALV Grid.

Note

After FinishSeries action, no further actions are possible on the series and status cannot be reverted.

  1. If the Series Identifier was communicated and registered by mistake, to mark the status of series identifier as Cancelled, perform the following actions on series identifier in Activestatus.
    1. Choose the series identifier you intend to cancel from the ALV Grid.
    2. In the subsequent detail screen, choose Cancel Series.
    3. Pop up will be displayed to confirm the cancel action.
    4. Enter the Cancel Reason Codeby selecting dropdown menu.
    5. Select the Communication Methodas PI Web Service Updatefrom the dropdown menu.
    6. Check the Declaration for Series Cancellationcheckbox and choose Okto confirm the cancel series action.
    7. On cancelling the series, Series Statusis marked as Cancelledin the ALV Grid.

Note

After Cancel series action, no further actions are possible on the series and status cannot be reverted. Cancel action should be performed only if there are no documents posted using the series identifier and was previously registered by mistake.

Manual Update

  1. To access Manage Series Validation Codereport from your SAP GUI, go to transaction GLO_PT_SVC.
  2. You will see the user input field Series Business Process.This represents the independent business processes which use number ranges relevant for series communication. Example: Sales Billing, Deliveries etc.
  3. Select relevant business processes for which you intend to register the series identifiers and choose Execute (F8).
  4. To register the series identifier manually, do the following actions when series is in Initialstatus.
    1. Select the series identifier which you want Register from the ALV Grid.
    2. In subsequent detail screen, choose Edit.
    3. Enter the validation code received in the tax portal in the Validation Codefield.

Note

Validation code must be at least eight characters long as per legal specification.

  1. Enter the timestamp of series registration in the Series Status Change Timestampfield.
  2. Choose Save.
  3. On registering the series, the status of the series is set to Active.

Notes

  • In case there is an error when maintaining the validation code, system allows you to conditionally change the validation code for series identifiers already in Activestate. It is only allowed if no document is posted using the corresponding number range series identifier. Editoption on the detail screen will be disabled once documents are posted using the number range series.
  • The Series Status Change Date and Timemust be updated in DD.MM.YYYY. HH.MM.SS UTC (Universal Time Coordinate) format. When this field is not filled, the system will update the timestamp of performing the save action.
  1. Once the number range is consumed, to mark the status of series identifier as finished, do the following actions for a series in Activestatus.
    1. Choose the series identifier you intend to Finish from the ALV Grid.
    2. In the subsequent detail screen, choose Finish Series.
    3. Pop up will be displayed to confirm the Finishaction.
    4. Series Last Numberfield is prepopulated with number range status. You can edit the Series Last Number as well.
    5. Select the Communication Methodas PF Manual Updatefrom the dropdown menu.
    6. Enter the Finish Justificationfor finish the series identifier.
    7. Choose Okto confirm the finish series action.
    8. After Finish Seriesaction, no further actions are possible on the series and status cannot be reverted.
  2. If the series Identifier was communicated and registered by mistake, to mark the status of series identifier as Cancelled, do the following actions on series identifier in Activestatus.
    1. Choose the series identifier you intend to Cancelfrom the ALV Grid.
    2. In the subsequent detail screen, choose Cancel Series.
    3. Pop up will be displayed to confirm the cancel action.
    4. Enter the Cancel Reason Codeby selecting dropdown menu.
    5. Select the Communication Methodas PF Manual Updatefrom the dropdown menu.
    6. Check the Declaration for Series Cancellationcheckbox.
    7. Choose Okto confirm the cancel series action.
    8. On Cancelling the series, Series Statusis marked as Cancelledin the ALV Grid.

Note

After Cancel Series action, no further actions are possible on the series and status cannot be reverted. Cancel action should be performed only if there are no documents posted using the series identifier and was previously registered by mistake.

Below is the list of fields that are displayed on the ALV grid:

Field Name Description
Series Identifier Indicates the series identifier corresponding to a number range interval.
VAT Registration Number VAT registration number (VAT reg.no.) of the tax entity for which you are registering the Series Identifier.
Series Type Code Classifies the type of the series identifier.
SAF-T Document Type Indicates the type of the documents corresponding to the series identifier.
Series Business Process Indicates the business process to which the series identifier belongs to.
Series Start Number The first internal sequential document number of the numbering interval corresponding to the series identifier.
Series Start Date The date on which the validation code is activated for the series identifier.
Series Status Indicates the status code that the series identifier will have during the communication process.
Series Processing Medium Code Indicates the processing medium code of documents to be issued.
Series Validation Code The series validation code assigned by tax authority. The Tax Authority validation code is specific for the series identifier it was requested for and assigned to. The validation code is updated either manually or via webservice call.

In the Series Statuscolumn, you will see the following statuses assigned to each number range series:

Status Description
Initial This status represents that you have configured the series identifier in the views but has not been communicated in the backend.
Active This status represents that you have already registered the Series identifier and Validation code is assigned.
Finished This indicates that a series was valid for a set of documents, but that it will no longer be used from the last document communicated. This status represents the final status.
Cancelled This indicates the status of a series identifier which was previously communicated by mistake. This status represents the final status.

In the ALV options you can also choose to display the following hidden columns as per your business/user needs.

Field Name Description
Series Document Class Indicates the classification of the documents which are numbered using the series identifier.
Series Certification ID Certificate of the billing software as granted by the tax authority.
Registration Date Date of registration of the series identifier.
Status Change Date Date of latest status change of the series identifier.
Cancel Reason Code Indicates the reason code to cancel the series identifier communication.
Series Last Number Indicates the last sequential document number of the numbering interval corresponding to the series identifier.
Declaration Declaration in case of cancelling a series by the taxpayer that the series identifier previously communicated by mistake, is not used for issuing any documents. Communication will only be accepted if the taxpayer indicates (by filling in true value in this parameter) that they are aware of the situation.
Justification Specifies the comments for finishing the series identifier.

Output

Activities

Example






General Material Data   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 18568 Date: 20240531 Time: 113439     sap01-206 ( 234 ms )