Generate XML Files (lpesp2208m000)
Use this session to generate the XML file, in accordance with the Spanish Tax Authority’s (AEAT) standards.
To generate an XML file, you can select these transaction data:
- Sales invoices
- Purchase invoices
- Special cash
- Consignment
The XML file generated is saved in the Outbox folders defined in the Spanish Parameters (lpesp0100m000) session. After the XML file is generated, the local.ly connector submits the file to Spanish Tax Authority using Web services.
Field Information
- Finance Company
-
The code of the financial company.
- Description
-
The description or name of the code.
- Declaration Year
-
The tax year for which the tax declaration is prepared.
- Description
-
The description or name of the code.
- Declaration Period
-
The From and To fields define a range of: periods for which the tax declaration is prepared.
- Communication Type
-
The From and To fields define a range of: communication types.
Allowed values
- A0 - Normal: the initial message.
- A1 - Modification: a modification message.
- Purchase Invoices
-
If this check box is selected, the purchase invoices are selected.
- Sales Invoices
-
If this check box is selected, the sales invoices are selected.
- Special Cash
-
If this check box is selected, the payment documents related to Purchase Invoices with Operation Type Code set to ‘07’ (Special Cash Regime) in the Code Lists (lpgen0110m000) session, are selected.
- Consignment
-
If this check box is selected, the fields in which you can specify criteria to select consignment messages are available.
- Finance Company
-
The code of the financial company.
- Fiscal Year
-
The fiscal year of the consignment messages for which to generate the XML file.
- Fiscal Period
-
The From and To fields define a range of: the fiscal periods of the consignment messages for which to generate the XML file.
- Communication Type
-
The From and To fields define a range of: the communication types of the consignment messages for which to generate the XML file.
Allowed values
- A0 - Normal: the initial message.
- A1 - Modification: a modification message.
- Registration ID
-
The From and To fields define a range of: registration IDs of the consignment messages for which to generate an XML file.
- Registration ID Sequence
-
The From and To fields define a range of: sequence numbers of the consignment messages for which to generate an XML file.
- Simulate
-
If this check box is selected, a preview is created in a report without generating and saving an actual XML file in the Outbox folders.