Period Table - org_acct_periods

本文介绍如何使用 Oracle 库存模块管理组织的财务期间,包括开放和关闭期间的过程及相关的数据表。提供了 SQL 查询示例来展示如何检索和更新期间状态,并讨论了与期间关闭相关的表。

ORG_ACCT_PERIODS holds the open and closed financial periods for organizations. When a period is opened, the period open form (INVTTGPO) pulls in the next available period from the GL table GL_PERIODS.

ORG_ACCT_PERIODS holds the relevant data, such as period start, end and close dates. Note that only postable periods will be brought over. You may create non-postable periods in Oracle General Ledger or in the GL forms provided with Oracle Inventory.

If data exists in the PERIOD_CLOSE_DATE column, then the period has been closed and no more transactions can be made against the closed period.

The combination of the PERIOD_CLOSE_DATE and OPEN_FLAG columns reflects the status of a period. When OPEN_FLAG = 'P', it means the period close is processing. When it equals 'N', the period close process is completed. When OPEN_FLAG is 'Y' and PERIOD_CLOSE_DATE is null, it means the period is open. Otherwise, it implies the period close process has failed.



Org_Acct_Periods Queries Sample:

SELECT * FROM org_acct_periods WHERE organization_id = 112 AND period_year IN (2010,2011);

SELECT * FROM org_acct_periods WHERE acct_period_id = 17040;


Mtl_Material_Transactions & Org_Acct_Periods Scripts Sample:

SELECT *
mmt.acct_period_id mmt_acct_period_id,
mmt.transaction_id mmt_transaction_id,
mmt.transaction_date mmt_transaction_date
FROM mtl_material_transactions mmt, org_acct_periods oap
WHERE mmt.costed_flag = 'E'
AND mmt.organization_id = oap.organization_id
AND oap.acct_period_id = mmt.acct_period_id
AND (mmt.transaction_date < oap.period_start_date
OR mmt.transaction_date > oap.schedule_close_date + .99999);

UPDATE MTL_MATERIAL_TRANSACTIONS
SET LAST_UPDATED_BY = -8468014,
ACCT_PERIOD_ID = 5008,
COSTED_FLAG = 'N',
ERROR_CODE = NULL
WHERE ORGANIZATION_ID = 87
AND COSTED_FLAG = 'E'
AND TRANSACTION_TYPE_ID = 10008
AND ACCT_PERIOD_ID = 4007
AND ERROR_CODE = 'CST_MATCH_DATE_PERIOD';

How to Re-Open a Closed Inventory Accounting Period (For Details,NEED Check Doc ID 472631.1)

-- A script to list all inventory periods for a specific organization
-- 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;


Period Related Tables

MTL_PERIOD_SUMMARY

MTL_PERIOD_SUMMARY records the inventory value for each subinventory in an organization at the end of a period. The table is populated when period close is performed.

Query Like:

SELECT inventory_value FROM mtl_period_summary WHERE organization_id = 207 AND secondary_inventory = 'FGI' AND acct_period_id = 109;


CST_PERIOD_CLOSE_SUMMARY

This table stores the result of the period close summarization process enhancement introduced in 11.5.10 (Patchset J). Previously, periods were summarized into MTL_PERIOD_SUMMARY or MTL_PERIOD_CG_SUMMARY. The old and new tables are consolidated under the views MTL_PERIOD_SUMMARY_V and MTL_PERIOD_CG_SUMMARY_V.

In this table, summarization results are stored at the item, cost group and subinventory level for each accounting period and organization combination. The two main results of the summarization are:
1) ACCOUNTED_VALUE - The sum of accounting distributions for the relevant period

2) ROLLBACK_VALUE - The product of the rolled back onhand quantity and cost.


MTL_PERIOD_CG_SUMMARY

The table contains summarized inventory valuation details for an accounting period, organization, inventory type and cost group


MTL_PER_CLOSE_DTLS

MTL_PER_CLOSE_DTLS stores period end quantities, costs, and values by subinventory, item, and cost group for an organization under Average Costing for Work in Process. The table also stores the period end value in intransit inventory for the organization. This table is populated by the period close program.
This table is a child table of MTL_PERIOD_SUMMARY.
The table records the inventory value for each inventory item by cost group in the organization at the end of a period.

The COST_GROUP_ID for the intransit inventory will be 1 and SECONDARY_INVENTORY will be NULL.

`_radius_update_client_list()` 里 `_radius_acct_getAllStat` 失败以及 `shmget failed, reason: 2` 错误可能有多种原因,以下是一些可能的解决办法: ### 共享内存权限问题 `shmget failed, reason: 2` 错误代码 2 通常表示 `ENOENT`,即系统找不到指定的文件或目录。在共享内存的上下文中,这可能意味着共享内存段不存在或者没有足够的权限来访问它。 可以检查并修改共享内存的权限,确保 RADIUS 进程有足够的权限来创建和访问共享内存段。 ```bash # 查看共享内存段的权限 ipcs -m # 修改共享内存段的权限 ipcmk -M <size> -p <permissions> ``` ### 共享内存资源耗尽 系统的共享内存资源可能已经耗尽,导致 `shmget` 调用失败。可以通过调整系统的共享内存参数来解决这个问题。 编辑 `/etc/sysctl.conf` 文件,增加共享内存的限制: ```plaintext # 增加共享内存的限制 kernel.shmmax = 2147483648 kernel.shmall = 524288 ``` 然后执行以下命令使配置生效: ```bash sysctl -p ``` ### RADIUS 配置问题 检查 RADIUS 配置文件,确保 `_radius_acct_getAllStat` 所需的配置项正确无误。 ```plaintext # 检查 radiusd.conf 等配置文件 nano /etc/raddb/radiusd.conf ``` ### 进程冲突 可能存在其他进程占用了共享内存资源,导致 RADIUS 进程无法正常创建和访问共享内存段。可以使用 `ipcs` 和 `ipcrm` 命令来查看和清理共享内存资源。 ```bash # 查看共享内存段 ipcs -m # 删除指定的共享内存段 ipcrm -m <shmid> ``` ### 日志检查 查看 RADIUS 系统的日志文件,获取更多关于 `_radius_acct_getAllStat` 失败和 `shmget` 错误的详细信息。 ```bash # 查看 RADIUS 日志文件 tail -f /var/log/radius/radius.log ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值