This entry point is called in the STKALL processing in the SUPALL sub-program for allocation deletion. This sub-program is itself called by the DELALL sub-program that carries out the deletion of all allocations for a document line.
It is located in the deletion transaction of the allocation on an order line in the automatic deallocation of orders function.
. A lock has been set on the order header.
. The [F:SOQ] order detail line has been read.
. The DELALL sub-program is called. It is located in the read loop of all the allocation lines. For each allocation line to delete
. The allocation line has been read. The [F:STA] buffer is loaded.
. The corresponding stock line has been read and updated (Decrease of the total allocated quantity). The [F:STO] buffer is loaded.
[F :STO]LOT : Contains the lot number
[F:STO]LOC : Contains the location
The lot expiry date can be easily found by reading the Lot number in the corresponding file STOLOT. This read requires the file to be open.
. Carried out just before the deletion of the allocation line.
. Carried out just before the update of the order line detail.
The entry point is called only if a log file is open (GTRACE is not equal to blank). Adding a new line to this log file is carried out using the following instruction:
Call ECR_TRACE("Description of the message to be added", 0 or 1) From GESECRAN.
(If 1, the line will appear in red).
NB: Knowing that this entry point is located in the SUPALL sub-program, it can be used by all functions that carry out deletions using this means. GFUNCTION can be used to identify the original function.
In the table below, the significant content flag indicates that the content is in phase with the context (the current customer is loaded…).
This grid is valid for the function of automatic deallocation of orders.
Table | Significant content | Table Title |
SORDER | Yes | Order headers |
SORDERQ | Yes | Order line quantities |
SORDERP | Yes | Order line prices |
SORDERC | Yes | Product / customer orders (open orders) |
ITMMASTER | Yes | Products |
ITMMVT | No | Product movements |
ITMFACILIT | Yes | Products sites |
FACILITY | No | Sites |
STOALL | Yes | Allocations |
STOCK | Yes | Stock |
Use this entry point to use the stock data of a detailed allocation upon allocation update.
There is one transaction in progress.
No trace file is open.
This entry point is located in the $TRT_STO label of the STKALL processing that is used in the CREALL, MODALL and SUPALL sub-programs of the STKALL processing.
It is called upon each creation, modification or deletion of a detailed allocation before it is updated.
[F :STA]VCRTYP contains the document type which the allocation originates from.
[L]WQTA contains the quantity to be allocated/deallocated
this quantity is positive in the case of a creation or an increase
it is negative in the case of a deletion or a decrease
The stock information associated with this allocation (serial no., lot, sub-lot, location, …) is located in the [F :STO] file class.
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 |
STOCK [STO] | Yes | Stock |
STOALL [STA] | No | Allocations |
Use this entry point to cancel the execution of the resynchronization processing for the quantities being processed upon calling the processing determining the stock to be issued.
There can be one transaction in progress. It is necessary to test the value of the "adxlog" supervisor variable in order to know the context:
adxlog = 0 : There is no transaction in progress.
adxlog = 1 : There is one transaction in progress.
Log file
No trace file is open.
This entry point is located in the STOCKALG sub-program of the STKALL processing (determination of the stock to be issued).
It is used not to execute the resynchronization of quantities being processed in an automatic manner (performance issue in the case of large volume, for example upon creation of sales deliveries).
It will be necessary to launch the resynchronization via the FUNSTOWIPW function in batch or in direct mode.
To inhib this automatic launch, set the local variable [L]WSTOWIPW = 0 in the STOWIPW entry point of the STKALL processing.
Table | Significant content | Table Title |
Use this entry point to authorize the automatic reorder of reorder requirements from locations that can be replenish.
There is no transaction in progress.
No trace file is open.
This entry point is located in the $TRAITE_STOCK label called in the STOCKALG sub-program of the STKALL processing (determination of the stock to be issued).
When using this automatic determination of the stock to be processed as part of the reorder plan, the locations that can be replenish are not taken into account.
To do so, you must set the variable GPE=1
Use this entry point to take into account stock lines selected and sorted by the algorithm of automatic determination of stock to allocate or to issue.
It is used to sort again the stock lines selected and sorted by the algorithm.
There is no transaction in progress.
No trace file is open.
This entry point is located in the STOCKALG sub-program of the STKALL processing.
It is called during the automatic determination of stock to be processed in order to carry out an allocation, an issue, an allocation or issue suggestion.
It is used to sort again the stock lines selected and sorted by the algorithm.
The significant variables are the following:
- The section 1 of the ALLPAR [ALP] mask contains the execution characteristics of the algorithm: movement and document types, site, product, allocation and management rules, quantity to be processed, etc.
- [M :ALP]TYPQTY indicates which quantity type is being used: 1=quantities in physical units and 2=quantities in active units (standard case)
- The grid section 4 of the ALLPAR [ALP] mask contains the stock lines selected and sorted by the algorithm.
Warning: The grid has only been sorted on the [M :ALP]WCOND and [M:ALP]NLIG columns since the other columns have not been moved --> when a loop is carried out from 0 to [M:ALP]NBLIG, the values of these columns can be accessed via the [M:ALP]NLIG index.
Warning: the content of a field on the ALLPAR screen must never be modified.
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 |
ITMMASTER | Yes | Products |
ITMMVT | Yes | Product movements |
ITMFACILIT | Yes | Products sites |
ITMCATEG | Yes | Product categories |
STOLOT [STL1] | No | Lots |
STOCK [STO1] | No | Stock |
STOALL [STA1] | No | Allocations |
TABALLRUL | Yes if WTRUCOD<>’’ | Allocations/issues rules |
TABSTORUL | Yes | Management rules |
Use this entry point to intervene on some parameters of the automatic allocation such as the quantity to allocate.
There is no transaction in progress.
No trace file is open.
This entry point is located at the beginning of the GENSTOALL sub-program of the STKALL processing.
For example, it is used to intervene on the quantity to allocate.
The accessible parameters are:
- [M:ALP]QTY: Quantity to allocate (in active stock unit)
- The fields in section 1 of the ALLPAR setup screen are entered and accessible. Warning: any modification on these fields must be performed according to an informed decision.
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 |
ITMMASTER | Yes | Products |
ITMFACILIT | No | Products sites |
ITMCATEG | No | Product categories |
STOLOT [STL1] | No | Lots |
STOCK [STO1] | No | Stock |
STOALL [STA1] | No | Allocations |
TABALLRUL | No | Allocations/issues rules |
TABSTORUL | No | Management rules |
Use this entry point to modify the allocation/issue rule used upon automatic determination of the stock to allocate or issue.
There is no transaction in progress.
No trace file is open.
This entry point is located in the $APPEL_ALGO label in the STKALL process after loading the allocation/issue rule to use.
It is used to change the rule to be used by modifying the WTRUCOD local variable.
The accessible parameters are:
- [M:ALP]VCRTYP: Entry type (local menu no. 701)
- [M:ALP]PECSCOLOC: Consideration of subcontract locations (1=no, 2=yes)
For example, in order to modify the allocation rule of a subcontract WO, the value of WTRUCOD must be edited as follows:
If [M:ALP]VCRTYP=10 & [M:ALP]PECSCOLOC=2 : WTRUCOD="xxx": Endif
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 |
ITMMASTER | Yes | Products |
ITMFACILIT | No | Products sites |
ITMCATEG | No | Product categories |
STOLOT [STL1] | No | Lots |
STOCK [STO1] | No | Stock |
STOALL [STA1] | No | Allocations |
TABALLRUL | No | Allocations/issues rules |
TABSTORUL | No | Management rules |
This entry point is positioned in the processing loop of the STOSORW work mask lines.
It is used to take over when allocating a document line (while possibly deallocating an original document).
There is one transaction in progress.
No trace file is open.
This entry point is located in the ENRSTOALL sub-program of the STKALL processing.
The LTRT variable is used to identify the call context:
0: allocation only
1: source line allocation + deallocation.
The STOSORW [SOW] screen is loaded.
The I variable corresponds to the index of the STOSORW mask line being processed (from 0 to NBLIG-1).
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 |
STOALL [STA1] | No | Allocations |