Stock > Periodic processing > Purge > Zero lots 

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

Presentation

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.

Close

 

Fields

The following fields are present on this tab :

Block number 1

  • Last activity date (field PURLOTDAT)

Specify the reference date for the purge. All inactive lot from this date will be deleted. (date last entries/issues)\ If possible, maintain the null lots in two stock counts in order to reassign the stocks.

Block number 2

  • Simulation (field SIM)

  • Simulation Mode ("Simulation" tick box checked): a fictitious adjustment of issue prices is performed. No modification is recorded. 
    A log file appears with the details of the performed update by clicking [Ok], at the end of the execution. The price adjustment should be used on a specific product, the simulation is limited to one BOM level.

  • Actual Mode ("Simulation" tick box not checked): an effective adjustment of issue prices is performed. A log file is available by selecting "detailed log file" in the STOTRACE- Log level stock update parameter (STO chapter, MIS group).

Close

 

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