Create Stock Count Requests Based on Schedules (stake_sched_explode_job)

Module Name

stake_sched_explode_job

Description

Create Stock Count Requests Based on Schedules

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

Thread assignment program will filter eligible records from stake count schedule and store or location list tables based on its review criteria from system parameter settings. The Stake Count Review Days parameter will determine and evaluate scheduled counts that are planned for x days from the current day. 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 create stock count requests based in the pre-defined schedules for a location. For Unit counts, the item list specified is exploded out to the transaction-level and written to the count/item/location table. For Unit & Value counts, the transaction-level items contained in the specified department/class/subclass will be written to the count/item/location and count/product/location tables. If the schedule was created using a location list, then this process also explodes that down to the store or virtual warehouse level. 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-1 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_STKSCHED_EXPLODE_STG

Yes

Yes

No

Yes

STAKE_SCHEDULE

Yes

No

Yes

No

V_RESTART_STORE_WH

Yes

No

No

No

PERIOD

Yes

No

No

No

CODE_DETAIL

Yes

No

No

No

STAKE_HEAD

No

Yes

No

No

STAKE_LOCATION

No

Yes

No

No

STAKE_PRODUCT

No

Yes

No

No

STAKE_PROD_LOC

No

Yes

No

No

STAKE_SKU_LOC

Yes

Yes

No

No

ITEM_MASTER

Yes

No

No

No

DEPS

Yes

No

No

No

SUBCLASS

Yes

No

No

No

PACKITEM

Yes

No

No

No

ITEM_LOC

Yes

No

No

No

SKULIST_DETAIL

Yes

No

No

No

LOC_LIST_DETAIL

Yes

No

No

No

LOCATION_CLOSED

Yes

No

No

No

COMPANY_CLOSED

Yes

No

No

No

INV_TRACK_UNIT_OPTIONS

Yes

No

No

No

Design Assumption

N/A