Process FUNDESALL: Automatic Deallocation
DESALLFIL: Add selection criteria to the order lines to be de-allocated
This entry point is used to insert additional logic during the definition of the selection criteria for the order lines to be de-allocated.
It is used to add additional filters to the order lines.
It is called in the de-allocation process FUNDESALL.
Context and operating method
Transaction
There is no transaction in process.
Log file
There is no log file open during the selection of lines to be de-allocated phase.
Call context
This entry point is called during the selection criteria definition.
Available variables and masks
The order line selection mask [M :DIA] (SDESALL) 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 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 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...). 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 |
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 |
DESALLSEL: Add authorization controls to the order line to be deallocated
This entry point is used to insert additional logic during the end of the controls on the selection of an order line to be de-allocated.
It is used to add additional controls and tests making it possible to reject the order or the order line to be de-allocated.
It is called in the de-allocation process FUNDESALL.
Context and operating method
Transaction
There is no transaction in process.
Log file
There is no log file open during the selection of lines to be de-allocated phase.
Call context
This entry point is called at the end of the controls on the selection of an order line to be de-allocated.
Available variables and masks
The order line selection mask [M :DIA] (SDESALL) is still available.
The [F :SOQ], [F :SOP] buffers are loaded with the order line that is in the process of being selected.
The [F :SOH] buffer is loaded with the corresponding order header.
All the standard selection controls have been carried out.
In order to take into account the additional controls, it is sufficient to position the variable Ok 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 de-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...). 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 |
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 |