AR
select * from hz_parties --客户头层
select * from hz_cust_accounts --账户层
select * from hz_cust_acct_sites_all --地点层
select * from hz_cust_site_uses_all --业务用途(收货/收单等)
select * from hz_locations --地址
select * from hz_party_sites --地址与客户关联
ra_customer_trx_lines_all --发票行,sales_order:RMA订单若绑定了so则为so号,否则为RMA号
--IF p_source_type = 'HR' THEN
-- l_location_source_type := 'INTERNAL' ;
--ELSIF p_source_type = 'HZ' THEN
-- l_location_source_type := 'EXTERNAL' ;
--ELSIF p_source_type = 'HR_HZ' THEN
-- l_location_source_type := 'BOTH' ;
--END IF;
select * from hr_locations;
select * from hz_locations
AP
CST
SELECT mmt.actual_cost,
mmt.transaction_cost, --过账成本
mmt.prior_cost, --原成本
mmt.new_cost, --比如采购价格变化后更新后成本
mmt.prior_costed_quantity --原成本计算的数量
FROM mtl_material_transactions mmt
select * from mtl_cst_txn_cost_details --物料事务处理成本明细表(五要素)
--stores the cost of a transaction by element and level.
--记录每一笔事务处理的成本;对于每笔库存事务的记录,这个表中有可能有记录,
--也有可能没记录;对于那些可以手工设定成本的事务处理,在这个表中有记录,
--例如,录入成本的杂项事务处理等
--关系
--MTL_CST_TXN_COST_DETAILS.COST_ELEMENT_ID = CST_COST_ELEMENTS.COST_ELEMENT_ID
--MTL_CST_TXN_COST_DETAILS.TRANSACTION_ID = MTL_MATERIAL_TRANSACTIONS.TRANSACTION_ID
select * from mtl_cst_actual_cost_details
select * from cst_layer_cost_details --物料成本五要素明细值