Resynchronization + stock control
Use this function to resynchronize or control automatically the various data contained in stock files, at a given site or folder level.
The following scripts are available:
- Resynchronization of stock lines
- Recalculation of product-site totals
- Resynchronization of analysis requests
- Resynchronization of stock counts
- Resynchronization of assemblies
- Recalculation of lot stocks
- Control of the FIFO stack
- Control of serial numbers
When the number of serial numbers associated with a stock line is different from the stock quantity, this automatic resynchronization script is not sufficient. A manual intervention, product by product, is necessary.
To do so, use the Resynchronization of series/stocks function. - Control of information relating to the License plate numbers: their status, location, management mode (single-lot or multi-lot), and all the information on their attached stock lines.
In some cases, the Resynchronization process updates the container. For instance, the container status is updated when it is assigned stock, even if it is considered as ‘free’ in the stock file. In contrast, specific errors are only reported in the log file because they require a manual intervention. For instance, this is true when the container is not physically located in the same location as the stock lines associated with it.
To correct these errors, use the License plate number operations function.
Please refer to the License plate number field help for more details on the performed controls.
These scripts can be run in direct or batch mode.
Prerequisite
Refer to documentation Implementation
Screen management
Entry screen
Enter your selection criteria, if needed, and select the resynchronization and control scripts to launch.
Once the script is complete, a log file is displayed, available for printing. This log file lists the errors found and any correction carried out.
Selections
Site (field STOFCY) |
Enter the storage site. It is initialized by default by the site associated with your function profile. |
All sites (field FCYALL) |
Select this check box so the selected scripts are applied to all the stock sites. |
Category Start: (field TCLCODSTR) |
Enter this field to select a range of categories. Specify the category corresponding to the selection start range. |
Category end: (field TCLCODEND) |
Enter this field to select a range of categories. Specify the category corresponding to the selection end range. |
From product (field ITMREFSTR) |
Enter this field to select a product or a range of products. Specify the reference of the product corresponding to the selection start range. |
To product (field ITMREFEND) |
Enter the ending product number for the selection. Product ranges are used to restrict the report to these products only. |
Resynchronizations
Stock lines (field SYNSTO) |
Select this check box to resynchronize the totals in the stock lines and trigger the purge of null stock lines. The calculation of allocated quantities is run in packing units (PAC) activated on potency-managed products. |
Quality checks (field SYNQLY) |
Select this check box to:
Different cases are possible. Loop on STOQLYD:
Loop on STOCK:
Loop on STOQLYH: When no record exists in STOQLYD then the STOQLYH record is purged.
|
Assemblies (field SYNBBY) |
Select this check box to resynchronize the remaining quantity headings prior to a potential disassembly (the processing is run for all sites). |
Product-site totals (field SYNITV) |
Select this check box to recalculate the site stock based on the stock lines of this site. The processing compares the file of product-site totals (ITMMVT) to the other files:
In the first instance, the system deletes the old amounts (storing the old values). After comparing the files described above, the ITMMVT file is updated when a variance has been established. This leads to updating all stocks (reserved stock, allocated stock, stock in transfer...) in the ITMMVT table. |
Counts (field SYNCUN) |
Check this box to resynchronize the stocks and trigger the purge of null stock lines. The process verifies that the product-sites, stock lines and locations blocked for stock counts are correctly identified. If this is not the case, the hold flag and the list of stock count records concerned are reset to zero. Additionally, the processing checks:
If inconsistencies are detected, they are corrected and reported in the log file. For instance:
|
Stock lots (field SYNLOT) |
Select this check box to recalculate and update the stock by lot/site based on the stock lines of this site.
|
Control
FIFO cost and stock (field CSTCTL) |
Select this check box to control the consistency between the quantity expressed in the stock and the quantity indicated in the FIFO stack for each product on the site. The script compares the STOCOST file to the STOCK file. When an anomaly is discovered, the error must be corrected manually. |
Single-lot (field FEACTL) |
Serial number (field SERCTL) |
Select this check box to reconciliate stock lines and the related serial numbers. |
License plate number (field LPNCTL) |
Select this check box to control the consistency of information relating to the License plate numbers: their status, location, management mode (single-lot or multi-lot), and all the information on their attached stock lines. In some cases, the Resynchronization process updates the container. In contrast, specific errors are only reported in the log file because they require a manual intervention. To correct these errors, use the License plate number operations function. The controls can be broken down as follows: 1/ Control on stock lines
If it is, the resynchronization process breaks the link between the containers and the stock lines. The log file specifies the stock chrono counter and the updated license plate numbers. 2/ Control on the internal container license plate number |
Miscellaneous
Reset QC frequency locks (field RAZFRE) |
The use of this check box is technical; it responds to the following situation: When the product is set up at the product-supplier level or at the product-site level in order to be subject to a periodic quality control, technical locks are managed by Enterprise Management on the ITMFACILIT and ITMBPS tables. In the event of an incident (e.g.: power outage), these locks may not always be deleted. In this case, the frequency of the quality control is faulty and the quality control is never triggered. |
Batch task
This function can be run in batch mode. The standard task FUNSTOR is provided for that purpose.
Error messages
In addition to the generic error messages, the following messages can appear during the entry :
Name of the site: xxx non-existent recordThis message is displayed when the specified site is not a declared site.
Lot stock de-synchronized… Correction carried outThis message is displayed when the script finds an anomaly in the stock lot file. The update of STOLOT with respect to STOCK is automatic.
Warehouse site de-synchronized… Correction carried outThis message is displayed when the script finds an anomaly in the site stock file. The ITMMVT file is automatically updated according to the information recorded in the files concerned (STOCK, STOALL…).
Orphan quality control line... Automatic deletionThis message means that the record in STOQLYD has no corresponding record in STOQLYH and STOCK.
Non-controlled quality control line... This control is to be completedThe quality control appears to be validated whereas one line has not been controlled yet. The script modifies the posting value of the VALFLG field by setting it to 1 and rewrites the record in STOQLYH.
Orphan quality control header... Automatic deletionThis message means that the record in STOQLYH has no corresponding record in STOQLYD. The record in STOQLYH is thus purged automatically.
Stock and FIFO price tables de-synchronized… FIFO price and stock control carried outThis message is displayed when the FIFO stack price and stock control processing has found an anomaly. The correction must be carried out manually.
Serial number not issued and not in stock... Automatic deletionWhen a serial number is not issued nor in stock, the deletion of the record in STOSER is automatic.