Close Transactions with no Expected Appointments, Shipments or Receipts (doc_queue_close_job)

Module Name

doc_queue_close_job

Description

Close Transactions with no Expected Appointments, Shipments or Receipts

Functional Area

Transfers, Allocation, 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 document close queue table based on un-Closed status of POs, Transfers and Allocations. These unique documents that do not have any outstanding appointments, shipments or receipts expected, receipts without appointments will be recorded on the document close queue table. Likewise, allocations sourced from an inbound receipt of another document (for example, POs, Transfers, Allocations, ASNs and BOLs) can only be closed if the sourcing document is closed. 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 update the records of each document type to attempt closure of each document. PO-type documents will call APPT_DOC_CLOSE_SQL.CLOSE_PO program. Transfer-type documents will call APPT_DOC_CLOSE_SQL.CLOSE_TSF program. Allocation-type documents will call APPT_DOC_CLOSE_SQL.CLOSE_ALL_ALLOCS program. All successful closure of document will be removed its entry from document close queue table. 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-2 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_DOC_CLOSE_QUEUE_STG

Yes

Yes

No

Yes

DOC_CLOSE_QUEUE

Yes

No

No

Yes

ORDHEAD

No

No

Yes

No

DEAL_CALC_QUEUE

No

No

No

Yes

ITEM_LOC_SOH

No

No

Yes

No

TSFHEAD

No

No

Yes

No

ALLOC_HEADER

No

No

Yes

No

Design Assumptions

N/A