CFMINVFIL: Add selection criteria to the invoices to be validated

This entry point is used to insert additional logic during the definition of the selection criteria for the invoices to be confirmed.

It is used to add additional filters on these contracts.

It is called in the automatic confirmation of invoices process FUNCFMINV. 

Context and operating method

Transaction

There is no transaction in process.

Log file

There is no log file open when in the invoices to be confirmed selection phase.

Call context

This entry point is called during the selection criteria definition.

Available variables and masks

The invoice selection mask [M :DIA] (SCI1) is still available.

The standard criteria are loaded in the CRITERE variable. They involve the invoice files (SINVOICE).

The FILSUP variable has been created to add additional criteria. It has a length of 250 characters. To aid the functioning during the evaluation, FILSUP is initialized to the string "1=1" if it has not been loaded by the entry point.

It is sufficient to complete it in the entry point.

For instance     : Add an additional filter on the ship-to customer that must start with "CLI".

FILSUP -= ‘ & BPCORD >= "CLI"’

FILSUP is evaluated at the same time as CRITERE during the filter on the SINVOICE file. The criteria must relate to the fields in the SINVOICE file. SINVOICE has been open under the abbreviation SI2.

Open tables

In the table below, the significant content flag indicates that the content is in phase with the context (the current customer is loaded...). Traditionally, this is the case for the file that contains the header and not the file that contains the lines...

Table

Significant content

Table Title

SINVOICE [SI2]

No

Invoice headers

SINVOICEV

No

Invoice header valuations

SINVOICED

Yes

Invoice lines

FACILITY

No

Sites

COMPANY

No

Companies

BPARTNER

No

BP

BPCUSTOMER

No

Customers

GACCOUNT

No

General ledger accounts

GACCCODE

No

Accounting codes

TABCUR

No

Currencies

TABCHANGE

No

Currency exchange rate

TABUNIT

No

Units.

GTYPACCENT

No

Journal types

FISCALYEAR

No

Accounting financial

PERIOD

No

Periods

GACCDUDATE

No

Open items

GAUTACE

No

Automatic journals

GJOURNAL

No

Journals

GAJOUSTA

No

Journal status

STOTRS

No

Transaction template

CACNA

No

Analytical natures

CADSP

No

Later distribution

CACCE

No

Analytical dimensions table

CAAUZ

No

Prohibitions table

 

CFMINVSEL: Addition of authorization controls for an invoice to be validated

This entry point is used to insert additional logic at the end of the authorization controls in the confirmation of an invoice. It is used in this way to add tests that are used to reject the invoice.

It is called in the invoice confirmation process FUNCFMINV

Context and operating method

Transaction

There is no transaction in process.

To refuse the confirmation of the invoice, it is necessary to set the OK variable to 1.

Log file

There is an open log file.

Different call cases

This entry point is called:

·                    in the invoice confirmation function at the end of the authorization controls of the confirmation of each invoice.

Available variables and masks

The Shipment selection mask SCI1 is available.

Open tables

In the table below, the significant content flag indicates that the content is in phase with the context (the current customer is loaded...). Traditionally, this is the case for the file that contains the header and not the file that contains the lines...

Table

Significant content

Table Title

SINVOICE [SI2]

Yes

It is necessary to use the abbreviation [SI2] and not [SIH]

Invoice headers

SINVOICEV

No

Invoice header valuations

SINVOICED

No

Invoice lines

FACILITY

No

Sites

COMPANY

No

Companies

BPARTNER

No

BP

BPCUSTOMER

No

Customers

GACCOUNT

No

General ledger accounts

GACCCODE

No

Accounting codes

TABCUR

No

Currencies

TABCHANGE

No

Currency exchange rate

TABUNIT

No

Units.

GTYPACCENT

No

Journal types

FISCALYEAR

No

Accounting financial

PERIOD

No

Periods

GACCDUDATE

No

Open items

GAUTACE

No

Automatic journals

GJOURNAL

No

Journals

 

 

 

 

CFMINVAFT: After invoice posting

This entry point is used to insert additional logic just after the posting of an invoice.
It makes it possible to call ALIM_ETAT of TRTX3ETA, for instance.

It is called in the invoice confirmation process FUNCFMINV.

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:

·                    in the invoice confirmation function at the end of the authorization controls of the confirmation of each invoice.

Available variables and masks

The invoice selection mask SCI1 is available.

Open tables

In the table below, the significant content flag indicates that the content is in phase with the context (the current customer is loaded...). Traditionally, this is the case for the file that contains the header and not the file that contains the lines...

Table

Significant content

Table Title

SINVOICE [SI2]

Yes

It is necessary to use the abbreviation [SI2] and not [SIH]

Invoice headers

SINVOICEV

No

Invoice header valuations

SINVOICED

No

Invoice lines

FACILITY

No

Sites

COMPANY

No

Companies

BPARTNER

No

BP

BPCUSTOMER

No

Customers

GACCOUNT

No

General ledger accounts

GACCCODE

No

Accounting codes

TABCUR

No

Currencies

TABCHANGE

No

Currency exchange rate

TABUNIT

No

Units.

GTYPACCENT

No

Journal types

FISCALYEAR

No

Accounting financial

PERIOD

No

Periods

GACCDUDATE

No

Open items

GAUTACE

No

Automatic journals

GJOURNAL

No

Journals