TRTX3CPT processing: TRTX3CPT
ENREG_ACCCCE: Used to enrich the structure of CPATANALIN before (re)writing.
Entry point used to populate specific fields of the CPTANALIN table.
Context and operating method
Transaction
There is no transaction in progress. However, it is possible to be in the transaction context of the calling object management.
Log file
There is no log file open.
Call context
The context can be either the creation or the modification of a document with account information/dimensions linked to this document. They are either created in CPTANALIN, or updated after the document is modified. The WMAJCOD parameter of the ENREG_ACCCCE subprogram containing the call of the entry point specifies the type of update:
"C" - Creation, "M" - Modification and "A" - Cancellation.
Available variables and masks
The subprogram containing the call to the entry point contains the following parameters:
WNOL: Index of the current line (nolign-1)
WNOMACC: Name prefix of the accounts. If "" = there is no account management Note: If there is "(" at the end of the name, this means that the accounts are in table ACC(0-9) instead of ACC1 to ACC10, for example contract orders
WNOMDSP: Name of the field for the distribution code. If "" = there is no distribution code
WNOMCCE: Name prefix of the analytical dimensions. Note: If the name does not start with "[", this means that this is a default dimension code used to load dimensions with an INISEC. If there is "(" at the end of the name, this means that the dimensions are in table CCE(0-19) instead of CCE1 to CCE20
WABRFIC: Abbreviation table of the lines of the document
WVCRTYP: Entry type
WVCRNUM: Entry number
WVCRLIN: Line number of the entry
WVCRSEQ: Sequence number of the entry
WCPLCLE: Key complement
WMAJCOD: Update code: "C" = Creation, "M" = Modification, "A" = Cancellation.
Open tables
The CPTANALIN table is open under the abbreviation [CAL2].
The tables with an abbreviation in WABRFIC are open. The WVCRNUM-WVCRLIN-WVCRSEQ and WCPLCLE set contains the key of the current record.