EBS中客户表的关系

hz_parties是比较基本的表,里面可以是组织,也可以是人,这里面只是存储了基本的信息,这些信息会被其它表shared, hz_relations表里是这些hz_parties之前的关系,里面用subject_id和object_id形成对应关系。

HZ_PARTY_SITES里面有关于hz_parties的细节联系信息,如mailstop, addressee,但注意,这个表里面没有电话,邮箱等这些信息,这些信息是放在HZ_CONTACT_POINTS表里面的,在HZ_CONTACT_POINTS表里用字段OWNER_TABLE_NAME/OWNER_TABLE_ID进行对应在,OWNER_TABLE_NAME可能是hz_party_sites,也可能是hz_parties,这时候OWNER_TABLE_ID与之对应的可能是PARTY_SITE_ID,也可能是party_id, hz_locations存有具体的address信息,hz_party_sites通过LOCATION_ID与之相关联。

HZ_CUST_ACCOUNTS存有客户account信息,一个hz_party可能有多个accounts, hz_party和account的有关系用表HZ_CUST_ACCOUNT_ROLES表记录,

HZ_CUST_ACCT_SITES_ALL存了account的所有site信息,我理解这个表是存了这些site可以有哪些作用,然后通过其字段PARTY_SITE_ID关联到hz_party_sites, HZ_CUST_SITE_USES_ALL这个表是比较实用的,好像做OM时ship_to,bill_to,最终是用的这个表里面的信息,包括account 科目信息,这个表里面同样没有address具体信息,是通过CUST_ACCT_SITE_ID关联到HZ_CUST_ACCT_SITES_ALL,进而再关联到hz_party_sites->hz_locations

HZ_PERSON_PROFILES和HZ_ORGANIZATION_PROFILES分别是hz_parties里为person和organization时的补充信息,都是通过party_id相关联。

我觉得这些表之前的关系还是比较复杂,还有其他一些表,在这里就不说了,觉得比较搞笑的是hz_contact_points这个表设计的比较精巧啊。我觉得搞这么多表,最主要应该是两个目的:1,灵活,2,减少冗余。

整理了从Oracle官网上的表说明如下:

/* --------------------------------------------------------------------------------------------------------------------------------*/
/* --------------------------------------------------------- AR -------------------------------------------------------------------*/
/* --------------------------------------------------------------------------------------------------------------------------------*/
/*--客户题头表,The HZ_CUST_ACCOUNTS table stores information about customer accounts , or business relationships that the deploying company
establishes with a party of type Organization or Person. This table focuses on business relationships and how transactions are conducted
in the relationship.Since a party can have multiple customer accounts, this table might contain several records for a single party.
For example, an individual person can establish a personal account, family account, and a professional account for a consulting practice. */
select * from AR.HZ_CUST_ACCOUNTS;

/*--客户地址表The HZ_CUST_ACCT_SITES_ALL table stores all customer account sites across all operating units. Customer account sites are
addresses, for customer accounts, where the deploying company does business with its customers. One customer account can have multiple
customer account sites, and customer account sites for one customer account can belong to multiple operating units. */
select * from AR.HZ_CUST_ACCT_SITES_ALL;

/*--客户业务目的表 The HZ_CUST_SITE_USES_ALL table stores business purposes
assigned to customer account sites, for example Bill-To, Ship-To, and
Statements. Each customer account site can have one or more purposes.
This table is a child of the HZ_CUST_ACCT_SITES_ALL table, with the foreign
key CUST_ACCT_SITE_ID. The HZ_CUST_SITE_USES_ALL table also stores operating
unit identifier, though the HZ_CUST_ACCT_SITES_ALL table itself stores the
operating unit for customer account sites.*/
select * from AR.HZ_CUST_SITE_USES_ALL;

/*The HZ_LOCATIONS table stores information about a delivery or postal address such as building number, street address, postal code,
and directions to a location. This table provides physical location information about parties (organizations and people) and customer
accounts. For example, you can store information such as Building 300, 500 Oracle Parkway, 94065, and "Take the Ralston Avenue exit
from highway 101, go east on Twin Dolphins Drive, turn left on Oracle Parkway, watch for the Building 300 sign on your right."
Records in the HZ_LOCATIONS table can store delivery and postal information about a location through columns such as the LOCATION_DIRECTIONS,
POST_OFFICE, and TIME_ZONE columns. You can also use the HZ_LOCATIONS table to store latitude and longitude information. Data in the
HZ_LOCATIONS table is also used to determine the appropriate tax authority and tax rates for sales tax and VAT calculations..
The primary key for this table is LOCATION_ID. */
select * from AR.hz_locations;

/*The HZ_PARTY_SITES table links a party (see HZ_PARTIES) and a location (see HZ_LOCATIONS. in hz_locations, there is no column of part_id) and stores location-specific party information
such as MAILSTOP and ADDRESSEE. One party can optionally have one or more party sites. One location can optionally be used by one or more
parties. For example, 500 Oracle Parkway can be specified as a party site for Oracle Corporation. This party site can then be used for
multiple customer accounts within the same party.
The primary key for this table is PARTY_SITE_ID.*/
select * from AR.HZ_PARTY_SITES;


