Entry points > Module Financials > Standard script CPTCLP 

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

GCLCACEPARYESCalculated postings
GACCTMPNOTemporary accounting documents (header)

GACCTMPD

NOTemporary accounting documents (lines)
GACCTMPANOTemporary accounting documents (analytical)
GACCENTRYNOAccounting documents (header)
GACCENTRYDNOAccounting documents (lines)
GACCENTRYANOAccounting documents (analytical)
BALANCEaccording to the setupBalances
BALANANODimensional balances
GJOURNALNOJournals
CACNANOAnalytical natures
CACCENOAnalytical dimensions.
CADSPNOAnalytical distributions
CADISTMPNOTemporary distributions
ACODNUMNODocument sequence number counter
AVALNUMNOSequence number counter values
COMPANYYESCompanies
FACILTYNOSites
FACGROUPNOSite grouping
GTYPACCENTNODocument types
TABUNITNOUnit of measure table
TABCURNO

Currency table

FISCALYEARNOAccounting fiscal years
PERIODNOAccounting periods