ORACLE EBS常用表(转)
call fnd_global.APPS_INITIALIZE(1318,50583,401)
select fnd_profile.VALUE('ORG_ID') FROM DUAL
select * from hr_operating_units hou wherehou.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 * fromfnd_flex_values
select * from fnd_flex_values_vl
----弹性域
select * fromfnd_id_flexs
select * from fnd_id_flex_structures whereid_flex_code='GL#'
select * from fnd_id_flex_segments where id_flex_code='GL#' andid_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 * frommtl_parameters
select * from mtl_system_items_b where inventory_item_id = 171and organization_id=204 物料表
select * from mtl_secondary_inventories
select * frommtl_item_locations
select * frommtl_lot_numbers
select * frommtl_onhand_quantities
select * frommtl_serial_numbers
select * from mtl_material_transactions
select * from mtl_transaction_accounts
select * frommtl_transaction_types
select * frommtl_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 * frompo_headers_all
select * frompo_lines_all
select * frompo_line_locations_all
select * frompo_distributions_all
select * frompo_releases_all
select * fromrcv_shipment_headers
select * fromrcv_shipment_lines
select * fromrcv_transactions
select * frompo_agents
select * frompo_vendors
select * from po_vendor_sites_all
--oe
select * fromra_customers
select * fromra_addresses_all
select * fromra_site_uses_all
select * fromoe_order_headers_all
select * fromoe_order_lines_all
select * fromwsh_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 wheregcc.summary_flag='Y'
select * fromgl_balances
select * fromgl_je_batches
select * fromgl_je_headers
select * fromgl_je_lines
select * from gl_je_categories
select * fromgl_je_sources
select * from gl_summary_templates 科目汇总模板
select * from gl_account_hierarchies 科目汇总模板层次
--ar
select * fromar_batches_all
select * fromra_customer_trx_all
select * fromra_customer_trx_lines_all
select * from ra_cust_trx_line_gl_dist_all
select * fromar_cash_receipts_all
select * from ar_receivable_applications_all 核销
select * fromar_payment_schedules_all
select * fromar_adjustments_all
select * fromar_distributions_all
--ap
select * fromap_invoices_all
select * from ap_invoice_distributions_all 发票行
select * fromap_payment_schedules_all
select * fromap_check_stocks_all
select * fromap_checks_all
select * fromap_bank_branches
select * fromap_bank_accounts_all
select * fromap_invoice_payments_all
========================华丽的分割线=========================
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
transaction_cost是事物成本;
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 fromRCV_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
凭证日期:
会计期间:
原币种凭证批借贷方汇总: RUNNING_TOTAL_DR/CR 比如美元
本位币凭证批借贷方汇总: RUNNING_TOTAL_ACCOUNTED_DR/CR
gl_je_headers日记账头信息
批号:
会计期间: PERIOD_NAME
币种:
汇率类型: CURRENCY_CONVERSION_TYPE
汇率日期: CURRENCY_CONVERSION_DATE
帐套:
凭证类型: 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
REFERENCE是Oracle提供的外部编号输入框,但是由于版本问题和长度(<=30),不建议用户使用,如果要使用外部编号,请使用说明性弹性域
RA_CUSTOMER_TRX_LINES_ALL
注意:税行是隐藏行,所以至少会有两行
收款情况
AR_CASH_RECEIPTS_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
========================华丽的分割线=========================
fnd_user --- 系统用户表
po_vendors --- 供应商信息表
po_vendor_sites --- 供应商地点信息表
hr_organization_units --- 组织及库存组织表
per_people_f --- 员工表
wip_entities --- 作业名信息表
wip_discrete_jobs --- 离散作业表
wip_requirement_operations --- 作业名物料需求发放表
po_headers_all --- 采购订单头表
po_lines_all --- 采购订单行表
po_line_locations_all --- 采购行地点表
rcv_transactions --- 接收交易表
bom_bill_of_materials --- 物料清单表
bom_inventory_components --- 物料清单构成表
mtl_system_items --- 物料主表
mtl_onhand_quantities --- 库存数据表
mtl_item_locations --- 项目货位表
mtl_material_transactions --- 出入库记录表
mtl_supply --- 供应表
mtl_demand --- 需求表