BEFWRIDVS : Entry point on Spanish VAT

The entry point "BEFWRIDVS" run just before writing the tax record on the working table DCLVATSPA.

In this entry point, it´s possible to modify any field value in this table. You only have to assign the field with the new value to store. You can also 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 use this entry point to change the tax code by the defined in EXETAX parameter. Then, 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 register concerned by the declaration, in the working TAX table.

Open tables

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

Table

Significant content

Table Title

DCLVATSPA

X

Tax working table (SPA)