壹佰网|ERP100 - 企业信息化知识门户

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2789|回复: 5

求助:请求名“弹性域 PL/SQL 预先处理程序”是在做什么动作提交的请求啊

[复制链接]
发表于 2007/6/7 14:28:03 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622  。

您需要 登录 才可以下载或查看,没有帐号?注册

x
请求名“弹性域 PL/SQL 预先处理程序,弹性域视图生成器”是在做什么动作提交的请求啊,麻烦知道的帮忙告知一声,谢谢啊!
发表于 2007/6/7 14:42:35 | 显示全部楼层
切换到英文环境,把这个请求的英文名称贴出来。我帮你到metalink上去查查。
“弹性域 PL/SQL 预先处理程序,弹性域视图生成器”这个还真没有用到。
发表于 2007/6/7 15:41:44 | 显示全部楼层
好像是把弹性域 生成为 数据库项目 ,
生成了之后就可以直接在写程序或者编辑公式 的时候引用相应的字段了
发表于 2007/6/7 19:53:04 | 显示全部楼层
--请求名“弹性域 PL/SQL 预先处理程序,弹性域视图生成器”是在做什么动作提交的请求
运行时间:是在新建或者修改新建弹性域后,系统自动运行;当然自己也可以手动运行
目的: 完善弹性域表数据库结构
过程:
--修改完弹性域内容后,保存,提示:
The flexfield was compiled successfully.
Submitted request to generate flexfield view ...

--点击OK
request form中可以看到Flexfield View Generator正在运行 --就是将扩展信息规则保存起来,并声称一个View视图供使用

--这样打开相应的 扩展信息显示 窗口
可以看到会根据填入的扩展上下文参数不同(Flexfield Context),显示不同的扩展信息内容
 楼主| 发表于 2007/6/7 22:15:10 | 显示全部楼层
谢谢NosameVista,纵横四海 ,gaoyiming
,感谢你们热情的解答,thank you very much !
发表于 2008/2/10 12:47:28 | 显示全部楼层
弹性域 PL/SQL 预先处理程序 的英文名称是:Flexfield PL/SQL Pre-Processor

