EBS标准的查看供应商地址
--获取供应商PARTY_ID
SELECT * FROM HZ_PARTIES HP WHERE HP.PARTY_NAME='XXXXXX'
VO数据源:oracle.apps.pos.supplier.server.AddrSummVO
--获取供应商地址
--将代码中的:1,:2,:3替换为供应商对应的PARTY_ID
SELECT hps.party_site_id,
hps.party_site_name AS address_name,
'CURRENT' AS status,
hzl.address1 AS loc_address1,
hzl.address2 AS loc_address2,
hzl.address3 AS loc_address3,
hzl.city AS loc_city,
hzl.county AS loc_county,
hzl.state AS loc_state,
hzl.province AS loc_province,
hzl.postal_code AS loc_postal_code,
hzl.country AS loc_country,
fvl.territory_short_name AS country_name,
hzl.address4 AS loc_address4,
email.email_address,
phone.phone_area_code || ' ' || phone.phone_number AS phone_number,
fax.phone_area_code || ' ' || fax.phone_number AS fax_number,
decode(pos_util_pkg.is_addr_ccr(1.0,
'',
hps.party_site_id),
'T',
'removeInActiveImage',
'removeActiveImage') AS remove_image,
'mngSites' AS edit_image,
-1 AS address_request_id,
decode(pay.site_use_type,
'PAY',
'Y',
'N') AS pay_flag,
decode(pur.site_use_type,
'PURCHASING',
'Y',
'N') AS pur_flag,
decode(rfq.site_use_type,
'RFQ',
'Y',
'N') AS rfq_flag,
'TCA' AS address_type,
hzl.address1 || ' , ' || hzl.address2 || ' , ' || hzl.address3 || ' , ' || hzl.address4 || ' , ' || hzl.city ||
' , ' || hzl.county || ' , ' || hzl.state || ' , ' || hzl.province || ' , ' || hzl.postal_code || ' , ' ||
fvl.territory_short_name AS address_detail_int
FROM hz_party_sites hps,
hz_locations hzl,
fnd_territories_vl fvl,
hz_contact_points email,
hz_contact_points phone,
hz_contact_points fax,
hz_party_site_uses pay,
hz_party_site_uses pur,
hz_party_site_uses rfq
WHERE hps.status = 'A'
AND hps.party_id = :1
--and hps.created_by_module like 'POS%'
AND hzl.country = fvl.territory_code
AND email.owner_table_id(+) = hps.party_site_id
AND email.owner_table_name(+) = 'HZ_PARTY_SITES'
AND email.status(+) = 'A'
AND email.contact_point_type(+) = 'EMAIL'
AND email.primary_flag(+) = 'Y'
AND phone.owner_table_id(+) = hps.party_site_id
AND phone.owner_table_name(+) = 'HZ_PARTY_SITES'
AND phone.status(+) = 'A'
AND phone.contact_point_type(+) = 'PHONE'
AND phone.phone_line_type(+) = 'GEN'
AND phone.primary_flag(+) = 'Y'
AND fax.owner_table_id(+) = hps.party_site_id
AND fax.owner_table_name(+) = 'HZ_PARTY_SITES'
AND fax.status(+) = 'A'
AND fax.contact_point_type(+) = 'PHONE'
AND fax.phone_line_type(+) = 'FAX'
AND hps.location_id = hzl.location_id
AND pay.party_site_id(+) = hps.party_site_id
AND pur.party_site_id(+) = hps.party_site_id
AND rfq.party_site_id(+) = hps.party_site_id
AND pay.status(+) = 'A'
AND pur.status(+) = 'A'
AND rfq.status(+) = 'A'
AND nvl(pay.end_date(+),
SYSDATE) >= SYSDATE
AND nvl(pur.end_date(+),
SYSDATE) >= SYSDATE
AND nvl(rfq.end_date(+),
SYSDATE) >= SYSDATE
AND nvl(pay.begin_date(+),
SYSDATE) <= SYSDATE
AND nvl(pur.begin_date(+),
SYSDATE) <= SYSDATE
AND nvl(rfq.begin_date(+),
SYSDATE) <= SYSDATE
AND pay.site_use_type(+) = 'PAY'
AND pur.site_use_type(+) = 'PURCHASING'
AND rfq.site_use_type(+) = 'RFQ'
AND NOT EXISTS (SELECT 1
FROM pos_address_requests par,
pos_supplier_mappings psm
WHERE psm.party_id = hps.party_id
AND psm.mapping_id = par.mapping_id
AND party_site_id = hps.party_site_id
AND request_status = 'PENDING'
AND request_type IN ('UPDATE',
'DELETE')) UNION ALL SELECT hps.party_site_id,
hps.party_site_name AS address_name,
decode(par.request_type,
'UPDATE',
'CHANGED',
'DELETE',
'CHANGED') AS status,
hzl.address1 AS loc_address1,
hzl.address2 AS loc_address2,
hzl.address3 AS loc_address3,
hzl.city AS loc_city,
hzl.county AS loc_county,
hzl.state AS loc_state,
hzl.province AS loc_province,
hzl.postal_code AS loc_postal_code,
hzl.country AS loc_country,
fvl.territory_short_name AS country_name,
hzl.address4 AS loc_address4,
email.email_address,
phone.phone_area_code || ' ' || phone.phone_number AS phone_number,
fax.phone_area_code || ' ' || fax.phone_number AS fax_number,
'removeInActiveImage' AS remove_image,
decode(par.request_type,
'UPDATE',
'mngSites',
'DELETE',
'mngSitesDisabled') AS edit_image,
par.address_request_id AS address_request_id,
decode(pay.site_use_type,
'PAY',
'Y',
'N') AS pay_flag,
decode(pur.site_use_type,
'PURCHASING',
'Y',
'N') AS pur_flag,
decode(rfq.site_use_type,
'RFQ',
'Y',
'N') AS rfq_flag,
'TCA' AS address_type,
hzl.address1 || ' , ' || hzl.address2 || ' , ' || hzl.address3 || ' , ' || hzl.address4 || ' , ' || hzl.city ||
' , ' || hzl.county || ' , ' || hzl.state || ' , ' || hzl.province || ' , ' || hzl.postal_code || ' , ' ||
fvl.territory_short_name AS address_detail_int
FROM hz_party_sites hps,
hz_locations hzl,
fnd_territories_vl fvl,
hz_contact_points email,
hz_contact_points phone,
hz_contact_points fax,
pos_address_requests par,
pos_supplier_mappings psm,
hz_party_site_uses pay,
hz_party_site_uses pur,
hz_party_site_uses rfq
WHERE hps.status = 'A'
AND hps.party_id = :2
--and hps.created_by_module like 'POS%'
AND hzl.country = fvl.territory_code
AND email.owner_table_id(+) = hps.party_site_id
AND email.owner_table_name(+) = 'HZ_PARTY_SITES'
AND email.status(+) = 'A'
AND email.contact_point_type(+) = 'EMAIL'
AND email.primary_flag(+) = 'Y'
AND phone.owner_table_id(+) = hps.party_site_id
AND phone.owner_table_name(+) = 'HZ_PARTY_SITES'
AND phone.status(+) = 'A'
AND phone.contact_point_type(+) = 'PHONE'
AND phone.phone_line_type(+) = 'GEN'
AND phone.primary_flag(+) = 'Y'
AND fax.owner_table_id(+) = hps.party_site_id
AND fax.owner_table_name(+) = 'HZ_PARTY_SITES'
AND fax.status(+) = 'A'
AND fax.contact_point_type(+) = 'PHONE'
AND fax.phone_line_type(+) = 'FAX'
AND hps.location_id = hzl.location_id
AND par.party_site_id = hps.party_site_id
AND psm.party_id = hps.party_id
AND psm.mapping_id = par.mapping_id
AND par.request_type IN ('UPDATE',
'DELETE')
AND par.request_status = 'PENDING'
AND pay.party_site_id(+) = hps.party_site_id
AND pur.party_site_id(+) = hps.party_site_id
AND rfq.party_site_id(+) = hps.party_site_id
AND pay.status(+) = 'A'
AND pur.status(+) = 'A'
AND rfq.status(+) = 'A'
AND nvl(pay.end_date(+),
SYSDATE) >= SYSDATE
AND nvl(pur.end_date(+),
SYSDATE) >= SYSDATE
AND nvl(rfq.end_date(+),
SYSDATE) >= SYSDATE
AND nvl(pay.begin_date(+),
SYSDATE) <= SYSDATE
AND nvl(pur.begin_date(+),
SYSDATE) <= SYSDATE
AND nvl(rfq.begin_date(+),
SYSDATE) <= SYSDATE
AND pay.site_use_type(+) = 'PAY'
AND pur.site_use_type(+) = 'PURCHASING'
AND rfq.site_use_type(+) = 'RFQ' UNION ALL SELECT par.party_site_id,
par.party_site_name AS address_name,
decode(par.request_type,
'ADD',
'NEW',
'UPDATE',
'CHANGED',
'UNKNOWN') AS status,
par.address_line1 AS loc_address1,
par.address_line2 AS loc_address2,
par.address_line3 AS loc_address3,
par.city AS loc_city,
par.county AS loc_county,
par.state AS loc_state,
par.province AS loc_province,
par.postal_code AS loc_postal_code,
par.country AS loc_country,
fvl.territory_short_name AS country_name,
par.address_line4 AS loc_address4,
par.email_address,
par.phone_area_code || ' ' || par.phone_number || ' ' || par.phone_extension AS phone_number,
par.fax_area_code || ' ' || par.fax_number AS fax_number,
'removeInActiveImage' AS remove_image,
decode(par.request_type,
'UPDATE',
'mngSites',
'mngSitesDisabled') AS edit_image,
par.address_request_id AS address_request_id,
decode(par.pay_flag,
'Y',
'Y',
'N') AS pay_flag,
decode(par.pur_flag,
'Y',
'Y',
'N') AS pur_flag,
decode(par.rfq_flag,
'Y',
'Y',
'N') AS rfq_flag,
'POS' AS address_type,
par.address_line1 || ' , ' || par.address_line2 || ' , ' || par.address_line3 || ' , ' || par.address_line4 ||
' , ' || par.city || ' , ' || par.county || ' , ' || par.state || ' , ' || par.province || ' , ' ||
par.postal_code || ' , ' || fvl.territory_short_name AS address_detail_int
FROM pos_address_requests par,
pos_supplier_mappings psm,
fnd_territories_vl fvl
WHERE par.mapping_id = psm.mapping_id
AND par.country = fvl.territory_code
AND psm.party_id = :3
AND par.request_status = 'PENDING'
AND par.request_type = 'ADD'
数据来源:oracle.apps.ar.hz.components.address.server.HzPuiLocationVO
--地址标准信息 SELECT hzpuilocationeoex.location_id,
hzpuilocationeoex.country,
hzpuilocationeoex.address1,
hzpuilocationeoex.address2,
hzpuilocationeoex.address3,
hzpuilocationeoex.address4,
hzpuilocationeoex.city,
hzpuilocationeoex.postal_code,
hzpuilocationeoex.postal_plus4_code,
hzpuilocationeoex.state,
hzpuilocationeoex.province,
hzpuilocationeoex.county,
hzpuilocationeoex.address_lines_phonetic,
territory.territory_short_name country_name,
hzpuilocationeoex.address_style,
hzpuilocationeoex.attribute_category,
hzpuilocationeoex.attribute1,
hzpuilocationeoex.attribute2,
hzpuilocationeoex.attribute3,
hzpuilocationeoex.attribute4,
hzpuilocationeoex.attribute5,
hzpuilocationeoex.attribute6,
hzpuilocationeoex.attribute7,
hzpuilocationeoex.attribute8,
hzpuilocationeoex.attribute9,
hzpuilocationeoex.attribute10,
hzpuilocationeoex.attribute11,
hzpuilocationeoex.attribute12,
hzpuilocationeoex.attribute13,
hzpuilocationeoex.attribute14,
hzpuilocationeoex.attribute15,
hzpuilocationeoex.attribute16,
hzpuilocationeoex.attribute17,
hzpuilocationeoex.attribute18,
hzpuilocationeoex.attribute19,
hzpuilocationeoex.attribute20,
hzpuilocationeoex.sales_tax_geocode,
hzpuilocationeoex.sales_tax_inside_city_limits,
hzpuilocationeoex.language,
hzpuilocationeoex.object_version_number
FROM hz_locations hzpuilocationeoex,
fnd_territories_vl territory
WHERE hzpuilocationeoex.country = territory.territory_code
AND hzpuilocationeoex.location_id =302489;
EBS标准的查看供应商地址的更多相关文章
- EBS标准的查看供应商地点
VO数据源:oracle.apps.pos.supplier.server.SitesVO SELECT pvsa.address_style, hzl.language, pvsa.province ...
- 供应商和管理员查看供应商地址簿信息SQL
--管理员查看地址簿 SELECT hps.party_site_id, hps.party_site_name AS address_name, 'CURRENT' AS status, hzl.a ...
- EBS R12使用接口表往已存在的供应商地址下创建新的地点
在供应商 "测试供应商A" 下已经有了两个地址,分别为 "地址A","地址B",现在由于某些原因,需要在地址A下面创建新的地点. 由于业务需 ...
- Oracle EBS AP更新供应商地址
SELECT pvs.vendor_site_id, pvs.party_site_id, hps.party_site_name, hps.object_version_number, hps.pa ...
- 供应商API补充(详解EBS接口开发之供应商导入)(转)
原文地址 供应商导入的API补充(详解EBS接口开发之供应商导入) --供应商 --创建 AP_VENDOR_PUB_PKG.Create_Vendor ( p_api_version IN NUM ...
- Oracle EBS标准错误信息如何追踪 (Debug)
http://www.cnblogs.com/songdavid/articles/2067534.html 调用EBS标准API的时候,可能会返回一些让人看不懂的错误,比如最近我在开发rcv_tra ...
- Win8怎么查看IP地址
win8查看自己IP地址方法一:查看本地网络法 1.首先从桌面右下角的“网络连接图标上”点击右键,然后选择打开网络和共享中心,如下图所示: 打开win8网络和共享中心 2.之后在打开的网络和共享中心窗 ...
- 查看ip地址信息和配置临时ip
查看ip地址信息:ifconfig –a 配置临时ip: ifconfig eth0 192.168.11.107
- fiddler查看IP地址和请求响应时间
(一)fiddler查看IP地址 1.点击菜单栏rules——customize rules… 2.ctrl+f搜索“static function main” 3.在main函数里加入下面一行代码, ...
随机推荐
- 10:Python2与Python3比较
1.print 函数 1. print语句没有了,取而代之的是print()函数. Python 2.6与Python 2.7部分地支持这种形式的print语法. 2.Unicode 1. 在pyt ...
- 04: python常用模块
目录: 1.1 时间模块time() 与 datetime() 1.2 random()模块 1.3 os模块 1.4 sys模块 1.5 tarfile用于将文件夹归档成 .tar的文件 1.6 s ...
- 20145105 《Java程序设计》第8周学习总结
20145105 <Java程序设计>第8周学习总结 教材学习内容总结 第十五章 通用API 一.日志 (一)日志API简介 java.util.logging:提供日志功能相关类与接口 ...
- Win32 消息响应顺序
如果窗口处理函数响应了 WM_RBUTTONUP后,不会响应WM_CONTEXTMENU消息了.
- Java实现心跳机制
一.心跳机制简介 在分布式系统中,分布在不同主机上的节点需要检测其他节点的状态,如服务器节点需要检测从节点是否失效.为了检测对方节点的有效性,每隔固定时间就发送一个固定信息给对方,对方回复一个固定信息 ...
- CSS形变与动画
形变 2D形变 matrix(): 以一个含六值的(a,b,c,d,e,f)变换矩阵的形式指定一个2D变换,相当于直接应用一个[a,b,c,d,e,f]变换矩阵 translate(): 指定对象的2 ...
- POJ 2373 Dividing the Path (单调队列优化DP)题解
思路: 设dp[i]为覆盖i所用的最小数量,那么dp[i] = min(dp[k] + 1),其中i - 2b <= k <= i -2a,所以可以手动开一个单调递增的队列,队首元素就是k ...
- ISSCC 2017论文导读 Session 14:ENVISION: A 0.26-to-10 TOPS/W Subword-Parallel DVAFS CNN Processor in 28nm
ENVISION: A 0.26-to-10 TOPS/W Subword-Parallel Dynamic-Voltage-Accuracy-Frequency-Scalable CNN Proce ...
- 51NOD 1046 A^B Mod C
给出3个正整数A B C,求A^B Mod C. 例如,3 5 8,3^5 Mod 8 = 3. Input 3个正整数A B C,中间用空格分隔.(1 <= A,B,C <= 10^9) ...
- UVa 1602 网格动物(回溯)
https://vjudge.net/problem/UVA-1602 题意:计算n连通块不同形态的个数. 思路: 实在是不知道该怎么做好,感觉判重实在是太麻烦了. 判重就是判断所有格子位置是否都相同 ...