Entry points > Module A/P-A/R accounting > Standard script MODECHE 

CRITERE: Additional filter on open items

This entry point is used to modify the selection criteria of the open items established as a function of the entry.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases

The entry point is called just after the standard calculation of selection criteria and before the "Filter" instruction on the GACCDUDATE [DUD] table.

Available variables and masks

In version 120: The [L]CRITERE variable contains the selection criteria calculated by the standard program and it is possible to modify it. Be aware that this string has a maximum length of 255 characters.

The criteria entry screen can be accessed under the [DDM] abbreviation.

In version 130, the [L]CRITERE2 variable (extension to the CRITERE variable) and the [M :DDM]CRI field (criterion entered by the user) are also available.

 Open tables

No table presents significant content.

ECHEANCE: Update of the tables

Use this entry point to take over upon the display of an open item in the open item management processing (MODECHE function).

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases

The entry point is called during the read of the GACCDUDATE [DUD] table.

The OK variable set to 0 is used to omit the open item to display.

Available variables and masks

The criteria entry screen can be accessed under the [DDM] abbreviation.

 Open tables

Table

Significant content

Table Title

GACCDUDATE [DUD]

Yes

Open items

GACCENTRY [HAE]

Yes

Accounting documents

GACCENTRYD [DAE]

No

Accounting document lines

BPARTNER [BPR]

No

 BP

BPCUSTOMER [BPC]

No

 Customers

BPSUPPLIER [BPS]

No

 Suppliers

GTYPACCENT [GTE]

Yes

 Entry types

ECHEANCE: Update of the tables

Use this entry point to take over in the open item update transaction in order to load specific fields or fields from other tables.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There is no open log file.

Different call cases

The entry point is called in the open item update transaction and in the read loop for the lines in the open item entry mask. I is the read variable for the mask lines. The entry point is set after the loading of the fields in the DUDATMGT2 [SAI1] mask in the GACCDUDATE open item file open with the [DUD2] abbreviation.

Available variables and masks

The I variable contains the number for the current screen line.

Open tables

Table

Significant content

Table Title

GACCDUDATE [DUD2]

Yes

Open items

GACCENTRY [HAE]

Yes

Accounting documents

GACCENTRYD [DAE]

No

Accounting document lines

BEFWRIHDU: Modification of fields in HISTODUD

Use this entry point to take over during the archiving of open item, just before the entry of a open item in the HISTODUD standard table.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

There is no open log file.

Different call cases

This entry point is called in the entry transaction of a open item in the HISTODUD [HDU] processing. It is possible at this stage to modify the value of the [F:HDU] fields or to update the fields of a specific table.

[F:DUDH] contains the open item being archived.

Available variables and masks
Open tables

Table

Significant content

Table Title

HISTODUD [HDU]

Yes

Open item archive

GACCDUDATE [DUDH]

Yes

Open items