Ansicht
Dokumentation

WSPT_GM_SAFT_PT_XML - SAF-T: XML File Creation

WSPT_GM_SAFT_PT_XML - SAF-T: XML File Creation

General Data in Customer Master   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Purpose

You use this report to create an XML file that contains delivery details and submit the file to the tax authority when required.

Integration

Prerequisites

Ensure that you have maintained the relevant tax data in the SAFT_PT_TAX_DATA table via transaction SM30.

Features

Once you generate an XML file, upload the file to the tax authority's online portal. The authority processes this file and stores it on the portal. You can download this file to your system. The tax authority's approval is required to facilitate actual movement of goods.

Selection

On the selection screen, you enter the following data:

  • In the XML File group box, select either the Export radio button or the Import radio button and enter the file path.
Note that if you select the Import radiobutton, the system disables all the other fields excepting the File name field. Enter the response file path where you want to save the file. When you execute the report, the relevant database tables are updated.
  • In the Selection Criteria group box, enter the company code and actual goods movement date.
  • Select the relevant checkbox in the Document Status Filter group box.
  • Enter a delivery document unique ID number or a shipment document unique ID number. These are mutually exclusive:
  • In the Selection Criteria For Delivery Document enter the desired delivery document ID number.

  • In the Selection Criteria For Shipment Documententer the desired shipment document ID number.

Note: In IS-Oil systemsthe group box for Selection Criteria Shipment Document includes expanded selection criteria. In this case you must:
- Check the Delivery Documentcheckbox.
- Enter the Document Category code.
- Enter a Planned shipment startor a Planned load start datein YYYYMMDD format.
- Enter any additional selection criteria you require (Document Type, Shipment ID and Shipment Status).
  • In the Movement Start Time group box, select the relevant radio button to update the movement time and movement date details in the XML file.
  • If you select the PGI Time button, the report fetches the date and time details from the database. In case you want to change the time before generating the XML file, then enter a value in the Add Time field. For example, if the PGI Time is 10:00:00 and you instead want the time as 12:00:00, then enter 02:00:00 in the Add Time field.

  • If you select the Planned Transp. Time button, the report reads the planned transport time from the database. The system does not read the PGI time. In case you want to change the time before generating the XML file, then enter a value in the Add Time field. For example, if the planned transport time is 11:00:00 and you instead want the time as 11:45:00, then enter 00:45:00 in the Add Time field.

  • If you select the Custom Time radio button, enter the movement start date and time as per your requirements.

  • The business name and header comment in the Header Fields group box.

Standard Variants

Output

The report generates a list of documents that match your selection criteria.

The list shows the status of each document. For movement of goods to take place, you are required to have an approval from the tax authority. This is indicated in the form of traffic lights. A green icon indicates that an approval is granted whereas a red icon indicates that an approval is missing.

A yellow icon in the Review plan. Date field indicates that the goods movement date and time of the delivery document has exceeded. To make changes, enter the document number on the selection screen in the Delivery field and the relevant details in the Movement Start Time group box.

A green tick in the Extracted field indicates that an XML file has already been generated for the delivery document.

With respect to the imports process, the report displays the result as per the response received from the tax authorities. The report updates the database when the response file contains no rejections. In case the response file contains rejections, the report displays the error details in the output list.

Activities

To access this report, on the SAP Easy Access screen, choose Logistics -> Sales and Distribution -> Shipping and Transportation -> Outbound Delivery -> Country-Specifics -> Portugal -> SAF-T: XML File Generation.

Example






rdisp/max_wprun_time - Maximum work process run time   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 6321 Date: 20240520 Time: 141705     sap01-206 ( 105 ms )