Stock > Periodic processing > Purge > Stock transactions 

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

Presentation

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 MAXPURMVT setup. This general setup 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.

Close

 

Fields

The following fields are present on this tab :

Block number 1

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)

  • 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 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