This function deletes all the lots in the folder where the quantity is zero and where no movement has been carried out.

This process can be carried out either directly, in simulation mode or in Batch mode.

Prerequisite

SEEREFERTTO Refer to documentation Implementation

Screen management

A selection window is used to choose the purge criteria.

Entry screen

Without subsequent activity: This purge deletes all the lots where the quantity is null in the folder and for which no movement has been carried out since the specified date.

By default, the specified date corresponds to the current date minus the value (in months) of the MARPURLOT setup. If this setup is not defined, or its value is null, it will not be possible to purge the null lots from less than 12 months.

This deletion concerns the STOLOT, STOCK, STOQLYH and STOQLYD files. When a lot is null, normally no stock line must be associated with it. If all the same some exist, it implies that the STOCK and STOLOT tables are out of phase. It is then necessary to resynchronize the stock lines before carrying out a purge of the lot.

Similarly the STOQLYH and STOQLYD tables are not purged because if a lot is null, no quality control is normally associated with it. If however this is the case, the lot is deleted and the process purges the quality controls.

The Simulation tick box can be ticked when the process should not be launched in direct mode.

Process log file: The process generates a log file specifying the lots that have been purged and it is possible to print it.

Batch task

This function can be run in batch mode. The standard task FUNSTPL is provided for that purpose.

Error messages

In addition to the generic error messages, the following messages can appear during the entry :

The setup does not authorize a purge later than: ../../..

This message appears if the date entered is later than the authorized date.

Tables used

SEEREFERTTO Refer to documentation Implementation