Oracle EBS常用数据表
INV库存
organization 两个含义:
1. 经营单位,A/B/C分公司,A下面有A1,A2等工厂,主题目标是为了独立核算此组织
ORG,ORG_ID;
2. 库存组织,例如制造商的仓库,例如A1,A2等工厂
Organization_id;
Hr_Organization_Units
Org_Organization_Definitions
Mtl_Subinventory -库存组织单位
Mtl_Parameters -库存组织参数(没有用id,直接用name)
Mtl_System_Items_B -物料信息(同上,应用了库存组织name)
Mtl_Secondary_Inventories -子库存组织
Mtl_Item_Locattions -货位 - Subinventroy_Code
Mtl_Material_Transactions - (库存)物料事物表
Mtl_Transaction_Accounts -成本
Actual_Cost是通过成本算法计算出来的实际成本,主计量单位
现有量
汇总历史记录(正负合计)
Mtl_Material_Transactions
Mtl_Onhand_Quantities -现有量表,组织/子库存/货位/物品 summary可能按照挑库先进先出统计,如果设置了"不允许负库存",这样就不可能出现负数
Po采购
请购单头表
Po_Requisition_Headers_All
行表
Po_Requisition_Lines_All
采购订单
Po_Header_All
Po_Lines_All
采购接收-退货/组织间转移/正常状态都需要使用这个模块
Rcv_Transactions
1. 接收100单位货物,放入“待质检”货位
2. 接受/拒绝
3. 库存/退回
有三个不同的状态!例如:接收100个,80个接受入库,20个退回,那么有80个接受事务/20个退回事物
Select Transaction_Type,Destination_Type_Code From Rcv_Transactions
可以看出以下阶段:
A1.Receive – Receiving
A2.Accept – Receiving
A3.Deliery – Invetory(影响库存现有量)
如果按照正常模式,最后会触发产生mtl_Material_Transactions
销售订单
Oe_Order_Headers_All
Sold_From_Org_Id
Sold_To_Org_Id 就是客户层
Ship_From_Org_Id
Ship_To_Org_Id 就是客户收货层
Invoice_To_Org_Id 就是客户收单层
Deliver_To_Org_Id
和客户结构有关
客户 Ra_Customers
客户address Ra_Addresses
Address 货品抵达 Site Ra_Site_Uses_All
Address 发票抵达 Site
Oe_Order_Lines_All
Gl凭证
Gl_Je_Batches
凭证日期: Default_Effective_Date
会计期间: Default_Period_Name
原币种凭证批借贷方汇总: Running_Total_Dr/Cr 比如美元
本位币凭证批借贷方汇总: Running_Total_Accounted_Dr/Cr
Gl_Je_Headers -日记账头信息
批号: Je_Batch_Id
会计期间: Period_Name
币种: Currency_Code
汇率类型: Currency_Conversion_Type
汇率日期: Currency_Conversion_Date
帐套: Set_Of_Books_Id 参考 Gl_Sets_Of_Books
凭证类型: Je_Category 参考 Gl_Je_Sources
凭证来源: Je_Source
Gl_Je_Lines -日记账体信息
Code_Combination_Id -科目组合编号
Gl_Balances -总帐余额
Period_Net_Dr/Cr -净值
Begin_Balance_Dr/Cr -期初额
Ar应收发票
Ra_Customer_Trx_All
Customer_Trx_Id -发票编号
Bill_To_Site_Use_Id -客户收单方编号
Primary_Sales_Id -销售员
Reference是oracle提供的外部编号输入框,但是由于版本问题和长度(<=30),不建议用户使用,如果要使用外部编号,请使用说明性弹性域
Ra_Customer_Trx_Lines_All
Line_Id 行号
Inventory_Item_Id 可以为空,比如非物料的服务,只在description中出现 /税行
Description
Quantity_Invoice 开票数量
Line_Type 行类型 (一般/税)
Extend_Price 本行金额
注意:税行是隐藏行,所以至少会有两行
收款情况
Ar_Cash_Receipts_All(还包含了非收款信息)
Cash_Receipt_Id -内部code
Receipt_Number -收款号
Receipt_Date -收款日期
Amount -总额
Receipt_Type -现金/杂项 Cash/Misc
Functional_Amount -本位币计量金额
Ui上为receipts
核销关系不是一一对应,也不是一次核销100%,Ui上右下方的application 按钮
Ar_Receivable_Applications_All
Applied_Customer_Trx_Id 发票编号
Applied_Customer_Trx_Line_Id 发票行编号
Status App表示核销 /Unapp表示未核销
Amount_Applied 匹配金额
注意:红冲收款报表时间跨月的问题;必须联查 Ar_Cash_Receipts_All和 Ar_Cash_Receipt_History_All
Ap
应付帐款(是我方人员按照供应商提供的纸张发票信息录入)Ui 上的invoice
Ap_Invoices_All
实际付款payment
Ap_Checks_All
核销关系同ar,右下方的payment 按钮
Ap_Invoice_Payments_All客户余额表,情况比较复杂:比如两个用户合并,应收应付差额,预付款
资产信息fa_Additions
名称
编号
分类
数量
资产类别
Fa_Categories
资产帐簿
Fa_Book_Controls 和会计帐簿有什么关系?
Fa_Books
Ui中的inquiry
Mothed是折旧方法(直线法/产量法)
Fa_Distribution_History分配assignment,给什么部门使用多少
Location_Id 部门联查fa_Locations
折旧信息(分摊方法)
Fa_Deprn_Detail
Period_Counter 折旧期间编号
折旧事务(新增、重建、转移、报废)
Fa_Transaction_Headers
Select Fnd_Profile.Value('ORG_ID') From Dual
Select * From Hr_Operating_Units Hou Where Hou.Organization_Id=204
--Fnd
Select * From Fnd_Application
Select * From Fnd_Application_Tl Where Application_Id=101
Select * From Fnd_Application_Vl Where Application_Id = 101
----值集
Select * From Fnd_Flex_Value_Sets
Select * From Fnd_Flex_Values
Select * From Fnd_Flex_Values_Vl
----弹性域
Select * From Fnd_Id_Flexs
Select * From Fnd_Id_Flex_Structures Where Id_Flex_Code='GL#'
Select * From Fnd_Id_Flex_Segments Where Id_Flex_Code='GL#' And Id_Flex_Num=50671
Select * From Fnd_Profile_Options_Vl
Select * From Fnd_Concurrent_Programs 程序表
Select * From Fnd_Concurrent_Requests 请求表
Select * From Fnd_Concurrent_Processes 进程表
--Inv
Select * From Org_Organization_Definitions 库存组织
Select * From Mtl_Parameters 组织参数
Select * From Mtl_System_Items_B Where Inventory_Item_Id = 171 And Organization_Id=204 物料表
Select * From Mtl_Secondary_Inventories 子库存
Select * From Mtl_Item_Locations 货位
Select * From Mtl_Lot_Numbers 批次
Select * From Mtl_Onhand_Quantities 现有量表
Select * From Mtl_Serial_Numbers 序列
Select * From Mtl_Material_Transactions 物料事务记录
Select * From Mtl_Transaction_Accounts 会计分录
Select * From Mtl_Transaction_Types 事务类型
Select * From Mtl_Txn_Source_Types 事务来源类型
Select * From Mfg_Lookups Ml Where Ml.Lookup_Type = 'MTL_TRANSACTION_ACTION'
--Po
Select * From Po_Requisition_Headers_All 请求头
Select * From Po_Requisition_Lines_All 请求行
Select * From Po_Headers_All 订单头
Select * From Po_Lines_All 订单行
Select * From Po_Line_Locations_All
Select * From Po_Distributions_All 分配
Select * From Po_Releases_All 发送
Select * From Rcv_Shipment_Headers 采购接收头
Select * From Rcv_Shipment_Lines 采购接收行
Select * From Rcv_Transactions 接收事务处理
Select * From Po_Agents
Select * From Po_Vendors 订单
Select * From Po_Vendor_Sites_All
--Oe
Select * From Ra_Customers 客户
Select * From Ra_Addresses_All 地址
Select * From Ra_Site_Uses_All 用户
Select * From Oe_Order_Headers_All 销售头
Select * From Oe_Order_Lines_All 销售行
Select * From Wsh_New_Deliveries 发送
Select * From Wsh_Delivery_Details
Select * From Wsh_Delivery_Assignments
--Gl
Select * From Gl_Sets_Of_Books 总帐
Select * From Gl_Code_Combinations Gcc Where Gcc.Summary_Flag='Y' 科目组合
Select * From Gl_Balances 科目余额
Select * From Gl_Je_Batches 凭证批
Select * From Gl_Je_Headers 凭证头
Select * From Gl_Je_Lines 凭证行
Select * From Gl_Je_Categories 凭证分类
Select * From Gl_Je_Sources 凭证来源
Select * From Gl_Summary_Templates 科目汇总模板
Select * From Gl_Account_Hierarchies 科目汇总模板层次
--Ar
Select * From Ar_Batches_All 事务处理批
Select * From Ra_Customer_Trx_All 发票头
Select * From Ra_Customer_Trx_Lines_All 发票行
Select * From Ra_Cust_Trx_Line_Gl_Dist_All 发票分配
Select * From Ar_Cash_Receipts_All 收款
Select * From Ar_Receivable_Applications_All 核销
Select * From Ar_Payment_Schedules_All 发票调整
Select * From Ar_Adjustments_All 会计分录
Select * From Ar_Distributions_All 付款计划
--Ap
Select * From Ap_Invoices_All 发票头
Select * From Ap_Invoice_Distributions_All 发票行
Select * From Ap_Payment_Schedules_All 付款计划
Select * From Ap_Check_Stocks_All 单据
Select * From Ap_Checks_All 付款
Select * From Ap_Bank_Branches 银行
Select * From Ap_Bank_Accounts_All 银行帐号
Select * From Ap_Invoice_Payments_All 核销
客户:
Select Addr.Cust_Account_Id,
Loc.Address1,
Loc.Address2,
Loc.Address3,
Loc.Address4,
Addr.Cust_Acct_Site_Id,
Addr.Status,
Sysdate Expired_Date,
Addr.Creation_Date,
Addr.Created_By,
Addr.Last_Update_Date,
Addr.Last_Updated_By,
Hp.Party_Name '客户'
From Hz_Cust_Acct_Sites_All Addr,
Hz_Party_Sites Party_Site,
Hz_Locations Loc,
Hz_Parties Hp
Where Addr.Party_Site_Id = Party_Site.Party_Site_Id
And Party_Site.Location_Id = Loc.Location_Id
And Party_Site.Party_Id = Hp.Party_Id
And Hp.Party_Type = 'ORGANIZATION'
Order By Addr.Cust_Account_Id
供应商:
Select V.Vendor_Id "供应商ID",
V.Segment1 "供应商编号",
V.Vendor_Name "供应商名称",
V.Vendor_Name_Alt "供应商简称",
Vs.Vendor_Site_Code "供应商地点名称",
Hrl1.Location_Code "收货地点",
Hrl2.Location_Code "收单地点"
From Po_Vendors V,
Po_Vendor_Sites_All Vs,
Hr_Locations_All_Tl Hrl1,
Hr_Locations_All_Tl Hrl2
Where V.Vendor_Id = Vs.Vendor_Id
And Vs.Ship_To_Location_Id = Hrl1.Location_Id
And Hrl1.Language(+) = Userenv('LANG')
And Vs.Bill_To_Location_Id = Hrl2.Location_Id(+)
And Hrl2.Language(+) = Userenv('LANG')
And V.Segment1 = 'D028'