Process DCLVATSPA: Spanish tax declaration

BEFWRIDVS: Modifying tax values on Spanish VAT

This entry point runs directly before writing the tax record on the DCLVATSPA working table.

Use this entry point to modify any field value in the table. To do so, assign the field the new value to be stored.

If required, you can populate the three values of the fields for the ticket management.

Example

[F:DVS]TCKINI = "001"

[F:DVS]TCKEND = "010"

[F:DVS]TCKNUM = 10

You can also use this entry point to change the tax code to the value defined in the EXETAX parameter. In this case, the record is not stored.

Example

[F:DVS]VAT = GEXETAX

Context and operating method

Transaction

There is a transaction in progress.

Log file

There is an open log file.

Different call cases

This entry point is called for each record in the working TAX table that is included in the declaration.

Open tables

Only the TAX working table has a significant content in this context.

Table Significant content Table title

DCLVATSPA

No

Tax working table (SPA)

BEFDAXCS: Finding related payment on Spanish VAT

Context and operating method

Transaction

There is no transaction in progress.

Log file

There is an open log file.

Code context

In Spanish cash VAT records, payments can be made by a third-party payer rather than by the party that issued the purchase invoice. For example, this applies for the Spanish College of Registrars.

When using this entry point, you can refer to the [PYH]BPR Header BP or the [PYD]BPRLIN Line BP to identify the related payment.

Available variables and masks

There are no significant values.

Open tables

Table Significant content Table title
PAYMENT The current record is managed Payment header
PAYMENTD The current record is managed Payment lines