This function is used to purge the stock movements for a site.

This processing 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

This function is used to purge for a given warehouse site and for the selected movement types, all the stock movements where the posting date is earlier than the specified date.

A warehouse site must be specified. By default, the site associated with the operator in his profile function is pre-loaded.

Reference date: It is not possible to enter a date that is greater than the current date minus the value (in month) of the MARPURMVT - Stock purge security parameter. This general parameter is used to determine a reference date for the purge. If it is not defined or if its value is null, it will not be possible to purge the movements of less than 12 months.

The All movement types tick-box is used to purge all the movement types. A partial or manual selection is however possible. The following movement types can be selected :

 Miscellaneous receipt

 Miscellaneous issue

 Supplier receipt

 Customer delivery

WO receipt

WO issue

 Location change

 Quality control

 Status change

 Return receipt

Delivery return

 Stock count

 Inter-sites transfers

 Loan delivery

 Loan return

 Stock reintegration

 Sub-contractor delivery

 Re-division

 Put-away plan

 Value change

 Service request

 Consumption area reorder

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

Processing log file : The processing generates a log file for the purged stock movements. It is possible to print it.

Batch task

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

Error messages

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

Site name : xxx Non-existent record

This message appears when the specified site is not a declared site.

The purge of stock movements is not authorized later than ../../..

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

Tables used

SEEREFERTTO Refer to documentation Implementation