The PIECE entry point is used to take control of the generated pre-payment transfer document.
There is one transaction in progress.
There is an open log file.
This entry point is called just before the standard controls and the creation of the document.
The available masks in this entry point are listed in the table shown below.
The code of the automatic journal used for the generation is stored in the [L]PCEAUTO variable. By default, the automatic journal used is ACPT.
The index to be used to generate the document lines is the variable LIG. It is this variable that will be used to load the variable at the bottom of the table [M:HAE2]NBLIG, on exiting the entry point.
When entering the entry point, this index is different from zero as the lines have already been generated, just like the document entry masks [M:HAEx].
(Caution, the index of a table starts at 0).
Variable or mask | Definition |
Mask GACCENT0 [HAE0] | Document entry (header) |
Mask GACCENT1 [HAE1] | Document entry |
Mask GACCENT2 [HAE2] | Document entry (lines) |
Mask VENTILE [VTL] | Analytical distributions (document entry) |
Mask VENTILE2 [VT2] | Analytical distributions |
Char PCEAUTO(10) | Automatic journal name |
Integer LIG | Index for the lines in the accounting document |
The document will be generated in temporary tables for the accounting documents.
The triggering table is the accounting document line table, abbreviated as TB0.
Table | Significant content | Table Title |
GACCENTRYD [TB0] |
| Accounting document lines |
GACCTMP [HAE] |
| Accounting documents |
GACCTMPD [DAE] |
| Accounting documents lines |
GACCTMPA [DAA] |
| Accounting analytical lines |
GAUTACE [GAU] | X | Automatic journals |
GAUTACED [GAD] |
| Automatic journals (lines) |
GAUTACEF [GAG] |
| Automatic journal formulas |
GACCCODE [CAC] |
| Accounting codes |
GACCOUNT [GAC] |
| General ledger accounts |
GACCENTRY [HAE1] |
| Accounting documents |
GJOURNAL [JOU] |
| Accounting journals |
GACCDUDATE [DUD] | X | Due dates |
GACCDUDATE [DUD2] | X | Due dates |
This entry point LINE is used to take control on each line in the generated pre-payment transfer document.
There is one transaction in progress.
There is an open log file.
This entry point is called just after the standard loading of each automatic journal line.
The available masks in this entry point are listed in the table shown below.
The code of the automatic journal used for the generation is stored in the [L]PCEAUTO variable. By default, the automatic journal used is ACPT.
The index to be used to modify one of the lines in the document, is the variable LIG.
Caution, the value of LIG is 0 for the first line in the automatic journal.
Variable or mask | Definition |
Mask GACCENT0 [HAE0] | Document entry (header) |
Mask GACCENT1 [HAE1] | Document entry |
Mask GACCENT2 [HAE2] | Document entry (lines) |
Mask VENTILE [VTL] | Analytical distributions (document entry) |
Mask VENTILE2 [VT2] | Analytical distributions |
Char PCEAUTO(10) | Automatic journal name |
Integer LIG | Index for the lines in the accounting document |
The triggering table is the accounting document lines table, abbreviation TB0.
Table | Significant content | Table Title |
GACCENTRYD [TB0] |
| Accounting document lines |
GACCTMP [HAE] |
| Accounting documents |
GACCTMPD [DAE] |
| Accounting documents lines |
GACCTMPA [DAA] |
| Accounting analytical lines |
GAUTACE [GAU] | X | Automatic journals |
GAUTACED [GAD] | X | Automatic journals (lines) |
GAUTACEF [GAG] |
| Automatic journal formulas |
GACCCODE [CAC] |
| Accounting codes |
GACCOUNT [GAC] |
| General ledger accounts |
GACCENTRY [HAE1] |
| Accounting documents |
GJOURNAL [JOU] |
| Journals |
GACCDUDATE [DUD] | X | Due dates |
GACCDUDATE [DUD2] | X | Due dates |
This entry point is used to add an additional filter to load the prepayment open items.
There is no transaction.
There is an open log file.
This entry point is called just after the initialization of the standard filter used for the allocation table.
The variable to be used in the two functions is the FILTSPE variable, with a length of 250.
The standard filter is contained in the FILTRE variable. Its content is:
Variable |
Definition |
[F:DUD]CPY |
Company |
[F:DUD]FCY |
Site |
[F:DUD]BPRPAY |
BP |
[F:DUD]FLGCLE |
1 = Closed |
[F:DUD]DUDSTA |
2 = Status |
[F:DUD]SNS |
Sign |
[F:DUD]BPRTYP |
Customer or Supplier BP type |
[F:DUD]REFINTLIN |
Open item internal number |
Table |
Significant content |
Table Title |
GACCENTRYD [TB0] |
|
Accounting document lines |
GACCTMP [HAE] |
|
Accounting documents |
GACCTMPD [DAE] |
|
Accounting documents lines |
GACCTMPA [DAA] |
|
Accounting analytical lines |
GAUTACE [GAU] |
X |
Automatic journals |
GAUTACED [GAD] |
|
Automatic journals (lines) |
GAUTACEF [GAG] |
|
Automatic journal formulas |
GACCCODE [CAC] |
|
Accounting codes |
GACCOUNT [GAC] |
|
General ledger accounts |
GACCENTRY [HAE1] |
|
Accounting documents |
GJOURNAL [JOU] |
|
Accounting journals |
GACCDUDATE [DUD] |
X |
Due dates |
GACCDUDATE [DUD2] |
X |
Due dates |
This entry point is used to take control just before the matching of the prepayment allocation entries.
There is one transaction in progress.
There is an open log file.
This entry point is called just before the declaration of the variable tables in which the entries to be matched together will be loaded.
The NBLET variable contains the number of open items linked to the invoice subject to a prepayment allocation. It is used for the sizing of the variable table that will be loaded with the data corresponding to the different open items that will be matched with the generated prepayment allocation entry.
Table | Significant content | Table Title |
GACCTMPD [DAT4] |
| Accounting documents lines |
GACCDUDATE [DUD] |
| Due dates |
GACCDUDATE [DUD2] |
| Due dates |
This entry point is used to take over in order to reroute the standard matching procedure of prepayment allocation entries with the invoice, when the prepayment allocation is performed via the customer or supplier prepayment allocation function.
There is one transaction in progress.
There is an open log file.
This entry point is called just before the call to the standard subprogram used for matching the prepayment allocation entries with the invoice. If the GPE variable is set to 1, the standard matching processing is not performed.
The NBLET variable contains the number of open items linked to the invoice subject to a prepayment allocation.
The LETNUM , LETLIG and LETIPT variable tables respectively contain the numbers of the entries (ACCNUM), the numbers of the open items and the allocated amounts used for matching the generated prepayment allocation entry with the allocated invoice.
Table | Significant content | Table Title |
GACCTMPD [DAT4] |
| Accounting documents lines |
GACCDUDATE [DUD] |
| Due dates |
GACCDUDATE [DUD2] |
| Due dates |