Process CPTAUTO: Automatic journal

PIECE: Before controls and validation of the journal

This entry point is used to insert additional logic during the validation of an automatic journal.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

A log file is normally open (it can depend on the context).

Different call cases

The PIECE entry point is called just before the recording of the journal.

Available variables and masks

Before its validation, the journal is stored in the GACCENT0 [HAE0], GACCENT1 [HAE1] and GACCENT2 [HAE2] screens.

All the fields in these screens are accessible and can be modified on the condition of respecting the general validation rules for a document. If you add new fields to the accounting document tables, they must be added in these screens.

Open tables

The tables that can be used are as follows:

Table Table description

GAUTACE [GAU]

Automatic journal

COMPANY [CPY]

Company

FACILITY [FCY]

Sites

TABCUR [TCU]

Currencies

In addition to these tables, the triggering table and the linked tables are online.

Other tables can be online according to the call context.

CLEGRP: Document lines grouping

This entry point is used to take control in order to identify the grouping of a document line.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

A log file is normally open (it can depend on the context).

Different call cases

the CLEGRP entry point is called just before the initialization of the NOL variable (index of the line about to be posted).

Available variables and masks

Before its validation, the journal is stored in the GACCENT0 [HAE0], GACCENT1 [HAE1] and GACCENT2 [HAE2] screens.

All the fields in these screens are accessible and can be modified on the condition of respecting the general validation rules for a document. If you add new fields to the accounting document tables, they must be added in these screens.

The CLEGRP local variable contains the grouping fields separated by ' / '. This variable can be completed.

Open tables

The tables that can be used are as follows:

Table Table description

GAUTACE [GAU]

Automatic journals

COMPANY [CPY]

Company

FACILITY [FCY]

Sites

TABCUR [TCU]

Currencies

GAUTACED [GAD]

Automatic journal line

GACCOUNT [GAC]

Account for the current line

BPARTNER [BPR]

Business Partner

In addition to these tables, the triggering table and the linked tables are online.

Other tables can be online according to the call context.

LIGNE: Journal line entry point

This entry point is used to take control each time a document general line is filled.

Context and operating mode

Transaction

There is one transaction in progress.

Log file

A log file is normally open (it can depend on the context).

Different call cases

The LIGNE entry point is called on the creation of each line in the journal.

Available variables and masks

Before its validation, the journal is stored in the GACCENT0 [HAE0], GACCENT1 [HAE1] and GACCENT2 [HAE2] screens.

All the fields in these screens are accessible and can be modified on the condition of respecting the general validation rules for a document. If you add new fields to the accounting document tables, they must be added in these screens.

The NOL local variable contains the index for the line that has just been created.

Open tables

The tables that can be used are as follows:

Table Table description

GAUTACE [GAU]

Automatic journals

COMPANY [CPY]

Company

FACILITY [FCY]

Sites

TABCUR [TCU]

Currencies

GAUTACED [GAD]

Automatic journal line

GACCOUNT [GAC]

Account for the current line

BPARTNER [BPR]

Business Partner

In addition to these tables, the triggering table and the linked tables are online.

Other tables can be online according to the call context.

LIN_ANA: Journal analytical lines entry point

This entry point is used to take control each time a document analytical line is filled.

Context and operating method

Transaction

There is one transaction in progress.

Log file

A log file is normally open (it can depend on the context).

Different call cases

The LIN_ANA entry point is called on the creation of each analytical line in the journal.

There are 2 possible contexts for the analytical loading:

  • The Automatic journal is set up with an Analytical table, the entry point will be called for each line read in the analytical table.

    The analytical lines are stored under the VENTILE2 [VT2] mask, and the pointers (start and end) are stored under the GACCENT2 [HAE2] mask via the PTV(NOL) and PTF(NOL) fields.

  • The Automatic journal is set up without an Analytical table, the entry point will be called once.

    The line will still be stored under the VENTILE2 [VT2] mask. According to the general lines setup, several general lines can be grouped in one single general line. However, the analytical lines are not grouped and the pointers (start and end) are stored under the GACCENT2 [HAE2] mask via the PTV(NOL) and PTF(NOL) fields.

The LIN_ANA entry point is not called when the general line is linked to a prior analytical distribution (data defined under the GESDSP function).

Available variables and masks

Before its validation, the journal is stored in the GACCENT0 [HAE0], GACCENT1 [HAE1], GACCENT2 [HAE2] and VENTILE2 [VT2] screens.

All the fields in these screens are accessible and can be modified on the condition of respecting the general validation rules for a document. If you add new fields to the accounting document tables, they must be added in these screens.

  • The NOL local variable contains the index for the general line that has just been created (access to the HAE2 mask).

  • The VENT local variable contains the index for the analytical line that has just been activated (access to the VT2 mask).

Open tables

The tables that can be used are as follows:

Table Table description

GAUTACE [GAU]

Automatic journals

COMPANY [CPY]

Company

FACILITY [FCY]

Sites

TABCUR [TCU]

Currencies

GAUTACED [GAD]

Automatic journal line

GACCOUNT [GAC]

Account for the current line

BPARTNER [BPR]

Business Partner

In addition to these tables, the triggering table and the linked tables are online.

Other tables can be online according to the call context.

OPNTAB: Tables opening entry point

This entry point is used to take control after opening the tables.

Context and operating method

Transaction

There is one transaction in progress.

Log file

A log file is normally open (it can depend on the context).

Different call cases

The OPNTAB entry point is called after opening the tables and declaring the variables, and before reading the automatic journal. It is used to define other tables using the same abbreviations.

Available variables and masks

The masks and variables are not yet initialized.

Open tables

The table that can be used is as follows:

Table Table description

COMPANY [CPY]

Company