This entry point is used to take control at the time of displaying the information linked to the general balance. (CNSBAF function).
Under the general balance inquiry, following on from the "Search" button, the programme runs through the general balance to display the contents according to the header criteria.
The call to the entry point is carried out each time the general balance is read.
There is no transaction in process.
There is no open log file.
This entry point is only called for the general balance inquiry for a legal company.
The CONSBAF1 mask (criteria header) and the CRITBAF (all the criteria using the 'Criteria' button) are used to give a list of the criteria defined for the general balance inquiry.
These masks are open and loaded.
The CONSBAF2 mask is a grid that is used to display the information for the general balance by account/business partner pair.
Variable or mask | Definition |
CONSBAF1 [BAF1] | Header criteria mask |
CONSBAF2 [BAF2] | Display grid |
CRITBAF [CBAF] | Detailedcriteria entry mask |
Integer NOL | Variable indicating the index for the line to be loaded |
Integer BDEB | Position of the first period read |
Integer BFIN | Position of the last period read |
Examples : Display of the columns 'Debit' (DEBIT field) and 'Credit' (CREDIT field) in the general balance inquiry.
[M:BAF2]DEBIT(NOL) += sum([F:BAL]DEB(BDEB..BFIN))
[M:BAF2]CREDIT(NOL) += sum([F:BAL]CDT(BDEB..BFIN))
In the table below, the significant content flag indicates that the content is coherent with the context (...).
Table | Significant content | Table Title |
BALANCE | YES | General balance |
GACCOUNT | NO | General ledger accounts |
FACILITY | NO | Site |
COMPANY | NO | Company |
FACGROUP | NO | Site grouping |
FISCALYEAR | NO | Accouting financial |
PERIOD | NO | Periods |
BPARTNER | NO | BPs |
TABCUR | NO | Currency tables |