我发现我的环境中也莫名其妙的被运行了一次,以下是运行后的输出文件:
  1. 编码的PL/SQL预处理器参数:-
  2. 开始扩展标志
  3. 扩展文件: /u01/oracle/app/prodappl/ar/11.5.0/sql/ARFXVIEW.txt
  4. 扩展标志: &AR_OVERRIDE_SEGMENT
  5. 扩展标志: &AR_ALL_SEGMENT_VALUES
  6. 扩展标志: &AR_VALUE_SEGMENT_IDS
  7. 扩展标志: &AR_ALL_END_DATES
  8. 扩展标志: &AR_ALL_FROM_POSTALS
  9. 扩展标志: &AR_ALL_START_DATES
  10. 扩展标志: &AR_EACH_LOCATION_RATE
  11. 扩展标志: &AR_ALL_TAX_RATES
  12. 扩展标志: &AR_ALL_TO_POSTALS
  13. 扩展标志: &AR_LOCATION_RATE_TABLES
  14. 扩展标志: &AR_FROM_POSTAL_CONDITION
  15. 扩展标志: &AR_TO_POSTAL_CONDITION
  16. 扩展标志: &AR_START_DATE_CONDITION
  17. 扩展标志: &AR_END_DATE_CONDITION
  18. 扩展标志: &AR_SEGMENT_ID_EQUALS_PARAMS
  19. 扩展标志: &AR_SUM_ALL_TAX_RATES
  20. 扩展标志: &AR_TAX_RATE_EQUALS_TABLES
  21. 扩展标志: &AR_ANY_SEGMENT_EQUALS_ID
  22. 扩展标志: &AR_CCIDS_EQUALS_PARAMS
  23. 扩展标志: &AR_ACTIVE_SEGMENTS_EQUAL_VALUES
  24. 扩展标志: &AR_PARENT_LOC_IDS_EQUALS_ID
  25. 扩展标志: &AR_NAME_EACH_LOCATION
  26. 扩展标志: &AR_LOCATION_STRUCTURE_ID
  27. 扩展标志: &AR_FIND_EACH_SEGMENT
  28. 扩展标志: &AR_POPULATE_PARENT
  29. 扩展标志: &AR_INVALID_SEGMENTS
  30. 扩展标志: &AR_ACTIVE_LOC_IDS
  31. 扩展标志: &AR_ALL_SEGMENT_QUALIFIERS
  32. 扩展标志: &AR_FIRST_SEGMENT_QUALIFIER
  33. 扩展标志: &AR_LAST_SEGMENT_QUALIFIER
  34. 扩展标志: &AR_TAX_ACCOUNT_SEGMENT
  35. 扩展标志: &AR_CCID_EQUALS_LOCATION_ID
  36. 扩展标志: &AR_TAX_EXEMPT_CHK_LOC_IDS
  37. 扩展标志: &AR_TAX_EXEMPT_JOIN_VALUES
  38. 扩展标志: &AR_DIS_LOCATIONS_ALLBUTLAST_DF
  39. 扩展标志: &AR_DIS_LOCATIONS_LAST_DF
  40. 扩展标志: &AR_EXEMPTION_LEVEL_OPEN
  41. 扩展标志: &AR_EXEMPTION_LEVEL_CLOSE
  42. 扩展标志: &AR_ALL_LOCATION_QUALIFIERS
  43. “扩展标志完成”
  44. REM --------------------------------------------------------------------
  45. REM Begin expansion for Org ID = 161
  46. REM --------------------------------------------------------------------
  47. /*===========================================================================+
  48. | $Header: ARFXVIEW.txt 115.1 2002/10/29 15:50:19 djancis noship $ |
  49. *===========================================================================+
  50. | Copyright (c) 1989 Oracle Corporation Belmont, California, USA |
  51. | All rights reserved. |
  52. +===========================================================================+
  53. | |
  54. | FILENAME |
  55. | |
  56. | ARFVIEW.fxp Flexfield pre-processed views |
  57. | |
  58. | DESCRIPTION |
  59. | |
  60. | This file creates database views that need to be pre-processed |
  61. | using the AR Flexfield PL/SQL Pre-processor. |
  62. | |
  63. | IMPORTANT : VERSION INFO |
  64. | This file has been changed completely to incorporate Multi-Org changes |
  65. | in Rel 10.7. Ensure that bugfixes are for both 10.6 and 10.7 and to the|
  66. | right version as version nos. are "leap froged" for 10.6 and 10.7. |
  67. | |
  68. | Release 10.4, 10.5 and 10.6, LATEST version is 70.12 |
  69. | |
  70. | Release 10.7, the latest version is |
  71. | |
  72. | VIEWS CREATED |
  73. | |
  74. | TAX_EXEMPTIONS_QP_V |
  75. | |
  76. | This view lists all exemptions for a given BILL TO CUSTOMER and |
  77. | SHIP TO SITE. Since an exemption can be at one or more levels, all |
  78. | applicable exemptions are listed on the quickpick and the user is |
  79. | allowed to select from any of the candidates. |
  80. | |
  81. | MODIFICATION HISTORY |
  82. | 17 MAY, 1994 Nigel Smith Created |
  83. | 2 Aug, 1994 Nigel Smith Bugfix: 228807, Customer exemptions are now |
  84. | managed by Bill To Customer; New column |
  85. | BILL_TO_CUSTOMER_ID has been implemented for |
  86. | Release 10.4; column SHIP_TO_CUSTOMER_ID |
  87. | will be dropped at Release 10.5 |
  88. | 12 Oct, 1994 Nigel Smith Bugfix: 232727, Tax Exemptions QP View fails |
  89. | when system installs just one segment in |
  90. | sales tax location flexfield. |
  91. | Bugfix: 237413, Exemptions that had NO |
  92. | Certificate Number did not appear in the |
  93. | Order Entry Quick pick. |
  94. | Lookups are outer joinded; in case any |
  95. | receivable quickcodes are deleted. |
  96. | 11 Sep, 1995 Mahesh S. Bugfix: 305029, Concurrent request to rebuild|
  97. | Tax packages fails. |
  98. | |
  99. | 18-Mar-2002 Satya, Ahmed Bug 2265200 |
  100. | 29-Oct-2002 D. Jancis Removed reference to ra site_uses and |
  101. | replaced with hz_cust_site_uses. |
  102. +===========================================================================*/

  103. REM dbdrv: none

  104. SET VERIFY OFF
  105. WHENEVER SQLERROR CONTINUE;

  106. /*--------------------------------------------------------------------------+
  107. | Bugfix: 305029 |
  108. | In a Multi-Org install, a synonym to the tax view referencing the |
  109. | APPS Schema will exist, drop the synonym and create the view. |
  110. +--------------------------------------------------------------------------*/
  111. drop synonym TAX_EXEMPTIONS_QP_V;


  112. create or replace force view TAX_EXEMPTIONS_QP_V as
  113. &START_VIEW_BODY
  114. select
  115. /* $Header: ARFXVIEW.txt 115.1 2002/10/29 15:50:19 djancis noship $ */
  116. s.site_use_id SHIP_TO_SITE_USE_ID,
  117. a.cust_account_id SHIP_TO_CUSTOMER_ID,
  118. x.customer_id BILL_TO_CUSTOMER_ID,
  119. x.site_use_id EXEMPTION_SHIP_TO_SITE_USE_ID,
  120. NULL ||
  121. v1.location_segment_user_value
  122. LOCATION,
  123. decode(x.customer_exemption_number,
  124. null, ' ',
  125. x.customer_exemption_number)
  126. TAX_EXEMPT_NUMBER,
  127. x.reason_code TAX_EXEMPT_REASON_CODE,
  128. nvl(arl.meaning,x.reason_code)
  129. TAX_EXEMPT_REASON_MEANING,
  130. x.percent_exempt PERCENT_EXEMPT,
  131. x.status STATUS_CODE,
  132. nvl(ars.meaning,
  133. x.status) STATUS_MEANING,
  134. x.start_date START_DATE,
  135. x.end_date END_DATE,
  136. x.tax_exemption_id TAX_EXEMPTION_ID,
  137. decode( x.site_use_id, null,
  138. decode(x.location_id_segment_1, null,
  139. 11, 1), 0 )
  140. +decode( x.status, 'PRIMARY', 0,
  141. 'MANUAL', 1000,
  142. 'UNAPPROVED', 2000,
  143. 'EXPIRED', 3000, 4000 )
  144. DISPLAY_ORDER,
  145. x.tax_code TAX_CODE
  146. from
  147. hz_cust_site_uses s,
  148. hz_cust_acct_sites_all a,
  149. hz_party_sites p,
  150. hz_loc_assignments la,
  151. ra_tax_exemptions x,
  152. ar_lookups ars,
  153. ar_lookups arl,
  154. ar_location_combinations c,
  155. ar_location_values v1,
  156. ar_system_parameters sys
  157. where la.loc_id = c.location_id(+)
  158. and a.party_site_id = p.party_site_id
  159. and p.location_id = la.location_id
  160. and nvl(a.org_id,-99) = nvl(la.org_id,-99)
  161. and s.cust_acct_site_id = a.cust_acct_site_id
  162. and nvl(a.org_id,nvl(to_number(decode
  163. (substrb(userenv('CLIENT_INFO'),1,1), ' ' ,NULL,
  164. substrb(userenv('CLIENT_INFO'),1,10))),-99)) =
  165. nvl(to_number(decode(substrb(userenv('CLIENT_INFO'),1,1),
  166. ' ',NULL,substrb(userenv('CLIENT_INFO'),1,10))),-99)
  167. and nvl(x.location_id_segment_1, nvl(c.location_id_segment_1,-1)) = nvl(c.location_id_segment_1,-1)
  168. and v1.location_segment_id(+) = x.location_id_segment_1
  169. and arl.lookup_type(+) = 'TAX_REASON'
  170. and arl.lookup_code(+) = x.reason_code
  171. and ars.lookup_type = 'TAX_EXEMPT_STATUS'
  172. and ars.lookup_code = x.status
  173. and x.exemption_type = 'CUSTOMER'
  174. and nvl( x.site_use_id, s.site_use_id ) = s.site_use_id
  175. &END_VIEW_BODY
  176. /

  177. commit;
  178. exit;
  179. REM --------------------------------------------------------------------
  180. REM End expansion for Org ID = 161
  181. REM --------------------------------------------------------------------
  182. 文件完成的扩展
  183. 扩展标志: &AR_OVERRIDE_SEGMENT
  184. 扩展标志: &AR_ALL_SEGMENT_VALUES
  185. 扩展标志: &AR_VALUE_SEGMENT_IDS
  186. 扩展标志: &AR_ALL_END_DATES
  187. 扩展标志: &AR_ALL_FROM_POSTALS
  188. 扩展标志: &AR_ALL_START_DATES
  189. 扩展标志: &AR_EACH_LOCATION_RATE
  190. 扩展标志: &AR_ALL_TAX_RATES
  191. 扩展标志: &AR_ALL_TO_POSTALS
  192. 扩展标志: &AR_LOCATION_RATE_TABLES
  193. 扩展标志: &AR_FROM_POSTAL_CONDITION
  194. 扩展标志: &AR_TO_POSTAL_CONDITION
  195. 扩展标志: &AR_START_DATE_CONDITION
  196. 扩展标志: &AR_END_DATE_CONDITION
  197. 扩展标志: &AR_SEGMENT_ID_EQUALS_PARAMS
  198. 扩展标志: &AR_SUM_ALL_TAX_RATES
  199. 扩展标志: &AR_TAX_RATE_EQUALS_TABLES
  200. 扩展标志: &AR_ANY_SEGMENT_EQUALS_ID
  201. 扩展标志: &AR_CCIDS_EQUALS_PARAMS
  202. 扩展标志: &AR_ACTIVE_SEGMENTS_EQUAL_VALUES
  203. 扩展标志: &AR_PARENT_LOC_IDS_EQUALS_ID
  204. 扩展标志: &AR_NAME_EACH_LOCATION
  205. 扩展标志: &AR_LOCATION_STRUCTURE_ID
  206. 扩展标志: &AR_FIND_EACH_SEGMENT
  207. 扩展标志: &AR_POPULATE_PARENT
  208. 扩展标志: &AR_INVALID_SEGMENTS
  209. 扩展标志: &AR_ACTIVE_LOC_IDS
  210. 扩展标志: &AR_ALL_SEGMENT_QUALIFIERS
  211. 扩展标志: &AR_FIRST_SEGMENT_QUALIFIER
  212. 扩展标志: &AR_LAST_SEGMENT_QUALIFIER
  213. 扩展标志: &AR_TAX_ACCOUNT_SEGMENT
  214. 扩展标志: &AR_CCID_EQUALS_LOCATION_ID
  215. 扩展标志: &AR_TAX_EXEMPT_CHK_LOC_IDS
  216. 扩展标志: &AR_TAX_EXEMPT_JOIN_VALUES
  217. 扩展标志: &AR_DIS_LOCATIONS_ALLBUTLAST_DF
  218. 扩展标志: &AR_DIS_LOCATIONS_LAST_DF
  219. 扩展标志: &AR_EXEMPTION_LEVEL_OPEN
  220. 扩展标志: &AR_EXEMPTION_LEVEL_CLOSE
  221. 扩展标志: &AR_ALL_LOCATION_QUALIFIERS
  222. “扩展标志完成”
  223. REM --------------------------------------------------------------------
  224. REM Begin expansion for Org ID = 101
  225. REM --------------------------------------------------------------------
  226. /*===========================================================================+
  227. | $Header: ARFXVIEW.txt 115.1 2002/10/29 15:50:19 djancis noship $ |
  228. *===========================================================================+
  229. | Copyright (c) 1989 Oracle Corporation Belmont, California, USA |
  230. | All rights reserved. |
  231. +===========================================================================+
  232. | |
  233. | FILENAME |
  234. | |
  235. | ARFVIEW.fxp Flexfield pre-processed views |
  236. | |
  237. | DESCRIPTION |
  238. | |
  239. | This file creates database views that need to be pre-processed |
  240. | using the AR Flexfield PL/SQL Pre-processor. |
  241. | |
  242. | IMPORTANT : VERSION INFO |
  243. | This file has been changed completely to incorporate Multi-Org changes |
  244. | in Rel 10.7. Ensure that bugfixes are for both 10.6 and 10.7 and to the|
  245. | right version as version nos. are "leap froged" for 10.6 and 10.7. |
  246. | |
  247. | Release 10.4, 10.5 and 10.6, LATEST version is 70.12 |
  248. | |
  249. | Release 10.7, the latest version is |
  250. | |
  251. | VIEWS CREATED |
  252. | |
  253. | TAX_EXEMPTIONS_QP_V |
  254. | |
  255. | This view lists all exemptions for a given BILL TO CUSTOMER and |
  256. | SHIP TO SITE. Since an exemption can be at one or more levels, all |
  257. | applicable exemptions are listed on the quickpick and the user is |
  258. | allowed to select from any of the candidates. |
  259. | |
  260. | MODIFICATION HISTORY |
  261. | 17 MAY, 1994 Nigel Smith Created |
  262. | 2 Aug, 1994 Nigel Smith Bugfix: 228807, Customer exemptions are now |
  263. | managed by Bill To Customer; New column |
  264. | BILL_TO_CUSTOMER_ID has been implemented for |
  265. | Release 10.4; column SHIP_TO_CUSTOMER_ID |
  266. | will be dropped at Release 10.5 |
  267. | 12 Oct, 1994 Nigel Smith Bugfix: 232727, Tax Exemptions QP View fails |
  268. | when system installs just one segment in |
  269. | sales tax location flexfield. |
  270. | Bugfix: 237413, Exemptions that had NO |
  271. | Certificate Number did not appear in the |
  272. | Order Entry Quick pick. |
  273. | Lookups are outer joinded; in case any |
  274. | receivable quickcodes are deleted. |
  275. | 11 Sep, 1995 Mahesh S. Bugfix: 305029, Concurrent request to rebuild|
  276. | Tax packages fails. |
  277. | |
  278. | 18-Mar-2002 Satya, Ahmed Bug 2265200 |
  279. | 29-Oct-2002 D. Jancis Removed reference to ra site_uses and |
  280. | replaced with hz_cust_site_uses. |
  281. +===========================================================================*/

  282. REM dbdrv: none

  283. SET VERIFY OFF
  284. WHENEVER SQLERROR CONTINUE;

  285. /*--------------------------------------------------------------------------+
  286. | Bugfix: 305029 |
  287. | In a Multi-Org install, a synonym to the tax view referencing the |
  288. | APPS Schema will exist, drop the synonym and create the view. |
  289. +--------------------------------------------------------------------------*/
  290. drop synonym TAX_EXEMPTIONS_QP_V;


  291. create or replace force view TAX_EXEMPTIONS_QP_V as
  292. &START_VIEW_BODY
  293. select
  294. /* $Header: ARFXVIEW.txt 115.1 2002/10/29 15:50:19 djancis noship $ */
  295. s.site_use_id SHIP_TO_SITE_USE_ID,
  296. a.cust_account_id SHIP_TO_CUSTOMER_ID,
  297. x.customer_id BILL_TO_CUSTOMER_ID,
  298. x.site_use_id EXEMPTION_SHIP_TO_SITE_USE_ID,
  299. v1.location_segment_user_value || decode ( v2.location_segment_user_value, NULL, NULL, '.' ) ||
  300. v2.location_segment_user_value || decode ( v3.location_segment_user_value, NULL, NULL, '.' ) ||
  301. v3.location_segment_user_value
  302. LOCATION,
  303. decode(x.customer_exemption_number,
  304. null, ' ',
  305. x.customer_exemption_number)
  306. TAX_EXEMPT_NUMBER,
  307. x.reason_code TAX_EXEMPT_REASON_CODE,
  308. nvl(arl.meaning,x.reason_code)
  309. TAX_EXEMPT_REASON_MEANING,
  310. x.percent_exempt PERCENT_EXEMPT,
  311. x.status STATUS_CODE,
  312. nvl(ars.meaning,
  313. x.status) STATUS_MEANING,
  314. x.start_date START_DATE,
  315. x.end_date END_DATE,
  316. x.tax_exemption_id TAX_EXEMPTION_ID,
  317. decode( x.site_use_id, null,
  318. decode(x.location_id_segment_3, null,
  319. decode(x.location_id_segment_2, null,
  320. decode(x.location_id_segment_1, null,
  321. 11, 3), 2), 1), 0 )
  322. +decode( x.status, 'PRIMARY', 0,
  323. 'MANUAL', 1000,
  324. 'UNAPPROVED', 2000,
  325. 'EXPIRED', 3000, 4000 )
  326. DISPLAY_ORDER,
  327. x.tax_code TAX_CODE
  328. from
  329. hz_cust_site_uses s,
  330. hz_cust_acct_sites_all a,
  331. hz_party_sites p,
  332. hz_loc_assignments la,
  333. ra_tax_exemptions x,
  334. ar_lookups ars,
  335. ar_lookups arl,
  336. ar_location_combinations c,
  337. ar_location_values v1,
  338. ar_location_values v2,
  339. ar_location_values v3,
  340. ar_system_parameters sys
  341. where la.loc_id = c.location_id(+)
  342. and a.party_site_id = p.party_site_id
  343. and p.location_id = la.location_id
  344. and nvl(a.org_id,-99) = nvl(la.org_id,-99)
  345. and s.cust_acct_site_id = a.cust_acct_site_id
  346. and nvl(a.org_id,nvl(to_number(decode
  347. (substrb(userenv('CLIENT_INFO'),1,1), ' ' ,NULL,
  348. substrb(userenv('CLIENT_INFO'),1,10))),-99)) =
  349. nvl(to_number(decode(substrb(userenv('CLIENT_INFO'),1,1),
  350. ' ',NULL,substrb(userenv('CLIENT_INFO'),1,10))),-99)
  351. and nvl(x.location_id_segment_1, nvl(c.location_id_segment_1,-1)) = nvl(c.location_id_segment_1,-1)
  352. and nvl(x.location_id_segment_2, nvl(c.location_id_segment_2,-1)) = nvl(c.location_id_segment_2,-1)
  353. and nvl(x.location_id_segment_3, nvl(c.location_id_segment_3,-1)) = nvl(c.location_id_segment_3,-1)
  354. and v1.location_segment_id(+) = x.location_id_segment_1
  355. and v2.location_segment_id(+) = x.location_id_segment_2
  356. and v3.location_segment_id(+) = x.location_id_segment_3
  357. and arl.lookup_type(+) = 'TAX_REASON'
  358. and arl.lookup_code(+) = x.reason_code
  359. and ars.lookup_type = 'TAX_EXEMPT_STATUS'
  360. and ars.lookup_code = x.status
  361. and x.exemption_type = 'CUSTOMER'
  362. and nvl( x.site_use_id, s.site_use_id ) = s.site_use_id
  363. &END_VIEW_BODY
  364. /

  365. commit;
  366. exit;
  367. REM --------------------------------------------------------------------
  368. REM End expansion for Org ID = 101
  369. REM --------------------------------------------------------------------
  370. 文件完成的扩展
  371. 扩展标志: &AR_OVERRIDE_SEGMENT
  372. 扩展标志: &AR_ALL_SEGMENT_VALUES
  373. 扩展标志: &AR_VALUE_SEGMENT_IDS
  374. 扩展标志: &AR_ALL_END_DATES
  375. 扩展标志: &AR_ALL_FROM_POSTALS
  376. 扩展标志: &AR_ALL_START_DATES
  377. 扩展标志: &AR_EACH_LOCATION_RATE
  378. 扩展标志: &AR_ALL_TAX_RATES
  379. 扩展标志: &AR_ALL_TO_POSTALS
  380. 扩展标志: &AR_LOCATION_RATE_TABLES
  381. 扩展标志: &AR_FROM_POSTAL_CONDITION
  382. 扩展标志: &AR_TO_POSTAL_CONDITION
  383. 扩展标志: &AR_START_DATE_CONDITION
  384. 扩展标志: &AR_END_DATE_CONDITION
  385. 扩展标志: &AR_SEGMENT_ID_EQUALS_PARAMS
  386. 扩展标志: &AR_SUM_ALL_TAX_RATES
  387. 扩展标志: &AR_TAX_RATE_EQUALS_TABLES
  388. 扩展标志: &AR_ANY_SEGMENT_EQUALS_ID
  389. 扩展标志: &AR_CCIDS_EQUALS_PARAMS
  390. 扩展标志: &AR_ACTIVE_SEGMENTS_EQUAL_VALUES
  391. 扩展标志: &AR_PARENT_LOC_IDS_EQUALS_ID
  392. 扩展标志: &AR_NAME_EACH_LOCATION
  393. 扩展标志: &AR_LOCATION_STRUCTURE_ID
  394. 扩展标志: &AR_FIND_EACH_SEGMENT
  395. 扩展标志: &AR_POPULATE_PARENT
  396. 扩展标志: &AR_INVALID_SEGMENTS
  397. 扩展标志: &AR_ACTIVE_LOC_IDS
  398. 扩展标志: &AR_ALL_SEGMENT_QUALIFIERS
  399. 扩展标志: &AR_FIRST_SEGMENT_QUALIFIER
  400. 扩展标志: &AR_LAST_SEGMENT_QUALIFIER
  401. 扩展标志: &AR_TAX_ACCOUNT_SEGMENT
  402. 扩展标志: &AR_CCID_EQUALS_LOCATION_ID
  403. 扩展标志: &AR_TAX_EXEMPT_CHK_LOC_IDS
  404. 扩展标志: &AR_TAX_EXEMPT_JOIN_VALUES
  405. 扩展标志: &AR_DIS_LOCATIONS_ALLBUTLAST_DF
  406. 扩展标志: &AR_DIS_LOCATIONS_LAST_DF
  407. 扩展标志: &AR_EXEMPTION_LEVEL_OPEN
  408. 扩展标志: &AR_EXEMPTION_LEVEL_CLOSE
  409. 扩展标志: &AR_ALL_LOCATION_QUALIFIERS
  410. “扩展标志完成”
  411. REM --------------------------------------------------------------------
  412. REM Begin expansion for Org ID = 141
  413. REM --------------------------------------------------------------------
  414. /*===========================================================================+
  415. | $Header: ARFXVIEW.txt 115.1 2002/10/29 15:50:19 djancis noship $ |
  416. *===========================================================================+
  417. | Copyright (c) 1989 Oracle Corporation Belmont, California, USA |
  418. | All rights reserved. |
  419. +===========================================================================+
  420. | |
  421. | FILENAME |
  422. | |
  423. | ARFVIEW.fxp Flexfield pre-processed views |
  424. | |
  425. | DESCRIPTION |
  426. | |
  427. | This file creates database views that need to be pre-processed |
  428. | using the AR Flexfield PL/SQL Pre-processor. |
  429. | |
  430. | IMPORTANT : VERSION INFO |
  431. | This file has been changed completely to incorporate Multi-Org changes |
  432. | in Rel 10.7. Ensure that bugfixes are for both 10.6 and 10.7 and to the|
  433. | right version as version nos. are "leap froged" for 10.6 and 10.7. |
  434. | |
  435. | Release 10.4, 10.5 and 10.6, LATEST version is 70.12 |
  436. | |
  437. | Release 10.7, the latest version is |
  438. | |
  439. | VIEWS CREATED |
  440. | |
  441. | TAX_EXEMPTIONS_QP_V |
  442. | |
  443. | This view lists all exemptions for a given BILL TO CUSTOMER and |
  444. | SHIP TO SITE. Since an exemption can be at one or more levels, all |
  445. | applicable exemptions are listed on the quickpick and the user is |
  446. | allowed to select from any of the candidates. |
  447. | |
  448. | MODIFICATION HISTORY |
  449. | 17 MAY, 1994 Nigel Smith Created |
  450. | 2 Aug, 1994 Nigel Smith Bugfix: 228807, Customer exemptions are now |
  451. | managed by Bill To Customer; New column |
  452. | BILL_TO_CUSTOMER_ID has been implemented for |
  453. | Release 10.4; column SHIP_TO_CUSTOMER_ID |
  454. | will be dropped at Release 10.5 |
  455. | 12 Oct, 1994 Nigel Smith Bugfix: 232727, Tax Exemptions QP View fails |
  456. | when system installs just one segment in |
  457. | sales tax location flexfield. |
  458. | Bugfix: 237413, Exemptions that had NO |
  459. | Certificate Number did not appear in the |
  460. | Order Entry Quick pick. |
  461. | Lookups are outer joinded; in case any |
  462. | receivable quickcodes are deleted. |
  463. | 11 Sep, 1995 Mahesh S. Bugfix: 305029, Concurrent request to rebuild|
  464. | Tax packages fails. |
  465. | |
  466. | 18-Mar-2002 Satya, Ahmed Bug 2265200 |
  467. | 29-Oct-2002 D. Jancis Removed reference to ra site_uses and |
  468. | replaced with hz_cust_site_uses. |
  469. +===========================================================================*/

  470. REM dbdrv: none

  471. SET VERIFY OFF
  472. WHENEVER SQLERROR CONTINUE;

  473. /*--------------------------------------------------------------------------+
  474. | Bugfix: 305029 |
  475. | In a Multi-Org install, a synonym to the tax view referencing the |
  476. | APPS Schema will exist, drop the synonym and create the view. |
  477. +--------------------------------------------------------------------------*/
  478. drop synonym TAX_EXEMPTIONS_QP_V;


  479. create or replace force view TAX_EXEMPTIONS_QP_V as
  480. &START_VIEW_BODY
  481. select
  482. /* $Header: ARFXVIEW.txt 115.1 2002/10/29 15:50:19 djancis noship $ */
  483. s.site_use_id SHIP_TO_SITE_USE_ID,
  484. a.cust_account_id SHIP_TO_CUSTOMER_ID,
  485. x.customer_id BILL_TO_CUSTOMER_ID,
  486. x.site_use_id EXEMPTION_SHIP_TO_SITE_USE_ID,
  487. v1.location_segment_user_value || decode ( v2.location_segment_user_value, NULL, NULL, '.' ) ||
  488. v2.location_segment_user_value || decode ( v3.location_segment_user_value, NULL, NULL, '.' ) ||
  489. v3.location_segment_user_value
  490. LOCATION,
  491. decode(x.customer_exemption_number,
  492. null, ' ',
  493. x.customer_exemption_number)
  494. TAX_EXEMPT_NUMBER,
  495. x.reason_code TAX_EXEMPT_REASON_CODE,
  496. nvl(arl.meaning,x.reason_code)
  497. TAX_EXEMPT_REASON_MEANING,
  498. x.percent_exempt PERCENT_EXEMPT,
  499. x.status STATUS_CODE,
  500. nvl(ars.meaning,
  501. x.status) STATUS_MEANING,
  502. x.start_date START_DATE,
  503. x.end_date END_DATE,
  504. x.tax_exemption_id TAX_EXEMPTION_ID,
  505. decode( x.site_use_id, null,
  506. decode(x.location_id_segment_3, null,
  507. decode(x.location_id_segment_2, null,
  508. decode(x.location_id_segment_1, null,
  509. 11, 3), 2), 1), 0 )
  510. +decode( x.status, 'PRIMARY', 0,
  511. 'MANUAL', 1000,
  512. 'UNAPPROVED', 2000,
  513. 'EXPIRED', 3000, 4000 )
  514. DISPLAY_ORDER,
  515. x.tax_code TAX_CODE
  516. from
  517. hz_cust_site_uses s,
  518. hz_cust_acct_sites_all a,
  519. hz_party_sites p,
  520. hz_loc_assignments la,
  521. ra_tax_exemptions x,
  522. ar_lookups ars,
  523. ar_lookups arl,
  524. ar_location_combinations c,
  525. ar_location_values v1,
  526. ar_location_values v2,
  527. ar_location_values v3,
  528. ar_system_parameters sys
  529. where la.loc_id = c.location_id(+)
  530. and a.party_site_id = p.party_site_id
  531. and p.location_id = la.location_id
  532. and nvl(a.org_id,-99) = nvl(la.org_id,-99)
  533. and s.cust_acct_site_id = a.cust_acct_site_id
  534. and nvl(a.org_id,nvl(to_number(decode
  535. (substrb(userenv('CLIENT_INFO'),1,1), ' ' ,NULL,
  536. substrb(userenv('CLIENT_INFO'),1,10))),-99)) =
  537. nvl(to_number(decode(substrb(userenv('CLIENT_INFO'),1,1),
  538. ' ',NULL,substrb(userenv('CLIENT_INFO'),1,10))),-99)
  539. and nvl(x.location_id_segment_1, nvl(c.location_id_segment_1,-1)) = nvl(c.location_id_segment_1,-1)
  540. and nvl(x.location_id_segment_2, nvl(c.location_id_segment_2,-1)) = nvl(c.location_id_segment_2,-1)
  541. and nvl(x.location_id_segment_3, nvl(c.location_id_segment_3,-1)) = nvl(c.location_id_segment_3,-1)
  542. and v1.location_segment_id(+) = x.location_id_segment_1
  543. and v2.location_segment_id(+) = x.location_id_segment_2
  544. and v3.location_segment_id(+) = x.location_id_segment_3
  545. and arl.lookup_type(+) = 'TAX_REASON'
  546. and arl.lookup_code(+) = x.reason_code
  547. and ars.lookup_type = 'TAX_EXEMPT_STATUS'
  548. and ars.lookup_code = x.status
  549. and x.exemption_type = 'CUSTOMER'
  550. and nvl( x.site_use_id, s.site_use_id ) = s.site_use_id
  551. &END_VIEW_BODY
  552. /

  553. commit;
  554. exit;
  555. REM --------------------------------------------------------------------
  556. REM End expansion for Org ID = 141
  557. REM --------------------------------------------------------------------
  558. 文件完成的扩展
  559. 扩展标志: &AR_OVERRIDE_SEGMENT
  560. 扩展标志: &AR_ALL_SEGMENT_VALUES
  561. 扩展标志: &AR_VALUE_SEGMENT_IDS
  562. 扩展标志: &AR_ALL_END_DATES
  563. 扩展标志: &AR_ALL_FROM_POSTALS
  564. 扩展标志: &AR_ALL_START_DATES
  565. 扩展标志: &AR_EACH_LOCATION_RATE
  566. 扩展标志: &AR_ALL_TAX_RATES
  567. 扩展标志: &AR_ALL_TO_POSTALS
  568. 扩展标志: &AR_LOCATION_RATE_TABLES
  569. 扩展标志: &AR_FROM_POSTAL_CONDITION
  570. 扩展标志: &AR_TO_POSTAL_CONDITION
  571. 扩展标志: &AR_START_DATE_CONDITION
  572. 扩展标志: &AR_END_DATE_CONDITION
  573. 扩展标志: &AR_SEGMENT_ID_EQUALS_PARAMS
  574. 扩展标志: &AR_SUM_ALL_TAX_RATES
  575. 扩展标志: &AR_TAX_RATE_EQUALS_TABLES
  576. 扩展标志: &AR_ANY_SEGMENT_EQUALS_ID
  577. 扩展标志: &AR_CCIDS_EQUALS_PARAMS
  578. 扩展标志: &AR_ACTIVE_SEGMENTS_EQUAL_VALUES
  579. 扩展标志: &AR_PARENT_LOC_IDS_EQUALS_ID
  580. 扩展标志: &AR_NAME_EACH_LOCATION
  581. 扩展标志: &AR_LOCATION_STRUCTURE_ID
  582. 扩展标志: &AR_FIND_EACH_SEGMENT
  583. 扩展标志: &AR_POPULATE_PARENT
  584. 扩展标志: &AR_INVALID_SEGMENTS
  585. 扩展标志: &AR_ACTIVE_LOC_IDS
  586. 扩展标志: &AR_ALL_SEGMENT_QUALIFIERS
  587. 扩展标志: &AR_FIRST_SEGMENT_QUALIFIER
  588. 扩展标志: &AR_LAST_SEGMENT_QUALIFIER
  589. 扩展标志: &AR_TAX_ACCOUNT_SEGMENT
  590. 扩展标志: &AR_CCID_EQUALS_LOCATION_ID
  591. 扩展标志: &AR_TAX_EXEMPT_CHK_LOC_IDS
  592. 扩展标志: &AR_TAX_EXEMPT_JOIN_VALUES
  593. 扩展标志: &AR_DIS_LOCATIONS_ALLBUTLAST_DF
  594. 扩展标志: &AR_DIS_LOCATIONS_LAST_DF
  595. 扩展标志: &AR_EXEMPTION_LEVEL_OPEN
  596. 扩展标志: &AR_EXEMPTION_LEVEL_CLOSE
  597. 扩展标志: &AR_ALL_LOCATION_QUALIFIERS
  598. “扩展标志完成”
  599. REM --------------------------------------------------------------------
  600. REM Begin expansion for Org ID = 121
  601. REM --------------------------------------------------------------------
  602. /*===========================================================================+
  603. | $Header: ARFXVIEW.txt 115.1 2002/10/29 15:50:19 djancis noship $ |
  604. *===========================================================================+
  605. | Copyright (c) 1989 Oracle Corporation Belmont, California, USA |
  606. | All rights reserved. |
  607. +===========================================================================+
  608. | |
  609. | FILENAME |
  610. | |
  611. | ARFVIEW.fxp Flexfield pre-processed views |
  612. | |
  613. | DESCRIPTION |
  614. | |
  615. | This file creates database views that need to be pre-processed |
  616. | using the AR Flexfield PL/SQL Pre-processor. |
  617. | |
  618. | IMPORTANT : VERSION INFO |
  619. | This file has been changed completely to incorporate Multi-Org changes |
  620. | in Rel 10.7. Ensure that bugfixes are for both 10.6 and 10.7 and to the|
  621. | right version as version nos. are "leap froged" for 10.6 and 10.7. |
  622. | |
  623. | Release 10.4, 10.5 and 10.6, LATEST version is 70.12 |
  624. | |
  625. | Release 10.7, the latest version is |
  626. | |
  627. | VIEWS CREATED |
  628. | |
  629. | TAX_EXEMPTIONS_QP_V |
  630. | |
  631. | This view lists all exemptions for a given BILL TO CUSTOMER and |
  632. | SHIP TO SITE. Since an exemption can be at one or more levels, all |
  633. | applicable exemptions are listed on the quickpick and the user is |
  634. | allowed to select from any of the candidates. |
  635. | |
  636. | MODIFICATION HISTORY |
  637. | 17 MAY, 1994 Nigel Smith Created |
  638. | 2 Aug, 1994 Nigel Smith Bugfix: 228807, Customer exemptions are now |
  639. | managed by Bill To Customer; New column |
  640. | BILL_TO_CUSTOMER_ID has been implemented for |
  641. | Release 10.4; column SHIP_TO_CUSTOMER_ID |
  642. | will be dropped at Release 10.5 |
  643. | 12 Oct, 1994 Nigel Smith Bugfix: 232727, Tax Exemptions QP View fails |
  644. | when system installs just one segment in |
  645. | sales tax location flexfield. |
  646. | Bugfix: 237413, Exemptions that had NO |
  647. | Certificate Number did not appear in the |
  648. | Order Entry Quick pick. |
  649. | Lookups are outer joinded; in case any |
  650. | receivable quickcodes are deleted. |
  651. | 11 Sep, 1995 Mahesh S. Bugfix: 305029, Concurrent request to rebuild|
  652. | Tax packages fails. |
  653. | |
  654. | 18-Mar-2002 Satya, Ahmed Bug 2265200 |
  655. | 29-Oct-2002 D. Jancis Removed reference to ra site_uses and |
  656. | replaced with hz_cust_site_uses. |
  657. +===========================================================================*/

  658. REM dbdrv: none

  659. SET VERIFY OFF
  660. WHENEVER SQLERROR CONTINUE;

  661. /*--------------------------------------------------------------------------+
  662. | Bugfix: 305029 |
  663. | In a Multi-Org install, a synonym to the tax view referencing the |
  664. | APPS Schema will exist, drop the synonym and create the view. |
  665. +--------------------------------------------------------------------------*/
  666. drop synonym TAX_EXEMPTIONS_QP_V;


  667. create or replace force view TAX_EXEMPTIONS_QP_V as
  668. &START_VIEW_BODY
  669. select
  670. /* $Header: ARFXVIEW.txt 115.1 2002/10/29 15:50:19 djancis noship $ */
  671. s.site_use_id SHIP_TO_SITE_USE_ID,
  672. a.cust_account_id SHIP_TO_CUSTOMER_ID,
  673. x.customer_id BILL_TO_CUSTOMER_ID,
  674. x.site_use_id EXEMPTION_SHIP_TO_SITE_USE_ID,
  675. v1.location_segment_user_value || decode ( v2.location_segment_user_value, NULL, NULL, '.' ) ||
  676. v2.location_segment_user_value || decode ( v3.location_segment_user_value, NULL, NULL, '.' ) ||
  677. v3.location_segment_user_value
  678. LOCATION,
  679. decode(x.customer_exemption_number,
  680. null, ' ',
  681. x.customer_exemption_number)
  682. TAX_EXEMPT_NUMBER,
  683. x.reason_code TAX_EXEMPT_REASON_CODE,
  684. nvl(arl.meaning,x.reason_code)
  685. TAX_EXEMPT_REASON_MEANING,
  686. x.percent_exempt PERCENT_EXEMPT,
  687. x.status STATUS_CODE,
  688. nvl(ars.meaning,
  689. x.status) STATUS_MEANING,
  690. x.start_date START_DATE,
  691. x.end_date END_DATE,
  692. x.tax_exemption_id TAX_EXEMPTION_ID,
  693. decode( x.site_use_id, null,
  694. decode(x.location_id_segment_3, null,
  695. decode(x.location_id_segment_2, null,
  696. decode(x.location_id_segment_1, null,
  697. 11, 3), 2), 1), 0 )
  698. +decode( x.status, 'PRIMARY', 0,
  699. 'MANUAL', 1000,
  700. 'UNAPPROVED', 2000,
  701. 'EXPIRED', 3000, 4000 )
  702. DISPLAY_ORDER,
  703. x.tax_code TAX_CODE
  704. from
  705. hz_cust_site_uses s,
  706. hz_cust_acct_sites_all a,
  707. hz_party_sites p,
  708. hz_loc_assignments la,
  709. ra_tax_exemptions x,
  710. ar_lookups ars,
  711. ar_lookups arl,
  712. ar_location_combinations c,
  713. ar_location_values v1,
  714. ar_location_values v2,
  715. ar_location_values v3,
  716. ar_system_parameters sys
  717. where la.loc_id = c.location_id(+)
  718. and a.party_site_id = p.party_site_id
  719. and p.location_id = la.location_id
  720. and nvl(a.org_id,-99) = nvl(la.org_id,-99)
  721. and s.cust_acct_site_id = a.cust_acct_site_id
  722. and nvl(a.org_id,nvl(to_number(decode
  723. (substrb(userenv('CLIENT_INFO'),1,1), ' ' ,NULL,
  724. substrb(userenv('CLIENT_INFO'),1,10))),-99)) =
  725. nvl(to_number(decode(substrb(userenv('CLIENT_INFO'),1,1),
  726. ' ',NULL,substrb(userenv('CLIENT_INFO'),1,10))),-99)
  727. and nvl(x.location_id_segment_1, nvl(c.location_id_segment_1,-1)) = nvl(c.location_id_segment_1,-1)
  728. and nvl(x.location_id_segment_2, nvl(c.location_id_segment_2,-1)) = nvl(c.location_id_segment_2,-1)
  729. and nvl(x.location_id_segment_3, nvl(c.location_id_segment_3,-1)) = nvl(c.location_id_segment_3,-1)
  730. and v1.location_segment_id(+) = x.location_id_segment_1
  731. and v2.location_segment_id(+) = x.location_id_segment_2
  732. and v3.location_segment_id(+) = x.location_id_segment_3
  733. and arl.lookup_type(+) = 'TAX_REASON'
  734. and arl.lookup_code(+) = x.reason_code
  735. and ars.lookup_type = 'TAX_EXEMPT_STATUS'
  736. and ars.lookup_code = x.status
  737. and x.exemption_type = 'CUSTOMER'
  738. and nvl( x.site_use_id, s.site_use_id ) = s.site_use_id
  739. &END_VIEW_BODY
  740. /

  741. commit;
  742. exit;
  743. REM --------------------------------------------------------------------
  744. REM End expansion for Org ID = 121
  745. REM --------------------------------------------------------------------
  746. 文件完成的扩展
  747. 运行文件: /u01/oracle/app/prodcomn/temp/OFEbNGeM.t
  748. 扩展完成没有任何错误
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2025/11/30 15:08 , Processed in 0.014461 second(s), 14 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表