AUTALLFIL

This entry point is used to insert additional logic during the definition of the selection criteria for the order lines to be allocated.

It is uses to add additional filters to the order lines.

It is called in the manual allocation processing FUNAUTALL.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no log file open during the phase of selection of lines to be allocated.

Call context

This entry point is called during the selection criteria definition.

Available variables and masks

The order line selection mask [M :DIA] (SAUTALL) is still available.

The standard criteria are loaded in the CRITERE and CRITERE1 variables. These affect the SORDERQ file.

The FILSUP variable has been created to add additional criteria. It has a length of 250 characters. To ensure it operates correctly 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 example: Add an additional filter on the product reference that must start with "VEN".

FILSUP -= ‘ & ITMREF >= "VEN"’

FILSUP is evaluated at the same time as CRITERE and CRITERE1, during the filter on the SORDERQ file. The criteria must relate to the fields in the SORDERQ file.

 

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…). It is usually the case for the file that contains the header and not the file that contain the lines…

Table

Significant content

Table Title

SORDER

No

Order headers

SORDERQ

No

Order line quantities

SORDERP

No

Order line prices

SORDERC

No

Product / customer orders (contract orders)

ITMMASTER

No

Products

ITMFACILIT

No

Products - Sites

ITMMVT

No

Product - Movements

FACILITY

No

Sites

 

AUTALLSEL: Add authorization controls to the order line to be allocated

This entry point is used to insert additional logic during the end of the controls on the selection of an order line to be allocated.

It is used to add additional controls and tests making it possible to reject the order or the order line to be allocated.

It is called in the automatic allocation processing FUNAUTALL.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no log file open during the phase of selection of lines to be allocated.

Call context

This entry point is called at the end of the controls on the selection of an order line to be allocated.

Available variables and masks

The order line selection mask [M :DIA] (SAUTALL) is still available.

The [F :SOQ], [F :SOP] buffers are loaded with the order line that is being selected.

The [F :SOH] buffer is loaded with the corresponding order header.

All the standard selection controls have been carried out.   

In order for additional controls to be taken into account, the variable Ok must be positioned in the entry point. It is initialized to 2. By setting it to 1, the order line will not be taken into account in the allocation process.

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…). It is usually the case for the file that contains the header and not the file that contain the lines…

Table

Significant content

Table Title

SORDER

Yes

Order headers

SORDERQ

Yes

Order line quantities

SORDERP

Yes (if standard order)

Order line prices

SORDERC

Yes (if contract order)

Product / customer orders (contract orders)

ITMMASTER

Yes

Products

ITMSALES

Yes

Products - Sales

ITMFACILIT

Yes

Products - Sites

ITMMVT

No

Product - Movements

FACILITY

No

Sites

 

AUTALLTRT: Order line allocation processing

This entry point is used to insert additional logic at the beginning of the order lines processing.

It is used to carryout in a completely specific way, the allocation of order lines.

It is called in the automatic allocation processing FUNAUTALL.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

The log file is open.

Call context

The entry point is called at the beginning of the order line processing phase.

Available variables and masks

The order line selection mask [M :DIA] (SAUTALL) is still available.

The criteria variables CRITERE CRITERE1 CRITERE3 and FILSUP are loaded. They affect the SORDERQ table.

This entry point is used notably to scan the order lines to be allocated using a specific key.

The setting of the entry point of the GPE variable = 1 prohibits entirely the completion of the order line processing. It is appropriate thus for the management of custom processing, as well as the management of lines and the transactions as well as the complete updates of the tables.

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…). It is usually the case for the file that contains the header and not the file that contain the lines…

Table

Significant content

Table Title

SORDER

No

Order headers

SORDERQ

No

Order line quantities

SORDERP

No

Order line prices

SORDERC

No

Product / customer orders (contract orders)

ITMMASTER

No

Products

ITMFACILIT

No

Products - Sites

ITMMVT

No

Product - Movements

FACILITY

No

Sites

 

MODQTEALL: Modification of the quantity to be allocated to an order line

This entry point affects the automatic allocation of orders.

It is used to insert additional logic after the determination of the quantity to be allocated in order to intervene in this quantity.

It is called in the automatic order allocation function.

Context and operating mode

Transaction

There is a transaction in process (allocation update transaction, with update of an order line, the corresponding credit level and the order header).

The GOK variable is used and tested. It equals 1. It can be set to 0 if the transaction should be abandoned.

Log file

There is an open log file.

It gives for each order line processed, the allocated quantity and/or the shortage quantity, and for each non processed line, the reason why the allocation could not be carried out.

Different call cases - Available variables and masks

This entry point is called in the automatic allocation function (when the shortages are not processed).  

It is called during the transaction for the update of the allocation on a order line just after the determination of the quantity to be allocated and as a consequence before the different updates (allocation, order line, credit, order header).

The local variable containing the quantity to be allocated (on which the intervention will be carried out) is :  WALLSTU.

Just before the entry point WALLSTU is loaded automatically as follows: WALLSTU = [F :SOQ]QTYSTU – WTALLSTU - WSHTSTU  

The WSHTSTU  variable contains the shortage quantity for the order.

The WTALLSTU variable contains the quantity already allocated on the order, plus the quantities in the process of shipment and shipped.

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…).

Table

Significant content

Table Title

SORDER

Yes

Order headers

SORDERQ

Yes

Order line quantities

SORDERP

Yes if SOHCAT<>4

Order line prices

SORDERC

Yes if SOHCAT=4

Product / customer orders (contract orders)

ITMMASTER

Yes

Products

ITMMVT

No

Product - Movements

ITMFACILIT

Yes

Products - Sites

FACILITY

No

Sites

SOQMODTRI: Modification another read key

Entry point:  SOQMODTRI   which  is used  to define another read key for the order lines(SORDERQ)

Context and operating method

There is no transaction in progress.

Log file

The log file is open.

Call context

The entry point is called at the beginning of the order line processing phase.

Available variables and masks

This entry point is used to define the reading order of the order lines to be allocated

The setting of the GPE variable = 1 in the entry point prohibits the standard sort order Open tables

Table

Significant content

Table Title

SORDER

No

Order headers

SORDERQ

No

Order line quantities

SORDERP

No

Order line prices

SORDERC

No

Product / customer orders (contract orders)

ITMMASTER

No

Products

ITMFACILIT

No

Products - Sites

ITMMVT

No

Product - Movements

FACILITY

No

Sites