/* The HZ_PERSON_PROFILES table stores personal and family information about a party of the Person type. For example, this table could
contain the correct spelling and phonetic pronunciation of the person's name. Note that some information in this table may also be entered
into the HZ_PARTIES table.
The primary key for this table is PERSON_PROFILE_ID. */
select * from AR.HZ_PERSON_PROFILES;

/*The HZ_ORGANIZATION_PROFILES table stores a variety of information about a party. This table gets populated when a party of the Organization
type is created. This table also contains data retrieved from Dun & Bradstreet using either the Dun & Bradstreet online or batch download
methods. Historical data for the organization can also be stored in this table. Each time organization information is changed, the effective
end date column for the original record is updated and a new record that contains the updated information is created.
The primary key for this table is ORGANIZATION_PROFILE_ID.*/
select * from AR.HZ_ORGANIZATION_PROFILES;

/*The HZ_PARTIES table stores basic information about parties that can be shared with any relationship that the party might establish with
another party. Although a record in the HZ_PARTIES table represents a unique party, multiple parties can have the same name. The parties
can be one of four types:
{{"bul:1"}}Organization-for example, Oracle Corporation
{{"bul:1"}}Person-for example, Jane Doe
{{"bul:1"}}Group-for example, World Wide Web Consortium
{{"bul:1"}}Relationship-for example, Jane Doe at Oracle Corporation.
{{"bodytext"}}Party records can be created and updated using third party data sources such as Dun & Bradstreet's Global Data Products.
The HZ_PARTIES table contains denormalized information from the HZ_LOCATIONS, HZ_PERSON_PROFILES, HZ_CONTACT_POINTS,
HZ_ORGANIZATION_PROFILES, and HZ_PERSON_LANGUAGE tables. The identifying address contained in the HZ_PARTIES table is denormalized
from the HZ_LOCATIONS table.
The primary key for this table is PARTY_ID. */
select * from AR.HZ_PARTIES;


/*The HZ_RELATIONSHIPS table stores information about relationships between one party and another party. The SUBJECT_ID and OBJECT_ID
columns specify the relationship that exists between two parties. For example, if the party relationship is of the Parent Of type,
a holding company could be the SUBJECT_ID in the relationship while one of its subsidiaries could be the OBJECT_ID. Creating a party
contact causes a party relationship to be created. A party can have different relationships with one or more other parties. A party
relationship can be specified with specific start and end dates so that the subject or object of a relationship can change over time.
.The primary key for this table is RELATIONSHIP_ID. */
select * from AR.hz_relations;

/*The HZ_ORG_CONTACTS table stores information about the position of the contact for a party or party site. The records in this table provide
information about a contact position such as JOB_TITLE, RANK, and general contact information. This table is not used to store information
about a specific person or organization, such as name and identification codes. That information is stored in the HZ_PARTIES table.
For example, this table may include a record for the position of vice president of manufacturing that indicates that the contact is a
senior executive, but it would not include the name of the person in that position, In this table, it contain the clumn PARTY_RELATIONSHIP_ID,
which Identifies relationship that contact person has with an organization or person. Foreign key to the HZ_RELATIONSHIPS table.
The primary key for this table is ORG_CONTACT_ID.*/
select * from AR.hz_org_cotacts;

/*The HZ_CUST_ACCOUNT_ROLES table stores information about a role or function that a party performs in relation to a customer account.
For example, Jane Doe might be a legal contact for Vision Corporation.
The primary key for this table is CUST_ACCOUNT_ROLE_ID. */
select * from AR.HZ_CUST_ACCOUNT_ROLES;

/*--客户联系人表,The HZ_CONTACT_POINTS table stores information about how to communicate to parties or party sites using electronic media
or methods such as Electronic Data Interchange (EDI), e-mail, telephone, telex, and the Internet. For example, telephone-related data
can include the type of telephone line, a touch tone indicator, a country code, the area code, the telephone number, and an extension
number to a specific handset. NOTE: Each media or method should be stored as a separate record in this table. For example, the attributes
of a complete telephone connection should be stored in a record, while EDI information should be stored in a different record. .
The primary key for this table is CONTACT_POINT_ID. */
select * from AR.HZ_CONTACT_POINTS;

/*--地址层客户联人表 R12中不再使用*/
select * from AR.HZ_CUST_CONTACT_POINTS;

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在Oracle EBS,创建项目客户的步骤如下: 1. 首先,打开ERP系统并登录到EBS应用程序。 2. 导航到INV(库存)模块,然后选择“设定”菜单。 3. 在菜单选择“料号”,然后选择“客户料号商品代码”选项。这将打开一个界面,您可以在其定义商业代码来为客户料号分组。 4. 在此界面上,您可以创建并定义您的项目客户。输入相关的客户料号和其他必要的信息,如名称、地址等。 5. 保存您的更改,并关闭该界面。 通过以上步骤,您可以在EBS创建项目客户并为其分配相关的客户料号。请注意,EBS的标准功能允许ERP物料和客户物料之间存在多对一和一对多的关系。在一对多的情况下,您可以录入ERP物料并将客户物料字段留空,但系统会警告您必须手动选择客户物料。而在多对一的情况下,您可以直接录入客户物料并选择对应的ERP物料。请注意,这些处理方法可能需要根据实际需求进行定制开发。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* *3* [EBS INV:客户料号](https://blog.csdn.net/weixin_42683386/article/details/108531958)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值