Refer to documentation Implementation
When the resynchronization processing is launched, it verifies that no records exist in STOREO having the STAFLG field incorrectly set to 2.
When the stock in a location that can be reordered is less than its reorder threshold, a record in the STOREO file is created with STAFLG set to 1.
At the reorder plan level, when a location change proposal is selected it implies that the corresponding line is reserved. The STAFLG field in STOREO then temporarily takes the value 2 in order to avoid this line appearing at the same time in the lines to be processed table in another "reorder plan" session. Once the reorder is processed (creation of a reorder list) and the issue of stock generated (without the validation of the list), the STAFLG field returns to 1.
When a record is locked in STOREO, the STAFLG field can keep the value 2. This leads to two possibilities :
Re-write of STOREO : The process verifies that the stock line has not been moved and that the location is still waiting replenishment. When this is true, it re-writes the corresponding record in STOREO with STAFLG set to 1.
Deletion of STOREO : The processing deletes the record in STOREO when the location has already been reordered.
This function can be run in batch mode. The standard task FUNSYNREO is provided for that purpose.