How to Re-Open a Closed Inventory Accounting Period
Information in this document applies to any platform.
Scripts to Re-open an Inventory Accounting Period that has accidentally been closed.
— A script to reopen closed inventory accounting periods in 11.5.10
— 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.
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;
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;
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;
commit
Leave a Reply
Want to join the discussion?Feel free to contribute!