Purge Aged Stock Count (stock_count_purge_job)

Module Name

stock_count_purge_job

Description

Purge Stock Count

Functional Area

Stock Counts

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-step processing. It will have a threading assignment and a business logic processing.

Thread assignment program will filter eligible records from stock count header table based on its purge criteria from system variable settings. The Last End-of-Month Start Month parameter will determine records with earlier stock take date or those that have been flagged 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 delete the records from stock count related 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 16-2 Key Tables Affected

Table Select Insert Update Delete

SYSTEM_VARIABLES

Yes

No

No

No

RMS_BATCH_STATUS

Yes

No

No

No

B8D_PROCESS_CONFIG

Yes

No

No

No

JOB_AUDIT_LOGS

No

Yes

No

No

B8D_STOCK_COUNT_PURGE_STG

Yes

Yes

No

Yes

STAKE_LOCATION

Yes

No

No

Yes

STAKE_QTY

No

No

No

Yes

STAKE_CONT

No

No

No

Yes

STAKE_SKU_LOC

No

No

No

Yes

STAKE_PROD_LOC

No

No

No

Yes

STAKE_PRODUCT

No

No

No

Yes

STAKE_HEAD

Yes

No

No

Yes

Design Assumption

N/A