By default, the [L]EVTDAT local variable is initialized at the most recent accounting date of the entries included in the group. Nevertheless, it can be changed for specific purposes if the event date of the HISTODUD table needs to be initialized differently.
Table | Significant content | Table title |
COMPANY [CPY] | No | Companies |
GACCENTRY [HAE] | Yes | Accounting documents |
GACCENTRYD [DAE] | Yes | Accounting document lines |
GACCDUDATE [DUD] | No | Open items |
The AFTCREVCR entry point is used to intervene after generating a profit and loss entry, or an exchange rate/rounding variance entry. The objective is to update a field in these entries or to populate a specific table.
There is one transaction in progress
If the TRACE variable is set to 1, it means that a log file is open. If TRACE is set to 0, there is no open log file.
The entry point is located right after the call to the GEN_PIECE subprogram which generates a profit and loss entry. It is also located after the second call to the GEN_PIECE subprogram used either to generate an exchange rate variance entry (EUR currency in one case and another currency in the other) or a rounding variance entry (if EUR currency used everywhere).
The PCETYP sized variable includes the type of the generated entry. IPCE is the current index of the variable
The PCENUM sized variable contains the number of the generated entry. IPCE is the current index of the variable
The REFERENTIEL variable contains the ledger type for which the variance is detected.
The MONTDEV and MONTDIF variables respectively include the variance amounts in transaction currency and ledger currency.
The XTBECR (entry line number), XTBECH (open item number), XTBIPT (amount of the open item in main general ledger currency) and XTBIPT2 (open item amount in open item currency) tables contain the data from the open items that belong to the matching group for which variances have been identified. The number of open items in the group is contained in the XNBECH variable.
Table | Significant content | Table title |
COMPANY [CPY] | No | Companies |
GACCENTRY [HAE] | Yes | Accounting documents |
GACCENTRYD [DAE] | Yes | Accounting document lines |
GACCDUDATE [DUD] | No | Open items |
The BEFWRIMTB entry point is used to intervene right before writing in the MTCBATCH batch matching table, to update one or several fields in the table.
There is one transaction in progress.
No open log file.
The entry point is located in the CPTLET script right before the WRITE in the MTCBATCH table. The purpose is to update one or several fields before writing a record in this table.
Table | Significant content | Table title |
MTCBATCH [MTB] | Yes | Batch matching |
GACCTMPD [DATX] | Yes | Accounting documents |
GACCENTRYD [DAEX] | Yes | Accounting document lines |
GACCDUDATE [DUD] | No | Open items |