CFMDLVFIL: Add selection criteria for the shipments to be confirmed

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

It is used to add additional filters on these shipments.

It is called during the automatic confirmation of shipment process FUNCFMDLV.

Context and operating method

Transaction

There is no transaction in process.

Log file

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

Call context

This entry point is called during the selection criteria definition.

Available variables and masks

The shipment selection mask [M :DIA] (SCD1) is still available.

The standard criteria are loaded in the CRITERE variable. They concern the shipment header file (SDELIVERY).

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 SDELIVERY file. The criteria must relate to the fields in the SDELIVERY file. SDELIVERY is open under the abbreviation SD2.

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

SDELIVERY [SD2]

No

Shipment header

SDELIVERY

No

Shipment header

SDELIVERYD

No

Shipment line

SORDERQ

No

Order line quantities

ITMMASTER

No

Products

ITMFACILIT

No

Products - Sites

BPCUSTMVT

No

Customer transactions

STOALL

No

Allocations

STOCK

No

Stock

STOLOT

No

Lots

STOSER

No

Serial number

STOTRS

No

Transaction template

STOWRK

No

Generator interface

AREPORT

No

Status

CFMDLVSEL: Addition of authorization controls for a shipment to be confirmed

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

It is called during the confirmation of shipment process FUNCFMDLV.

Context and operating method

Transaction

There is no transaction in process.

To refuse the confirmation of the shipment, 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 shipment confirmation function at the end of the authorization controls for the confirmation of each shipment.

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

SDELIVERY [SD2]

Yes

Shipment header

SDELIVERYD

No

Shipment line

SORDERQ

No

Order line quantities

ITMMASTER

No

Products

ITMFACILIT

No

Products - Sites

BPCUSTMVT

No

Customer transactions

STOALL

No

Allocations

STOCK

No

Stock

STOLOT

No

Lots

STOSER

No

Serial number