Refer to documentation Implementation
When the resynchronization processing is started, it verifies that no records exist in STOSRG where STAFLG is set to 2 because of an error. It also verifies the coherence between STOSRG and STOSRGW.
When a line of stock is waiting put-away, the STAFLG field is set to 1. If this line is selected from the "put-away plan" function it implies that it is reserved. The STAFLG field temporarily takes the value 2 in order to avoid this same line appearing at the same time in the lines to be processed table for another "put-away plan" session. Once the line of stock is processed and the modification is confirmed, the original document disappears from the STOSRG.
When a record is locked in STOREO, the STAFLG field can keep the value 2. This leads to three possibilities :
Re-write STOSRG : The processing verifies that the line of stock is still waiting put-away. When this is true, it re-writes the corresponding record in STOSRG with STAFLG set to 1.
Deletion of STOSRG : The processing deletes the record in STOSRG when the corresponding stock line no longer exists (when the line has already been processed and stored).
Deletion of STOSRGW : The processing verifies the coherence between STOSRG and STOSRGW. The STOSRG details are stored in STOSRGW (when a put-away list has been recorded). If the record in STOSRG no longer exists, then the corresponding records in STOSRW are deleted.
Similarly, an additional check has been added at the level of the sum of the quantities in the process of being stored. This latter must not be greater than the quantity to be stored. For example, a receipt to dock has been carried out for 10 units (update of the quantity to be stored in STOSRG). A storage plan has then been created with a put-away list with a quantity of 10 units (record in STOSRG is updated as a result : the quantity in the process of being put-away is loaded and it is equal to the quantity to be stored). Then, a physical stock count is carried out (the counted quantity is 8 units instead of 10 units). The physical stock count confirmation as a consequence modified the record in STOSRG (the quantity to be put-away has passed to 8 units).
Consequences : On the validation of the put-away list, a blocking error message is returned. The user must modify the list.
The utility lists these records in the log file.
This function can be run in batch mode. The standard task FUNSYNSRG is provided for that purpose.