PIECE: Before the creation of the document

Use this entry point to take over before an entry is recorded by this program.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There is an open log file.

Different call cases

The PIECE entry point is called every time an entry is created. Unlike the entry points in the CPTAUTO program, this entry point is located after the controls.

Available variables and masks

The [F:HAE] class is loaded, the entry point is located just before the "Write" instruction. The entry elements are on the [HAE0], [HAE1] and [HAE2] screens.

Open tables

Only the [F :HAE] class can be used.

DELVCR: Deletion of an accounting document

Use this entry point to take over in the sub-program for the deletion of an accounting document.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There is an open log file.

Different call cases

The "DELVCR" entry point is called in the accounting document deletion transaction, following the deletion of the following standard tables: GACCENTRYD (entry lines), GACCENTRYA (analytical entry lines), GACCENTRY (Accounting document header) and GACCDUDDATE (Due dates).

At this stage of the transaction, the balance tables have already been updated.

Available variables and masks

The TYPPCE and PIECE local variables contain the type and the number of the document being deleted. 

OPNATB: Opening tables

Use this entry point to take over at the beginning of the accounting document validation program and open the specific tables that need to be updated.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is an open log file.

Different call cases

The "OPNATB" entry point is called right after the opening of the standard tables used by the accounting document validation program.

Available variables and masks

In the case of a validation in the GACCTMP, GACCTMPD and GACCTMPA temporary files, the DIRECT variable equals 0.

In the case of a validation in the GACCENTRY, GACCENTRYD and GACCENTRYA actual files, the DIRECT variable equals 1.