8 Cost Changes

Suppliers often change the cost of items.

Cost is an important factor in individual transactions and many financial calculations in Merchandising. Changes in cost must be reflected in the information stored in Merchandising and pending transactions.

Cost Change Purge (ccprg)

Module Name

ccprg.pc

Description

Purge Aged Cost Changes

Functional Area

Cost Change

Module Type

Admin

Module Technology

ProC

Catalog ID

RMS476

Wrapper Script

rmswrap.ksh

Schedule

Oracle Retail Merchandising Batch Schedule

Design Overview

This program is responsible for removing old cost changes from the system. Cost changes are removed from the system using the following criteria:

  • The status of the cost change is either Delete or Canceled.

  • The status of the cost change is Rejected and the effective date of the cost change has met the requirement for the number of days that rejected cost changes are held.

  • The status of the cost change is Extracted and the effective date of the cost change has met the requirement for the number of days that extracted cost changes are held.

The number of days that rejected cost changes are held is determined by the system parameter Retention of Rejected Cost Changes (RETENTION_OF_REJECTED_COST_CHG). The number of days that extracted cost changes are held is determined by the system parameter Retention of Extracted Cost Changes (RETN_EXTRACTED_COST_CHG).

Restart/Recovery

N/A

Design Assumptions

N/A

Cost Change Purge (cost_change_purge_job)

Module Name

cost_change_purge_job

Description

Purge Aged Cost Changes

Functional Area

Cost Change

Module Type

Admin - Ad hoc

Module Technology

Background Processing

Catalog ID

N/A

Wrapper Script

b8dwrap.ksh

Schedule

Oracle Retail Merchandising 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 cost change header table based on its purge criteria from system parameter settings. The Retention of Rejected Cost Changes parameter will determine the number of days that rejected cost changes are held. The Retention of Extracted Cost Changes parameter will determine the number of days extracted cost changes are held. It also should meet the following criteria:

  • The status of the cost change is either Delete or Canceled.

  • The status of the cost change is Rejected and the effective date of the cost change has met the requirement for the number of days that rejected cost changes are held.

  • The status of the cost change is Extracted and effective date of the cost change has met the requirement for the number of days that extracted cost changes are held.

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 cost change header and other related cost change 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 8-1 Key Tables Affected

Table Select Insert Update Delete

PERIOD

Yes

No

No

No

PURGE_CONFIG_OPTIONS

Yes

No

No

No

RMS_BATCH_STATUS

Yes

No

No

No

B8D_PROCESS_CONFIG

Yes

No

No

No

JOB_AUDIT_LOGS

No

Ys

No

No

B8D_COST_CHANGE_PURGE_STG

Yes

Yes

No

Yes

COST_SUSP_SUP_HEAD

Yes

No

No

Yes

COST_SUSP_SUP_DETAIL

Yes

No

No

Yes

COST_SUSP_SUP_DETAIL_LOC

Yes

No

No

Yes

Design Assumptions

N/A

Process Scheduled Ownership Change Data (ownership_change_process)

Module Name

ownership_change_process.ksh

Description

Processes scheduled ownership change records from the Ownership Change related tables.

Functional Area

Foundation Data

Module Type

Business Processing

Module Technology

Ksh

Catalog ID

N/A

Wrapper Script

rmswrap_shell.ksh

Schedule

Oracle Retail Merchandising Batch Schedule

Design Overview

This batch program process scheduled and approved ownership change transaction records that are set to go into effect the next day. It updates costing and ownership attributes of item/supplier/country or item/supplier/country/location combinations.

Additionally, primary supplier and country is updated for item/location records. This process will also trigger creation of PO and RTV depending on ownership change type along with relevant tran data postings to account for financial impacts of such transactions. There will not be any tran data entries if non-inventoried consignment items are involved. In case the item on the ownership change has child items, then the children will also be updated with the same changes as the parent item. On successful completion of the batch, overall status of the Ownership transaction will be updated to 'Processed'.

To account for changes in the item and other transactions that can happen between the time the ownership change was approved and it's picked by the batch for processing; following validations are performed at the time of batch execution. The batch program will fail to process for the ownership change transaction if any of the item/supplier/country/location fails the following validations.

  1. The item should not be part of any pack; the exception being when its component of sellable only complex pack or an orderable (non-sellable) buyer complex pack

  2. The location should not be included in any other approved Ownership Change transaction for the similar Item/Supplier/Country combination

  3. Item should be associated with supplier site and country as specified in the items table.

  4. Current Primary supplier site of the location should be same as the one specified in Items table (When the change type is Update Primary Supplier)

  5. The item/supplier/country/location combination should not exist on any approved and not closed Purchase Order

  6. The item/supplier/country/location combination should not exist on any open Return to Vendor

  7. Any replenishment attribute should not be active for item/supplier/country/location combination

  8. The item/supplier/country/location combination should not exist on any Cost Change scheduled on or after the effective date of the ownership change

  9. Item/supplier/country/location should currently have a purchase type that corresponds to the ownership change type. For example: If Change Type is 'Owned to Consignment' then allow those locations with Purchase Type at Item/Supplier/Country/Location as 'Owned'. Similar treatment for other Change Types.

  10. The item/supplier/country location should have a purchase type of either consignment or concession (When the change type is Update Primary Supplier).

    The item/supplier/country/location should have the same purchase type for the current and new supplier/country; either both are consignment or both are concession. (When the change type is Update Primary Supplier).

Restart/Recovery

N/A

Design Assumptions

N/A

Purge Processed and Aged Ownership Change Data (ownership_change_purge)

Module Name

ownership_change_purge.ksh

Description

Purges old processed ownership change records from the Ownership Change related tables.

Functional Area

Foundation Data

Module Type

Admin

Module Technology

Ksh

Catalog ID

N/A

Wrapper Script

rmswrap_shell.ksh

Schedule

Oracle Retail Merchandising Batch Schedule

Design Overview

This batch program purges old and processed records from the ownership change related tables based on the Ownership Change Purge Days system parameter.

Note:

This process also supports archiving, if desired. For more information on how to configure this process for archiving, see the Merchandising Implementation Guide section titled "Background Configuration Process".

Restart/Recovery

N/A

Design Assumptions

N/A

Supplier Cost Change Extract (sccext)

Module Name

sccext.pc

Description

Apply Pending Cost Changes to Items

Functional Area

Cost Change

Module Type

Business Processing

Module Technology

ProC

Catalog ID

RMS355

Wrapper Script

rmswrap_multi.ksh

Schedule

Oracle Retail Merchandising Batch Schedule

Design Overview

The sccext module selects supplier cost change records that are set to go into effect the next day and updates the Merchandising item/supplier/country tables with the new cost. The item/location tables are also updated with the new cost if the cost change impacts the primary supplier/country for an item/location, as this is considered a base cost change. The process also triggers a recalculation of cost and deal application for pending purchase orders.

Restart/Recovery

The logical unit of work for the program is a cost change. The program is also restartable from the last successfully processed cost change record.

Design Assumptions

N/A