我在Oracle电子商务套件中工作。 考虑此字段“CUSTOMER_SHIP_TO_NUMBER” Oracle EBS Screenshot
我需要知道后端数据库中的列和表,从中填充此字段的值。 我尝试检查记录历史记录,并从View中获取数据,即OE_Order_Lines_V。我尝试搜索该视图但无法弄明白。我需要知道存储此数据(CUSTOMER_SHIP_TO_NUMBER)的实际位置,即表格。
答案 0 :(得分: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>;
答案 1 :(得分: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