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

See also 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 :

Bullet point Miscellaneous receipt

Bullet point Miscellaneous issue

Bullet point Supplier receipt

Bullet point Customer delivery

Bullet point WO receipt

Bullet pointWO issue

Bullet point Location change

Bullet point Quality control

Bullet point Status change

Bullet point Return receipt

Bullet point Delivery return

Bullet point Stock count

Bullet point Inter-sites transfers

Bullet point Loan delivery

Bullet point Loan return

Bullet point Stock reintegration

Bullet point Sub-contractor delivery

Bullet point Re-division

Bullet point Put-away plan

Bullet point Value change

Bullet point Service request

Bullet point 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

See also Refer to documentation Implementation