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函数里加入下面一行代码, ...
随机推荐
- java输出重定向
Java的标准输入,输出分别是通过System.in和System.out来代表.默认情况下他们分别代表键盘和显示器. System类里提供了3个重定向标准输入,输出的方法. static void ...
- 一篇关于Redis的好文章
Redis作为缓存使用,在值大小为1k的情况下,可以支持到每秒近十万次的set操作,可见redis的运行效率是非常的高的.但是为什么我们还会有的时候会遇到redis的瓶颈呢?一般来说,都是因为我们没有 ...
- 20145312《网络对抗》MSF基础
20145312<网络对抗>MSF基础 实验要求 1.掌握metasploit的基本应用方式 2.掌握常用的三种攻击方式的思路 实验问答 用自己的话解释什么是exploit.payload ...
- 20145321 《网络对抗》 Web基础
20145321 <网络对抗> Web基础 基础问题回答 (1)什么是表单 表单在网页中主要负责数据采集功能,一个表单有三个基本组成部分:表单标签——这里面包含了处理表单数据所用CGI程序 ...
- noip 邮票面值设计 - 搜索 - 动态规划
描述 给定一个信封,最多只允许粘贴N张邮票,计算在给定M(N+M<=10)种邮票的情况下(假定所有的邮票数量都足够),如何设计邮票的面值,能得到最大max ,使得1-max之间的每一个邮资值都能 ...
- VC++实现程序重启的方法(转载)
转载:http://blog.csdn.net/clever101/article/details/9327597 很多时候系统有很多配置项,修改了配置项之后能有一个按钮实现系统重启.所谓重启就是杀死 ...
- VC++实现获取文件占用空间大小的两种方法(非文件大小)
// GetFileSpaceSize.cpp : Defines the entry point for the console application. // /***************** ...
- IDEA 插件-码云
插件安装 最新插件版本: 2018.3.1.(2019-01-10 发布)注意:码云 IDEA 插件已由 gitosc 更名为 gitee.新版插件 gitee 菜单已经和 git 菜单合并 通过「插 ...
- 51nod 1413 权势二进制
本来刚开始还是想用每一位 -1的个数 然后再乘以10 不断累加 后来发现 完全不是这回事啊 因为本身就是0 和 1 所以只要记录出现的最大的数字 就是答案 因为 n >= 1 // 所以不 ...
- CVS导出&&自定义Attribute的使用
1.cvs导出:List转为byte[] /// <summary> /// CvsExport帮助类 /// </summary> public static class C ...