0

我在 Oracle 电子商务套件中工作。考虑这个字段“CUSTOMER_SHIP_TO_NUMBER” Oracle EBS 截图

我需要知道后端数据库中的列和表,从中填充该字段的值。我尝试检查记录历史,数据是从视图中获取的,即 OE_Order_Lines_V。我尝试通过该视图进行搜索,但无法弄清楚。我需要知道存储此数据 (CUSTOMER_SHIP_TO_NUMBER) 的实际位置,即表。

4

2 回答 2

1

您可以使用以下查询来查找客户详细信息。

SELECT hp.party_name "CUSTOMER_NAME", 
hca.account_number "CUSTOMER_NUMBER",
csu.location "SHIP_TO_ORG_ID",hca.cust_account_id "CUSTOMER_ID"
FROM hz_parties hp, hz_cust_accounts hca, 
hz_cust_acct_sites_all cas, hz_cust_site_uses_all csu
WHERE hp.party_id = hca.party_id
AND hca.party_site_id = cas.party_site_id 
AND cas.cust_acct_site_id = csu.cust_acct_site_id
AND cas.address_type = 'SHIP_TO'
AND csu.location = <ship_to_org_id>;
于 2017-12-24T09:32:37.540 回答
0

数据来自表ONT.OE_ORDER_LINES_ALL中的列下END_CUSTOMER_ID。这应该与AR.RA_CUSTOMERS使用列CUSTOMER_ID来获取客户名称和编号一起使用:

SELECT  racust.customer_id
    ,   racust.customer_name
    ,   racust.customer_number  -- this is the SHIP_TO_CUSTOMER_NUMBER
FROM    AR.RA_CUSTOMERS racust
    ,   ONT.OE_ORDER_headers_all oola
where   oola.END_CUSTOMER_ID = racust.CUSTOMER_ID;

在此处阅读更多信息:Oracle 订单管理技术参考手册

于 2017-01-04T15:24:03.677 回答