Purge Aged Returns to Vendors (rtv_purge_job)

Module Name

rtv_purge_job

Description

Purge Aged Returns to Vendors

Functional Area

Transfers, Allocations and RTVs

Module Type

Admin - Ad hoc

Module Technology

Background Processing

Catalog ID

N/A

Wrapper Script

b8dwrap.ksh

Schedule

Oracle Retail Merchandising Batch Schedule

Design Overview

This background job is composed of two steps processing. It will have a threading assignment and a business logic processing.

Thread assignment program will filter eligible records from return-to-vendor header table based on its purge criteria from system parameter settings. The RTV Order History Months parameter will determine the number of months between their completion date and current date exceeds as defined to be outdated records. These old/outdated RTV records should have all debit memos associated to have been posted. 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 delete the records from return-to-vendor header and other related/associated RTV tables. 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.

Restart/Recovery

N/A

Key Tables Affected

Table 13-4 Key Tables Affected

Table Select Insert Update Delete

RMS_BATCH_STATUS

Yes

No

No

No

B8D_PROCESS_CONFIG

Yes

No

No

No

JOB_AUDIT_LOGS

No

Yes

No

No

B8D_RTV_PURGE_STG

Yes

Yes

No

Yes

RTV_HEAD

No

No

No

Yes

RTV_DETAIL

No

No

No

Yes

INVC_HEAD

Yes

No

No

Yes

INVC_DETAIL

No

No

No

Yes

INVC_NON_MERCH

Yes

No

No

Yes

INVC_MERCH_VAT

Yes

No

No

Yes

INVC_DETAIL_VAT

Yes

No

No

Yes

INVC_MATCH_QUEUE

Yes

No

No

Yes

INVC_DISCOUNT

Yes

No

No

Yes

INVC_TOLERANCE

Yes

No

No

Yes

ORDLOC_INVC_COST

Yes

No

Yes

No

INVC_MATCH_WKSHT

Yes

No

No

Yes

INVC_XREF

Yes

No

No

Yes

RTVITEM_INV_FLOW

No

No

No

Yes

RTV_HEAD_CFA_EXT

No

No

No

Yes

Design Assumptions

N/A