分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

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 , open_flag, period_name name, period_start_date, schedule_close_date, period_close_dateFROM org_acct_periodsWHERE organization_id = &&org_id AND period_year IN (2008)order by 1,2;UPDATE org_acct_periodsSET open_flag = 'Y',period_close_date = NULL,summarized_flag = 'N'WHERE organization_id = &&org_idAND acct_period_id >= &&acct_period_id;DELETE mtl_period_summaryWHERE organization_id = &org_idAND acct_period_id >= &acct_period_id;DELETE mtl_period_cg_summaryWHERE organization_id = &org_idAND acct_period_id >= &acct_period_id;DELETE mtl_per_close_dtlsWHERE organization_id = &org_idAND acct_period_id >= &acct_period_id;DELETE cst_period_close_summaryWHERE organization_id = &org_idAND 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.

分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

Period Table - org acct periods相关推荐

  1. MBEWH表数据更新逻辑

    无论移动平均价(Moving Average Price MAP)是否有更改,MBEWH表都会更新. MBEWH表记录了MBEW表的历史数据,而MBEW是物料评估(Material Valuation ...

  2. First Steps with TensorFlow代码解析

    注:本文的内容基本上都摘自tensorflow的官网,只不过官网中的这部分内容在国内访问不了,所以我只是当做一个知识的搬运工,同时梳理了一遍,方便大家查看.本文相关内容地址如下: https://de ...

  3. 机器学习速成课程 | 练习 | Google Development——编程练习:合成特征和离群值

    合成特征和离群值 学习目标: 创建一个合成特征,即另外两个特征的比例 将此新特征用作线性回归模型的输入 通过识别和截取(移除)输入数据中的离群值来提高模型的有效性 我们来回顾下之前的"使用 ...

  4. 机器学习速成课程 | 练习 | Google Development——编程练习:使用 TensorFlow 的起始步骤

    使用 TensorFlow 的基本步骤 学习目标: 学习基本的 TensorFlow 概念 在 TensorFlow 中使用 LinearRegressor 类并基于单个输入特征预测各城市街区的房屋价 ...

  5. python里default_新手对python default不是很理解它有什么用途

    以下这段代码的default怎么理解,是有个参数为default吗?那么这个default有什么用途呢?我是从c#转来学python的,看到这个函数觉得很奇怪,觉得default是多余的.(代码是从开 ...

  6. 学习笔记(二):使用 TensorFlow 的起始步骤(First Steps with TensorFlow)

    目录 1.工具包 TensorFlow 张量 (Tensor) 图 (graph) TensorBoard 2.tf.estimator API Estimator 预创建的 Estimator (p ...

  7. 2018年世界杯赔率预测 -DNN

    # -*- coding: utf-8 -*- ''' Created on 2018年7月2日 @author: user @summary: Predicting the winner of th ...

  8. 使用TensorFlow的基本步骤

    学习任务 学习使用TensorFlow,并以california的1990年的人口普查中的城市街区的房屋价值中位数作为预测目标,使用均方根误差(RMSE)评估模型的准确率,并通过调整超参数提高模型的准 ...

  9. PHP怎么读写XML?(四种方法)

    PHP怎么读写XML?(四种方法) 一.总结 1.这四种方法中,字符串的方式是最原始的方法.SimpleXML和DOM扩展是属于基于树的解析器,把整个文档存储为树的数据结构中,需要把整个文档都加载到内 ...

  10. python 股票指标库talib_TaLib在股票技术分析中的应用

    1.TaLib与技术分析技术分析是股票分析十分有效直接的手段,在实际投资中我们常常需要计算各种简单或复杂的技术指标来分析参考 对于技术指标的定义基本都大同小异,很多都是通用的且模块化的东西 对于不会写 ...

最新文章

  1. Webstorm常用快捷键备忘(Webstorm入门指南)
  2. UNITY 优化之带Animator的Go.SetActive耗时问题,在手机上,这个问题似乎并不存在,因为优化了后手机上运行帧率并未明显提升...
  3. 【纯技术贴】.NETStandard FreeSql v0.0.9 功能预览
  4. 中小学将逐步推广编程教育;勒索病毒攻击部分政府部门和医院;国内外药企密集调价;微软要给Win7用户推死亡通知,这就是今天的大新闻...
  5. 获取referer中的请求参数_Servlet获取AJAX POST请求中参数以form data和request payload形式传输的方法...
  6. 关于centos 7 中service iptables save 指令使用失败的结局方案
  7. JBPM工作流(八)——流程实例(PI)Process Instance
  8. java程序无法启动_无法打开java小程序?小迅支招
  9. 80x86汇编小站站长简单介绍-2014年08月23日
  10. 全国电子地图矢量数据行政区划POI矢量道路矢量河流水系测试样例数据下载
  11. mybatis 查询条件包含list
  12. 精读《算法 - 动态规划》
  13. LeetCode/LintCode 题解丨一周爆刷字符串:乱序字符串
  14. 这样美化PPT图表,真的好看到爆~
  15. postgres内存上下文
  16. 2万字系统总结,带你实现 Linux 命令自由?还不赶紧进来学习
  17. Linux常用命令——top命令
  18. 有效的括号(leetcode简单)
  19. 详细解读Windows8.1 Update中的WIMBoot新特性
  20. win7+PAE 支持大内存

热门文章

  1. [转载]NFC问题分析
  2. dell R720 单盘raid0配置
  3. c#/.net操作word插入表格实例
  4. logstash grok mysql_日志分析logstash插件-grok详解
  5. PKM个人知识管理整理(一)
  6. 微软各产品的生命周期
  7. vue项目集成金格WebOffice2015
  8. Mysql数据库的安装--三分钟搞定
  9. 如何将文字转换为二维码 python_用python将二维码转换成字符直接输出控制台
  10. 分时线的9代表什么_一位血亏百万股民血泪史告诉你:为什么要打板?