Purge stock movements
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
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.
Block number 1
Stock site (field STOFCY) |
Enter or select the storage site where the selected product is active. The Selection icon (magnifying glass) only suggests products that are referenced in the products-sites table. |
Reference date (field DATREF) |
All the movements corresponding to the selection of which the posting date is earlier than the entry date will be definitively purged. The maximum date to purge is set by the MAXPURTRK parameter. If this parameter is not defined or if its value is blank, it will not be possible to purge movements of less than 12 months. |
Selections
All movement types (field SELFLG) |
Tick the box if all movement types have to be purged |
Block number 3
field TRSTYP001 |
Tick the box if the stock movements of this type have to be purged. |
field TRSTYP002 |
field TRSTYP003 |
field TRSTYP004 |
field TRSTYP005 |
field TRSTYP006 |
field TRSTYP007 |
field TRSTYP008 |
Block number 4
field TRSTYP009 |
field TRSTYP011 |
field TRSTYP012 |
field TRSTYP013 |
field TRSTYP014 |
field TRSTYP017 |
field TRSTYP018 |
field TRSTYP019 |
Block number 5
field TRSTYP020 |
field TRSTYP021 |
field TRSTYP022 |
field TRSTYP023 |
field TRSTYP024 |
field TRSTYP025 |
Block number 6
Simulation (field SIM) |
|
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 recordThis 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.