需要知道Oracle EBS中Customer Ship To Number的后端位置(表名)

问题描述 投票:0回答:2

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

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

sql oracle oracle11g oracle-apps oracle-ebs
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>;

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 Order Management Technical Reference Manual

© www.soinside.com 2019 - 2024. All rights reserved.