BEFWRIJOU: Before posting of the accounting document

This entry point is used to insert additional logic just before the validation of the accounting document.

During the calculated postings generation, the program works through the calculated postings file to generate one or more accounting documents according to the setup.

The call to the entry point is carried out on the creation of each accounting document.

Context and operating method

Transaction

There is one transaction in progress.

Log file

There is a log file if the user has requested it in the launch criteria.

Different call cases

This entry point is called once the account positing masks are entered and the call to the CONTROLE of CPTBATCH but just before the call to VALPIECE of CPTBATCH.

Available variables and masks

The CPTCLP mask contains the launch criteria to generate the calculated postings.

The GACCENTx masks are initialized and entered for the creation of the accounting document.

Variable or mask

Definition

CPTCLP [DIA] Criteria mask

GACCENT0 [HAE0] 

Accounting document mask

GACCENT1 [HAE1]

Accounting documents mask (header)

GACCENT2 [HAE2]

Accounting documents mask (line)

VENTILE [VTL] Analytical distribution mask (line)
VENTILE2 [VTL2] Analytical distribution mask (grid)

Open tables

In the table below, the significant content flag indicates that the content is coherent with the context (...).

Table

Significant content

Table Title

GCLCACEPAR YES Calculated postings
GACCTMP NO Temporary accounting documents (header)

GACCTMPD

NO Temporary accounting documents (lines)
GACCTMPA NO Temporary accounting documents (analytical)
GACCENTRY NO Accounting documents (header)
GACCENTRYD NO Accounting documents (lines)
GACCENTRYA NO Accounting documents (analytical)
BALANCE according to the setup Balances
BALANA NO Dimensional balances
GJOURNAL NO Journals
CACNA NO Analytical natures
CACCE NO Analytical dimensions.
CADSP NO Analytical distributions
CADISTMP NO Temporary distributions
ACODNUM NO Document sequence number counter
AVALNUM NO Sequence number counter values
COMPANY YES Companies
FACILTY NO Sites
FACGROUP NO Site grouping
GTYPACCENT NO Document types
TABUNIT NO Unit of measure table
TABCUR NO

Currency table

FISCALYEAR NO Accounting fiscal years
PERIOD NO Accounting periods