资源描述:
《Oracle EBS R12 客户表结构.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、R12客户表结构客户表/联系人/PARTY关联 HZ_PARTIES客户账户表 HZ_CUST_ACCOUNTS例子: SELECThp.party_number --客户注册标识 ,hp.party_name --组织名/客户 ,hp.known_as --别名 ,hp.organization_name_phonetic --名称拼音 ,acc.account_number
2、 --帐号 ,flv_sale.meaning sales_channel_code--销售渠道 ,acc.account_name --账记说明 ,flv_customer.meaningcustomer_class_code --分类 ,acc.orig_system_reference --参考 ,flv_status.meaning status --状态 ,flv_type.
3、meaningcustomer_type --账户类型 ,acc.attribute_category --上下文 ,acc.attribute1 --注册 ,acc.attribute2 --人员推广 ,acc.attribute3 --特殊要求 ,acc.Attribute4 --发货单是否打印价格 ,acc.Attr
4、ibute5 --所属利润 FROMhz_parties hp ,hz_cust_accounts acc ,fnd_lookup_valuesflv_sale --销售渠道 ,fnd_lookup_valuesflv_customer --分类 ,fnd_lookup_valuesflv_status --状态 ,fnd_lookup_valuesflv_type --账户类型 WHEREhp.party_id
5、 =acc.party_id ANDacc.sales_channel_code =flv_sale.lookup_code ANDflv_sale.lookup_type ='SALES_CHANNEL' ANDflv_sale.LANGUAGE =userenv('LANG') ANDacc.customer_class_code =flv_customer.lookup_code ANDflv_customer.lookup_type='CUSTOMER
6、CLASS' ANDflv_customer.LANGUAGE =userenv('LANG') ANDacc.status =flv_status.lookup_code ANDflv_status.lookup_type ='HZ_CPUI_REGISTRY_STATUS' ANDflv_status.LANGUAGE =userenv('LANG') ANDacc.customer_type =flv_type.lookup_code ANDflv
7、_type.lookup_type ='CUSTOMER_TYPE' ANDflv_type.LANGUAGE =userenv('LANG') ANDhp.party_id =hz_parties.party_id;帐户配置文件 HZ_CUSTOMER_PROFILES 字段 cust_account_role_id --oe_order_headers.sold_to_contract_id cust_account_id site_use_id --客户头的该字
8、段为空 --客户地点层为hz_cust_site_uses_all.site_use_id配置文件金额 HZ_CUST_PROFILE_AMTS --客户头层/客户地点层 关联:hz_customer_profiles.cust_account_p