FILTER1: Additional filter on the VAT declaration/collection entries.

This FILTER1 entry point is used to complete the standard filter made on the document line table in order to take into account the entries in the VAT declaration on collection program.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is an open log file.

Call context

This entry point is called at the start of the transaction in the VAT declaration on collection processing for a company.

Available variables and masks

The DCLVATFRA mask is available and contains the release parameters of the function.

The OPTPAY local variable contains the value of the DCLOPTPAY parameter.

The COMPANY [CPY] and TABCUR [TCU] tables are open and contain the company being processed as well as the currency of the main general ledger.

BEFWRIDLVBP: Before the write in the DCLVATBOXH temporary table

This entry point is used to insert additional logic just before the write to the temporary DCLVATBOXH table in order to modify the value of certain fields in the table or to initialize specific/custom fields that have been added.

The DCLVATBOXH table is used by the VAT declaration on collection report.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is an open log file.

Call context

This entry point is called right before the write or the rewrite to the temporary table DCLVATBOXH [DLVB]. The DLVB_UW variable is initialized to "W" or "U" depending on whether it is a write or rewrite operation.               

Available variables and masks

The DCLVATFRA mask is available and contains the release parameters of the function.

Open tables

Table

Significant content

Table title

 COMPANY

X

 Companies

 TABCUR

X

 Currency table

 FACILITY

              X

 Sites

 DCLVATBOXH

               X

Temporary VAT declaration on collection table

FILTER3: Filter on unmatched entries

The FILTRE3 entry point is used to complete the standard filter made on the document line table in order to take into account the unmatched postings in the VAT declaration on collection program.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is an open log file.

Call context

This entry point is called at the end of a company's VAT declaration on collection processing in order to process the unmatched postings.

Available variables and masks

The DCLVATFRA mask is available and contains the release parameters of the function.

The OPTPAY local variable contains the value of the DCLOPTPAY parameter.

The COMPANY [CPY] and TABCUR [TCU] tables are open and contain the company being processed as well as the currency of the main general ledger.

SKIPDAE2: Read of entry lines belonging to the matching group

The SKIPDAE2 entry point is used to take control in the VAT declaration on collection program to exclude specific entries when reading the entries belonging to the matching group.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There is an open log file.

Different call cases

This entry point is called during the read of entry lines of the document belonging to the matching group being processed. The read is carried out on the GACCENTRYD table open with the [DAE2] abbreviation. This entry point is used to exclude specific entry lines from the standard program that loads into the variable grids the bases and VAT amounts that must be taken into account by the VAT declaration on collections.

Available variables and masks

The OK_DAE2 variable is set to 1 in standard before calling the entry point. If this variable is reset to zero in the specific program, the entry will not be taken into account.

Mask DCLVATFRA/BRI/... [DIA] (depending on the release localization context) is available and contains the function release parameters.

The COMPANY [CPY] and TABCUR [TCU] tables are opened and contain the company and currency in progress.
The GACCENTRY [HAE] table is opened and contains the header of the GACCENTRYD [DAE2] entry line in progress.