Process BATCHCPT: BATCHCPT
AP_COMMIT: After posting of the accounting document
This entry point is used to insert additional logic afterthe validation of an automatic journal.
Context and operating mode
Transaction
There is no transaction in process.
Log file
There is an open log file.
Different call cases
Entry point AP_COMMIT is called at each validation of a journal via the accounting batch task.
Availablevariables and masks
The journal is stored before its validation in the GACCENT0 [HAE0], GACCENT1 [HAE1] and GACCENT2 [HAE2] screens. All the fields in these fields are accessible. The [F :HAE], [F :DAE] and [F :DAA] classes are also on line.
Open tables
Only the [F :HAE] class can be used.
OPNATB: Opening tables
Use this entry point to take control at the beginning of the accounting batch task validation program and open the specific tables that need to be updated by the accounting task.
Context and operating method
Transaction
There is no transaction in process.
Log file
There is an open log file.
Different call cases
The 'OPNATB' entry point is called right after opening the standard tables used in the accounting task validation program.
Open tables
Tables GACCENTRY [HAE], GACCENTRYD [DAE], GACCENTRYA [DAA], GACCTMP [HAT], GACCTMPD [DAT], GACCTMPA [AAT] are open, but none contain significant content.
AFTWRIDAE: After writing in the entry lines table
Use this entry point to take control right after creating the entry line in the entry lines table GACCENTRYD [DAE].
Context and operating method
Transaction
There is one transaction in progress.
Log file
There is an open log file.
Different call cases
The 'AFTWRIDAE' entry point is called during the entry lines process, which are recorded in the GACCTMPD [DAT] temporary table, and right after creating an entry line in the GACCENTRYD [DAE] table.
Availablevariables and masks
The TYP and PIECE local variables respectively include the type and number of the entry used in the temporary tables and that will be recorded in the final accounting entry tables.
Open tables
Table |
Significant content |
Table Title |
GACCTMP |
Yes |
Accounting document header - temporary table |
GACCTMPD |
Yes |
Accounting entry lines - temporary table |
GACCTMPA |
No |
Analytical lines - temporary table |
GACCENTRY |
Yes |
Accounting document header |
GACCENTRYD |
Yes |
Accounting entry types |
GACCENTRYA |
No |
Analytical lines |
|
|
BEFWRIHAE: Before writing the accounting document header
Use this entry point to take control before writing to the accounting documents table GACCENTRY.
Context and operating method
Transaction
There is one transaction in progress.
Log file
There is an open log file.
Different call cases
The 'BEFWRIHAE' entry point is called after deleting the accounting document in the temporary tables (GACCTMP, GACCTMPD and GACCTMPA) and right before the 'Write [HAE]' instruction used to create the accounting entry in the GACCENTRY final table.
Availablevariables and masks
The TYP and PIECE local variables respectively include the type and number of the entry used in the temporary tables and that will be recorded in the final accounting entry tables.
Open tables
Table |
Significant content |
Table Title |
GACCTMP |
No |
Accounting document header - temporary table |
GACCTMPD |
No |
Accounting entry lines - temporary table |
GACCTMPA |
No |
Analytical lines - temporary table |
GACCENTRY |
Yes |
Accounting document header |
GACCENTRYD |
Yes |
Accounting entry lines |
GACCENTRYA |
No |
Analytical lines |
|
|