Process FUNMANALL: Manual Allocation Management
MANALLFIL: Add selection criteria to the order lines to be allocated
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 used to add additional filters to the order lines.
It is called in the manual allocation processing FUNMANALL.
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 allocated phase.
Different call cases
This entry point is called:
in the manual allocation function, at the time of the definition of the selection criteria.
Available variables and masks
The order line selection mask [M :DIA] (SMANALL1) is still available.
The allocation entry mask [M :SAL2] (SMANALL2) is available. It is process of being loaded (Loading of the allocation lines for the product currently being processed).
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 |
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 |
MANALLSEL: 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 manual allocation processing FUNMANALL.
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 allocated phase.
Different call cases
This entry point is called:
in the manual allocation function 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] (SMANALL1) is still available.
The allocation entry mask [M :SAL2] (SMANALL2) is available. It is process of being loaded (Loading of the allocation lines for the product currently being processed).
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 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 |