Process ANUBIC: Cancel Invoices
BEFDELBIC: Before the accounting cancellation of a customer invoice
Use this entry point to perform other processes following the accounting cancellation of a customer invoice.
The accounting cancellation of a customer invoice is associated with the KIG activity code
Context and operating mode
Transaction
There is one transaction in progress.
Log file
There is an open log file.
Different call cases
This entry point is called after the standard accounting cancellation process for a customer invoice (update of customer transactions, deletion of the accounting document, balance devaluation, update of open items) but just before the Change validation confirmation instruction. Upon return from this entry point, the GPE variable is tested and used to globally validate or reject the updates carried out.
The accounting cancellation is called from a customer BP invoice (GESBIC function).
Available variables and masks
Variable or mask |
Definition |
Mask [M:BIC0,1,2,3] |
Customer BP invoices |
INVOICE variable |
Customer invoice number to be canceled |
TYPPCE, DOCUMENT variables |
Accounting document number (TYP&NUM) associated with the invoice |
Open tables
Table |
Significant content |
Table Title |
GACCENTRY [HAE] |
Yes |
Accounting documents |
GACCENTRYD [DAE] |
No |
Accounting documents lines |
GACCENTRYA [DAA] |
No |
Accounting analytical lines |
BALANCE [BAL] |
No |
Balances |
BALANA [BLA] |
No |
Dimensional balances |
GACCDUDATE [DUD] |
No |
Open items |
SINVOICE [SIH] |
Yes |
Sales invoices |
BPCUSTMVT [MVC] |
Yes |
Customer transactions |
TABCUR [TCU] |
No |
Currency tables |
TABCHANGE [TCH] |
No |
Currency exchange rate tables |
DELVCRINV: Accounting cancellation of a customer invoice
Use this entry point to take control and reroute the standard customer invoice accounting cancellation program.
The accounting cancellation of a customer invoice is associated with the KIG activity code
Context and operating method
Transaction
There is no transaction in process.
Log file
There is an open log file.
Different call cases
This entry point is called at the very beginning of the standard accounting cancellation subprogram for a customer invoice (update of customer transactions, deletion of the accounting document, balance devaluation, update of open items).
Upon return from this entry point, the GPE variable is tested. If the value is positioned to 1 in the dedicated processing, the standard accounting cancellation program is not run.
Available variables and masks
Variable or mask |
Definition |
Mask [M:BIC0,1,2,3] |
Customer BP invoices |
INVOICE variable |
Customer invoice number to be canceled |
AFTDELVCR: After deleting the accounting document
Use this entry point to take control after deleting the accounting entry i.e. after executing the 'Delete' instruction on the GACCENTRY, GACCENTRYD and GACCENTRYA tables and so control the deletion of a specific table records.
Context and operating method
Transaction
There is one transaction in progress.
Log file
There is an open log file.
Different call cases
This entry point is called in the standard accounting cancellation subprogram for supplier invoices and before the 'Delete' instruction on accounting entry tables in order to delete the entry (GACCENTRY, GACCENTRYD, GACCENTRYA).
Available variables
Variables |
Definition |
TYPPCE, DOCUMENT variables |
Type and accounting entry number associated with the invoice |
|
Open tables
Table |
Significant content |
Table Title |
GACCENTRY [HAE] |
No |
Accounting documents |
GACCENTRYD [DAE] |
No |
Accounting documents lines |
GACCENTRYA [DAA] |
No |
Accounting analytical lines |
BALANCE [BAL] |
No |
Balances |
BALANA [BLA] |
No |
Dimensional balances |
GACCDUDATE [DUD] |
No |
Open items |
BEFMAJCLI: Before updating amounts in customer movements
Context and operating method
Use this entry point to perform other processes before the update of the amounts in the customer movements.
The accounting cancellation of a customer invoice is associated with the KIG activity code.
Transaction
There is a transaction in progress.
Log file
There is an open log file.
Code context
This entry point is called before the standard accounting cancellation process for a customer invoice.
It is triggered during the update of customer transactions, deletion of the accounting document, balance devaluation, and update of open items.
The current sales invoice record is read.
The cancellation process is initiated from the Customer BP Invoice function (GESBIC).
This entry point allows executing additional processes before the standard update.
Available variables and masks
Variable / Mask | Description |
---|---|
[M:BIC0,1,2,3] | Customer BP invoices mask |
INVOICE | Customer invoice number to be canceled |
TYPPCE | Accounting document type |
DOCUMENT | Accounting document number |
PIECE | Document number |
FACTURE | Document number |
Open tables
In the table below, the significant content flag indicates that the content is in phase with the context.
Table | Significant content | Table Title |
---|---|---|
GACCENTRY [HAE] | Yes | Accounting documents |
GAJOUSTA [JST] | Yes | Journals - reports per period |
SINVOICE [SIH] | Yes | Sales invoices |
GACCENTRY [HAE2] | No | Accounting documents |
GACCENTRYD [DAE] | No | Accounting document lines |
GACCENTRYD [DAE0] | No | Accounting document lines |
GACCENTRYA [DAA] | No | Accounting analytical lines |
BALANCE [BAL] | No | Balances |
BALANA [BLA] | No | Dimensional balances |
BPCUSTMVT [MVC] | Yes | Customer transactions |
GACCDUDATE [DUD] | No | Open items |
PAYMENTD [PYD] | No | Payment lines |
TABCHANGE [TCH] | No | Currency exchange rate tables |
TABCUR [TCU] | No | Currency tables |
TRCVCRDOC [TVD] | No | Log file of accounting entries |