一、INV(库存)
子库存:mtl_secondary_inventories
事物处理:mtl_material_transactions mmt
事务处理来源类型:mtl_txn_source_types
事务处理类型:mtl_transaction_types
库存组织视图(带公司):org_organization_definitions
库存组织基表:HR_ALL_ORGANIZATION_UNITS
组织参数:mtl_parameters
事务处理批次:MTL_TRANSACTION_LOT_NUMBERS
事务处理序列:mtl_serial_numbers
物料:MTL_SYSTEM_ITEMS_B
批次:mtl_lot_numbers
货位:MTL_ITEM_LOCATIONS
会计期:gl_periods
物料价钱:CST_ITEM_COSTS
物料现有量:mtl_onhand_quantities
账户别名:MTL_GENERIC_DISPOSITIONS
库存期间表:org_acct_periods
物料事务处理接口表:
mtl_TRANSACTIONS_INTERFACE
MTL_MATERIAL_TRANSACTIONS_TEMP
mtl_transaction_lots_temp
<1>.获取事务处理来源:
BEGIN
inv_object_genealogy.getsource( mmt.organization_id,
mmt.transaction_source_type_id,
mmt.transaction_source_id);
END;
<2>.物料搬运单行视图:mtl_txn_request_lines_v
行上的销售订单表:mtl_sales_orders 使用sales_order_id关联行视图的txn_source_id
<3>.库存现有量界面按照LPN查找时的sql里面包含LPN.LPN_CONTEXT IN (1, 9, 11)
<4>.事务处理来源是销售订单:mmt.trx_source_line_id = oe_order_lines_all.line_id
二、值集
fnd_flex_values_vl,
fnd_flex_value_sets
三、lookup_code
fnd_lookup_values_vl
四、供应商
供应商头信息:ap_suppliers
供应商地点信息:ap_supplier_sites_all
供应商税率:hz_code_assignments
供应商银行账号:iby_ext_bank_accounts
供应商税信息:zx_party_tax_profile
供应商银行支行:iby_ext_bank_branches_v
供应商银行:iby_ext_banks_v
银行账户的拥有者:iby_account_owners
银行账户所在的地点:iby_pmt_instr_uses_all
供应商联系人:ap_supplier_contacts
供应商联系人电话等信息:hz_contact_points
供应商地点附加信息:pos_supp_prof_ext_b
供应商付款信息:iby_external_payees_all
五、HR(人员)
员工基表:per_people_f
员工视图:hr_employees
用户:fnd_user
员工分配表:per_all_assignments_f
员工职务表:per_jobs
员工职务语言表:per_jobs_tl
员工职位表:per_all_positions
员工职位多语言表:hr_all_positions_f_tl
代码:hr_lookups
地区:fnd_territories_tl
六、GL(总账)
账户科目段:gl_code_combinations
账套表:gl_sets_of_books
日记帐批表:gl_je_batches
日记账头表:gl_je_headers
日记账行表:gl_je_lines
日记帐科目余额表:gl_balances
凭证分类表:gl_je_categories
凭证来源表:gl_je_sources
总账导入参考信息表(GL与XLA之间的关联):gl_import_references
子分类帐头:xla_ae_headers
子分类帐行:xla_ae_lines
子分类帐事务处理实体信息:xla_transaction_entities
子分类帐事件表:xla_events xe --对客户合并的需要限制 xe.process_status_code not in ('P','F')
子分类帐分配连接信息(XLA和AR之间的关联):xla_distribution_links
获取期间的下个期间:gl_period_statuses_pkg.get_next_period
七、AP(应付)
发票(invoice)头表:ap_invoices(ap_invoices_all)
发票行表:ap_invoice_lines(ap_invoice_lines_all)
发票(invoice)分配行表:ap_invoice_distributions_all
付款信息表:ap_invoice_payments_all
付款检查表:ap_checks_all
付款计划表:ap_payment_schedules_all
单据表:ap_check_stocks_all
支行表:ap_bank_branches
银行账户表:ap_bank_accounts_all
核销历史表:AP_PREPAY_HISTORY_ALL
核销历史分配表:AP_PREPAY_APP_DISTS
八、FA(资产)
资产信息表:fa_additions
资产类别表:fa_categories
资产账簿表:fa_books
资产分配信息表:fa_distribution_history
折旧信息表:fa_deprn_detail
折旧事务表:fa_transaction_headers
资产分配地点:fa_locations
九、AR(应收)
事务处理批表:ar_batches_all
应收发票头表:ra_customer_trx_all
应收发票行表:ra_customer_trx_lines_all
应收发票分配表:ra_cust_trx_line_gl_dist_all
收款信息表:ar_cash_receipts_all
核销信息表:ar_receivable_applications_all
调整表:ar_payment_schedules_all
会计分录表:ar_adjustments_all
付款计划表:ar_distributions_all
十、OE(销售模块)
销售订单头表:oe_order_headers_all
销售订单行表:oe_order_lines_all
客户信息表:ra_customers=>ar_customers
地址信息表:ra_addresses_all
用户信息表:ra_site_uses_all
发送信息表:wsh_new_deliveries
销售订单状态lookup:oe_lookups
销售订单头,行类型:oe_transaction_types_tl
销售订单行的FLOW_STATUS_CODE真实值:
l_line_status := oe_line_status_pub.get_line_status(l.line_id,
l.flow_status_code);
发运事务处理表:wsh_delivery_details wdd
物料搬运单行表:mtl_txn_request_lines mtrl
物料搬运单头表:mtl_txn_request_headers mtrh
交货表:wsh_delivery_assignments wda
和物料事务处理表:mtl_material_transactions mmt 关联:wdd.transaction_id = mmt.transaction_id
发运事务处理和物料搬运单关联:wdd.move_order_line_id = mtrl.line_id
mtrl.header_id = mtrh.header_id
wdd.delivery_detail_id = wda.delivery_detail_id
十一、PO(采购)
采购订单头表:po_headers_all pha
采购订单行表:po_lines_all pla
采购申请头表:po_requisition_headers_all prh
采购申请行表:po_requisition_lines_all prl prl
采购申请人表:per_people_f papf
采购申请行类型表:po_line_types plt
分配表:po_distributions_all
发送表:po_releases_all
采购接收头表:rcv_shipment_headers rsh
采购接收行表:rcv_shipment_lines rsl
采购接收事务处理表:rcv_transactions
采购供应商表:po_vendors
采购供应商地点表:po_vendor_sites_all
表关联:
prh.requisition_header_id = prl.requisition_header_id
--关联采购申请人
prh.preparer_id = papf.person_id
AND trunc(SYSDATE ) BETWEEN papf.effective_start_date AND
papf.effective_end_date
--关联采购申请行类型
plt.line_type_id = prl.line_type_id
--关联采购订单
rsl.po_line_id = pla.po_line_id
rsl.po_header_id = pha.po_header_id
采购接收事务处理类型
SELECT plc.lookup_code,
plc.lookup_type,
plc.displayed_field,
plc.description,
plc.enabled_flag
FROM po_lookup_codes plc
WHERE plc.lookup_type LIKE 'RCV TRANSACTION TYPE'
--
采购申请申请人:
SELECT per.full_name,
per.person_id employee_id,
per.employee_number employee_num,
pb.name
FROM per_workforce_current_x per, per_business_groups_perf pb
WHERE (per.business_group_id = pb.business_group_id AND
per.assignment_type IN
( 'E',
decode(nvl (fnd_profile.value('HR_TREAT_CWK_AS_EMP'), 'N'),
'Y',
'C',
'E')))
--AND per.person_id = 1032
ORDER BY per.full_name;
--
采购订单行已承诺字段取值
po_line_locations_all.PROMISED_DATE
十二、XLE
法人主体:xle_entity_profiles
十三、成本
成本组:cst_cost_groups
十四、附件
附件主要视图:fnd_attached_docs_form_vl
附件主要表:fnd_attached_documents fad
附件表:fnd_documents fd
附件短文本表:fnd_documents_short_text fst
附件长文本表:fnd_documents_long_text
附件数据类型表:fnd_document_datatypes dat
附件类别表:fnd_document_categories_tl dct
表关联:
fad.document_id = fd.document_id
--
dct.category_id = fd.category_id
AND dct.language = userenv('LANG')
--
fd.datatype_id = dat.datatype_id
AND dat.language = userenv('LANG')
--
fd.media_id = fst.media_id
十五、WIP
离散任务表:wip_discrete_jobs wdj
工序表:wip_operations wo
工序部门表:bom_departments bd
离散任务名称表:wip_entities
移动事务处理:wip_move_transactions
资源事务处理表:wip_transactions
表关联:
--
wdj.organization_id = wo.organization_id
AND wdj.wip_entity_id = wo.wip_entity_id
--
bd.department_id = wo.department_id
十六、QA
质量收集计划表:qa_plans qp
质量收集要素PROMPT表:qa_plan_chars qpc
质量收集要素名称表:qa_chars qc
质量收集要素类型表:fnd_common_lookups fl
表关联:
qp.plan_id = qpc.plan_id
qpc.char_id = qc.char_id
qc.char_type_code = fl.lookup_code
AND fl.lookup_type = 'ELEMENT_TYPE'
AND fl.application_id = 250
十七、WMS
LPN表:wms_license_plate_numbers
内容LPN表:wms_lpn_contents
挑库发放规则:wsh_picking_rules
物料搬运单头表:mtl_txn_request_headers h
物料搬运单行表:mtl_txn_request_lines l
物料搬运单行分配表:mtl_material_transactions_temp t
LPN表中的LPN_CONTEXT字段取值,LOOKUP_TYPE:WMS_LPN_CONTEXT
表关联:h.header_id = l.header_id
l.line_id = t.move_order_line_id
标准程序包
1、物料单位转换:inv_convert.inv_um_convert --作用:返回折算率