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

Declaration Year

The tax year for which the tax declaration is prepared.

Description

Declaration Period

periods for which the tax declaration is prepared.

Communication Type

communication types.

  • A0 - Normal: the initial message.
  • A1 - Modification: a modification message.
Purchase Invoices

the purchase invoices are selected.

Sales Invoices

the sales invoices are selected.

Special Cash

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

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 fiscal periods of the consignment messages for which to generate the XML file.

Communication Type

the communication types of the consignment messages for which to generate the XML file.

  • A0 - Normal: the initial message.
  • A1 - Modification: a modification message.

Registration ID

registration IDs of the consignment messages for which to generate an XML file.

Registration ID Sequence

sequence numbers of the consignment messages for which to generate an XML file.

Simulate

a preview is created in a report without generating and saving an actual XML file in the Outbox folders.

Related topics