Purge Aged Mass Return Transfers and RTV (mrt_purge_job)
Module Name |
mrt_purge_job |
Description |
Purge Aged Mass Return Transfers and RTVs |
Functional Area |
Transfers, Allocations and RTVs |
Module Type |
Admin - Ad hoc |
Module Technology |
Background Processing |
Catalog ID |
N/A |
Wrapper Script |
b8dwrap.ksh |
Design Overview
This background job is composed of two-step processing. It will have a threading assignment and a business logic processing.
Thread assignment program will filter eligible records from mass return transfer (MRT) table based on its purge criteria from system parameter settings. The MRT Transfer Retention days parameter will determine the time elapsed with MRT close date is less than the current date. Only MRTs with closed status (and all associated transfers that are also closed) are captured for deletion. These records are chunked and Thread ID is assigned for each. They will be stored temporarily in a staging table.
The Business logic program will process all records from the staging table. Using bulk processing, this program will purge the records from mass return transfer (MRT) table and its associated transfers and RTVs. It will free up and clean the staging table afterwards. There is a STOP ON NEXT feature in bulk processing (through a loop) where Administrators can stop this batch with a flip of this indicator.
Key Tables Affected
Table 13-3 Key Tables Affected
Table | Select | Insert | Update | Delete |
---|---|---|---|---|
PERIOD |
Yes |
No |
No |
No |
SYSTEM_OPTIONS |
Yes |
No |
No |
No |
RMS_BATCH_STATUS |
Yes |
No |
No |
No |
B8D_PROCESS_CONFIG |
Yes |
No |
No |
No |
JOB_AUDIT_LOGS |
No |
Yes |
No |
Yes |
B8D_MRT_PURGE_STG |
Yes |
Yes |
No |
Yes |
TSFHEAD |
Yes |
No |
No |
Yes |
TSFDETAIL |
No |
No |
No |
Yes |
SHIPMENT |
No |
No |
No |
Yes |
SHIPSKU |
Yes |
No |
No |
Yes |
SHIPITEM_INV_FLOW |
No |
No |
No |
Yes |
CARTON |
No |
No |
No |
Yes |
APPT_HEAD |
Yes |
No |
No |
Yes |
APPT_DETAIL |
Yes |
No |
No |
Yes |
DOC_CLOSE_QUEUE |
No |
No |
No |
Yes |
INVC_HEAD |
Yes |
No |
No |
Yes |
INVC_DETAIL |
Yes |
No |
No |
Yes |
MRT |
Yes |
No |
No |
Yes |
MRT_ITEM |
Yes |
No |
No |
Yes |
MRT_ITEM_LOC |
Yes |
No |
No |
Yes |
RTV_HEAD |
Yes |
No |
No |
Yes |
RTV_DETAIL |
No |
No |
No |
Yes |
TSFDETAIL_CHRG |
No |
No |
No |
Yes |