--获取供应商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函数里加入下面一行代码, ...
随机推荐
-
LintCode-Implement Iterator of Binary Search Tree
Design an iterator over a binary search tree with the following properties: Elements are visited in ...
- swift 手势之UIPanGestureRecognizer
-
【Java基础】String StringBuffer StringBuilder
String String是不可变的 我们都知道String不是基本数据类型,而是一个对象,并且是final类型的,不可变的.(public final class String) 查看以下代码: S ...
-
js通过Date获取日期
获取当前系统时间 var myDate = new Date();//获取系统当前时间 获取特定格式日期 myDate.getYear(); //获取当前年份(2位) myDate.getFullYe ...
-
(NO.00002)iOS游戏精灵战争雏形(七)
接上一篇博文,我们继续完成射击的功能. 还是在MainScene.m中,添加initBullets方法: -(void)initBullets{ CCSprite *bullet; for (int ...
-
ubuntu15.04下sublime text不能输入中文的解决
原因是由于中文输入法的输入焦点不能插入sublime的输入窗口中,需要使用代码强制插入输入焦点. 代码是cjacker 君提供的,可以看原始的讨论帖子: http://www.sublimetext. ...
-
WSL、Git on Windows 、Putty等的创建的rsa秘钥与连接linux的使用。
1. 在windows 上面可以使用多种方式创建公钥和私钥 这里从一开始说: 1.1 windows subsystem linux 的方式最简单了 cmd 命令行 下 进入 WSL 输入命令 bas ...
-
JVM垃圾收集器-Serial Old收集器,Parallel Old收集器
Serial Old收集器 Serial Old收集器是Serial收集器的老年代版本,它是一个单线程收集器,使用“标记-整理”算法.这个收集器的主要意义也是被Client模式下的虚拟机使用.在ser ...
- Linux——目录结构思维导图
-
python 全栈开发,Day114(装饰器,排序规则,显示列,添加按钮,定制ModelForm,自定义列表页面,自定制URL)
一.装饰器 装饰器本质上就是一个python函数,他可以让其他函数在不需要做任何代码变动的前提下,增加额外的功能,装饰器的返回值也是一个函数对象. 装饰器的应用场景:比如插入日志,性能测试,事务处理, ...