Introduction:

Information in this document applies to any platform.

Oracle Cost Management – Version 11.5.10.0 and later

Oracle Inventory Management – Version 11.5.10.0 and later

Scripts to Re-open an Inventory Accounting Period that has accidentally been closed.

Cause of the issue:

If an Inventory Accounting Period has been closed prematurely by accident the following scripts can be used to re-open the accounting period if the corresponding GL period is open.  Re-Opening a closed period will allow transactions to be process for that period.

How do we solve:

Disclaimer: the re-opening of a closed inventory period could potentially cause data corruption and any data corruption caused by re-opening a closed inventory period will be the responsibility of the customer and no data fix will be provided for any data corruption that has been caused by re-opening a closed period.

Test thoroughly all scripts on a non-production instance, first backing up all table data prior to implementing in production.

— A script to list all inventory periods for a specific organization

— A script to reopen closed inventory accounting periods

— The script will reopen all inventory periods for the specified

— Delete scripts to remove the rows created during the period close process to prevent    duplicate rows

— organization starting from the specified accounting period.

— The organization_id can be obtained from the MTL_PARAMETERS table.

— The acct_period_id can be obtained from the ORG_ACCT_PERIODS table.

 

  1. Backup the following tables:

org_acct_periods, mtl_period_summary, mtl_period_cg_summary, mtl_per_close_dtls and cst_period_close_summary.

 

  1. SELECT acct_period_id period, open_flag, period_name name,

period_start_date, schedule_close_date, period_close_date

FROM org_acct_periods

WHERE organization_id = &org_id

order by 1,2;

 

  1. UPDATE org_acct_periods

SET open_flag = ‘Y’,

period_close_date = NULL,

summarized_flag = ‘N’

WHERE organization_id = &&org_id

AND acct_period_id >= &&acct_period_id;

 

  1. DELETE mtl_period_summary

WHERE organization_id = &org_id

AND acct_period_id >= &acct_period_id;

 

DELETE mtl_period_cg_summary

WHERE organization_id = &org_id

AND acct_period_id >= &acct_period_id;

 

DELETE mtl_per_close_dtls

WHERE organization_id = &org_id

AND acct_period_id >= &acct_period_id;

 

DELETE cst_period_close_summary

WHERE organization_id = &org_id

AND acct_period_id >= &acct_period_id;

 

5. commit

6. Re-summarize all periods after problematic period again in order by running ‘Period Close Reconciliation  Report’.

Note:

The tables,  mtl_period_summary, mtl_period_cg_summary and mtl_per_close_dtls are designed in 11i. After R12 upgrade they were not used.

But as the script is available from earlier days, those tables were kept like that without deleting from the resummarization script.

  Conclusion:

The re-opening of a closed period should not be used to back date transactions, the system allow back dated transactions but this may cause discrepancies between inventory and GL. Any discrepancies caused by back date transactions are not supported by Oracle and would have to be resolved with a manual adjustment to the General Ledger.

Recent Posts

Start typing and press Enter to search