|
|
发表于 2008/2/10 12:47:28
|
显示全部楼层
弹性域 PL/SQL 预先处理程序 的英文名称是:Flexfield PL/SQL Pre-Processor
我发现我的环境中也莫名其妙的被运行了一次,以下是运行后的输出文件:
- 编码的PL/SQL预处理器参数:-
- 开始扩展标志
- 扩展文件: /u01/oracle/app/prodappl/ar/11.5.0/sql/ARFXVIEW.txt
- 扩展标志: &AR_OVERRIDE_SEGMENT
- 扩展标志: &AR_ALL_SEGMENT_VALUES
- 扩展标志: &AR_VALUE_SEGMENT_IDS
- 扩展标志: &AR_ALL_END_DATES
- 扩展标志: &AR_ALL_FROM_POSTALS
- 扩展标志: &AR_ALL_START_DATES
- 扩展标志: &AR_EACH_LOCATION_RATE
- 扩展标志: &AR_ALL_TAX_RATES
- 扩展标志: &AR_ALL_TO_POSTALS
- 扩展标志: &AR_LOCATION_RATE_TABLES
- 扩展标志: &AR_FROM_POSTAL_CONDITION
- 扩展标志: &AR_TO_POSTAL_CONDITION
- 扩展标志: &AR_START_DATE_CONDITION
- 扩展标志: &AR_END_DATE_CONDITION
- 扩展标志: &AR_SEGMENT_ID_EQUALS_PARAMS
- 扩展标志: &AR_SUM_ALL_TAX_RATES
- 扩展标志: &AR_TAX_RATE_EQUALS_TABLES
- 扩展标志: &AR_ANY_SEGMENT_EQUALS_ID
- 扩展标志: &AR_CCIDS_EQUALS_PARAMS
- 扩展标志: &AR_ACTIVE_SEGMENTS_EQUAL_VALUES
- 扩展标志: &AR_PARENT_LOC_IDS_EQUALS_ID
- 扩展标志: &AR_NAME_EACH_LOCATION
- 扩展标志: &AR_LOCATION_STRUCTURE_ID
- 扩展标志: &AR_FIND_EACH_SEGMENT
- 扩展标志: &AR_POPULATE_PARENT
- 扩展标志: &AR_INVALID_SEGMENTS
- 扩展标志: &AR_ACTIVE_LOC_IDS
- 扩展标志: &AR_ALL_SEGMENT_QUALIFIERS
- 扩展标志: &AR_FIRST_SEGMENT_QUALIFIER
- 扩展标志: &AR_LAST_SEGMENT_QUALIFIER
- 扩展标志: &AR_TAX_ACCOUNT_SEGMENT
- 扩展标志: &AR_CCID_EQUALS_LOCATION_ID
- 扩展标志: &AR_TAX_EXEMPT_CHK_LOC_IDS
- 扩展标志: &AR_TAX_EXEMPT_JOIN_VALUES
- 扩展标志: &AR_DIS_LOCATIONS_ALLBUTLAST_DF
- 扩展标志: &AR_DIS_LOCATIONS_LAST_DF
- 扩展标志: &AR_EXEMPTION_LEVEL_OPEN
- 扩展标志: &AR_EXEMPTION_LEVEL_CLOSE
- 扩展标志: &AR_ALL_LOCATION_QUALIFIERS
- “扩展标志完成”
- REM --------------------------------------------------------------------
- REM Begin expansion for Org ID = 161
- REM --------------------------------------------------------------------
- /*===========================================================================+
- | $Header: ARFXVIEW.txt 115.1 2002/10/29 15:50:19 djancis noship $ |
- *===========================================================================+
- | Copyright (c) 1989 Oracle Corporation Belmont, California, USA |
- | All rights reserved. |
- +===========================================================================+
- | |
- | FILENAME |
- | |
- | ARFVIEW.fxp Flexfield pre-processed views |
- | |
- | DESCRIPTION |
- | |
- | This file creates database views that need to be pre-processed |
- | using the AR Flexfield PL/SQL Pre-processor. |
- | |
- | IMPORTANT : VERSION INFO |
- | This file has been changed completely to incorporate Multi-Org changes |
- | in Rel 10.7. Ensure that bugfixes are for both 10.6 and 10.7 and to the|
- | right version as version nos. are "leap froged" for 10.6 and 10.7. |
- | |
- | Release 10.4, 10.5 and 10.6, LATEST version is 70.12 |
- | |
- | Release 10.7, the latest version is |
- | |
- | VIEWS CREATED |
- | |
- | TAX_EXEMPTIONS_QP_V |
- | |
- | This view lists all exemptions for a given BILL TO CUSTOMER and |
- | SHIP TO SITE. Since an exemption can be at one or more levels, all |
- | applicable exemptions are listed on the quickpick and the user is |
- | allowed to select from any of the candidates. |
- | |
- | MODIFICATION HISTORY |
- | 17 MAY, 1994 Nigel Smith Created |
- | 2 Aug, 1994 Nigel Smith Bugfix: 228807, Customer exemptions are now |
- | managed by Bill To Customer; New column |
- | BILL_TO_CUSTOMER_ID has been implemented for |
- | Release 10.4; column SHIP_TO_CUSTOMER_ID |
- | will be dropped at Release 10.5 |
- | 12 Oct, 1994 Nigel Smith Bugfix: 232727, Tax Exemptions QP View fails |
- | when system installs just one segment in |
- | sales tax location flexfield. |
- | Bugfix: 237413, Exemptions that had NO |
- | Certificate Number did not appear in the |
- | Order Entry Quick pick. |
- | Lookups are outer joinded; in case any |
- | receivable quickcodes are deleted. |
- | 11 Sep, 1995 Mahesh S. Bugfix: 305029, Concurrent request to rebuild|
- | Tax packages fails. |
- | |
- | 18-Mar-2002 Satya, Ahmed Bug 2265200 |
- | 29-Oct-2002 D. Jancis Removed reference to ra site_uses and |
- | replaced with hz_cust_site_uses. |
- +===========================================================================*/
- REM dbdrv: none
- SET VERIFY OFF
- WHENEVER SQLERROR CONTINUE;
- /*--------------------------------------------------------------------------+
- | Bugfix: 305029 |
- | In a Multi-Org install, a synonym to the tax view referencing the |
- | APPS Schema will exist, drop the synonym and create the view. |
- +--------------------------------------------------------------------------*/
- drop synonym TAX_EXEMPTIONS_QP_V;
- create or replace force view TAX_EXEMPTIONS_QP_V as
- &START_VIEW_BODY
- select
- /* $Header: ARFXVIEW.txt 115.1 2002/10/29 15:50:19 djancis noship $ */
- s.site_use_id SHIP_TO_SITE_USE_ID,
- a.cust_account_id SHIP_TO_CUSTOMER_ID,
- x.customer_id BILL_TO_CUSTOMER_ID,
- x.site_use_id EXEMPTION_SHIP_TO_SITE_USE_ID,
- NULL ||
- v1.location_segment_user_value
- LOCATION,
- decode(x.customer_exemption_number,
- null, ' ',
- x.customer_exemption_number)
- TAX_EXEMPT_NUMBER,
- x.reason_code TAX_EXEMPT_REASON_CODE,
- nvl(arl.meaning,x.reason_code)
- TAX_EXEMPT_REASON_MEANING,
- x.percent_exempt PERCENT_EXEMPT,
- x.status STATUS_CODE,
- nvl(ars.meaning,
- x.status) STATUS_MEANING,
- x.start_date START_DATE,
- x.end_date END_DATE,
- x.tax_exemption_id TAX_EXEMPTION_ID,
- decode( x.site_use_id, null,
- decode(x.location_id_segment_1, null,
- 11, 1), 0 )
- +decode( x.status, 'PRIMARY', 0,
- 'MANUAL', 1000,
- 'UNAPPROVED', 2000,
- 'EXPIRED', 3000, 4000 )
- DISPLAY_ORDER,
- x.tax_code TAX_CODE
- from
- hz_cust_site_uses s,
- hz_cust_acct_sites_all a,
- hz_party_sites p,
- hz_loc_assignments la,
- ra_tax_exemptions x,
- ar_lookups ars,
- ar_lookups arl,
- ar_location_combinations c,
- ar_location_values v1,
- ar_system_parameters sys
- where la.loc_id = c.location_id(+)
- and a.party_site_id = p.party_site_id
- and p.location_id = la.location_id
- and nvl(a.org_id,-99) = nvl(la.org_id,-99)
- and s.cust_acct_site_id = a.cust_acct_site_id
- and nvl(a.org_id,nvl(to_number(decode
- (substrb(userenv('CLIENT_INFO'),1,1), ' ' ,NULL,
- substrb(userenv('CLIENT_INFO'),1,10))),-99)) =
- nvl(to_number(decode(substrb(userenv('CLIENT_INFO'),1,1),
- ' ',NULL,substrb(userenv('CLIENT_INFO'),1,10))),-99)
- and nvl(x.location_id_segment_1, nvl(c.location_id_segment_1,-1)) = nvl(c.location_id_segment_1,-1)
- and v1.location_segment_id(+) = x.location_id_segment_1
- and arl.lookup_type(+) = 'TAX_REASON'
- and arl.lookup_code(+) = x.reason_code
- and ars.lookup_type = 'TAX_EXEMPT_STATUS'
- and ars.lookup_code = x.status
- and x.exemption_type = 'CUSTOMER'
- and nvl( x.site_use_id, s.site_use_id ) = s.site_use_id
- &END_VIEW_BODY
- /
- commit;
- exit;
- REM --------------------------------------------------------------------
- REM End expansion for Org ID = 161
- REM --------------------------------------------------------------------
- 文件完成的扩展
- 扩展标志: &AR_OVERRIDE_SEGMENT
- 扩展标志: &AR_ALL_SEGMENT_VALUES
- 扩展标志: &AR_VALUE_SEGMENT_IDS
- 扩展标志: &AR_ALL_END_DATES
- 扩展标志: &AR_ALL_FROM_POSTALS
- 扩展标志: &AR_ALL_START_DATES
- 扩展标志: &AR_EACH_LOCATION_RATE
- 扩展标志: &AR_ALL_TAX_RATES
- 扩展标志: &AR_ALL_TO_POSTALS
- 扩展标志: &AR_LOCATION_RATE_TABLES
- 扩展标志: &AR_FROM_POSTAL_CONDITION
- 扩展标志: &AR_TO_POSTAL_CONDITION
- 扩展标志: &AR_START_DATE_CONDITION
- 扩展标志: &AR_END_DATE_CONDITION
- 扩展标志: &AR_SEGMENT_ID_EQUALS_PARAMS
- 扩展标志: &AR_SUM_ALL_TAX_RATES
- 扩展标志: &AR_TAX_RATE_EQUALS_TABLES
- 扩展标志: &AR_ANY_SEGMENT_EQUALS_ID
- 扩展标志: &AR_CCIDS_EQUALS_PARAMS
- 扩展标志: &AR_ACTIVE_SEGMENTS_EQUAL_VALUES
- 扩展标志: &AR_PARENT_LOC_IDS_EQUALS_ID
- 扩展标志: &AR_NAME_EACH_LOCATION
- 扩展标志: &AR_LOCATION_STRUCTURE_ID
- 扩展标志: &AR_FIND_EACH_SEGMENT
- 扩展标志: &AR_POPULATE_PARENT
- 扩展标志: &AR_INVALID_SEGMENTS
- 扩展标志: &AR_ACTIVE_LOC_IDS
- 扩展标志: &AR_ALL_SEGMENT_QUALIFIERS
- 扩展标志: &AR_FIRST_SEGMENT_QUALIFIER
- 扩展标志: &AR_LAST_SEGMENT_QUALIFIER
- 扩展标志: &AR_TAX_ACCOUNT_SEGMENT
- 扩展标志: &AR_CCID_EQUALS_LOCATION_ID
- 扩展标志: &AR_TAX_EXEMPT_CHK_LOC_IDS
- 扩展标志: &AR_TAX_EXEMPT_JOIN_VALUES
- 扩展标志: &AR_DIS_LOCATIONS_ALLBUTLAST_DF
- 扩展标志: &AR_DIS_LOCATIONS_LAST_DF
- 扩展标志: &AR_EXEMPTION_LEVEL_OPEN
- 扩展标志: &AR_EXEMPTION_LEVEL_CLOSE
- 扩展标志: &AR_ALL_LOCATION_QUALIFIERS
- “扩展标志完成”
- REM --------------------------------------------------------------------
- REM Begin expansion for Org ID = 101
- REM --------------------------------------------------------------------
- /*===========================================================================+
- | $Header: ARFXVIEW.txt 115.1 2002/10/29 15:50:19 djancis noship $ |
- *===========================================================================+
- | Copyright (c) 1989 Oracle Corporation Belmont, California, USA |
- | All rights reserved. |
- +===========================================================================+
- | |
- | FILENAME |
- | |
- | ARFVIEW.fxp Flexfield pre-processed views |
- | |
- | DESCRIPTION |
- | |
- | This file creates database views that need to be pre-processed |
- | using the AR Flexfield PL/SQL Pre-processor. |
- | |
- | IMPORTANT : VERSION INFO |
- | This file has been changed completely to incorporate Multi-Org changes |
- | in Rel 10.7. Ensure that bugfixes are for both 10.6 and 10.7 and to the|
- | right version as version nos. are "leap froged" for 10.6 and 10.7. |
- | |
- | Release 10.4, 10.5 and 10.6, LATEST version is 70.12 |
- | |
- | Release 10.7, the latest version is |
- | |
- | VIEWS CREATED |
- | |
- | TAX_EXEMPTIONS_QP_V |
- | |
- | This view lists all exemptions for a given BILL TO CUSTOMER and |
- | SHIP TO SITE. Since an exemption can be at one or more levels, all |
- | applicable exemptions are listed on the quickpick and the user is |
- | allowed to select from any of the candidates. |
- | |
- | MODIFICATION HISTORY |
- | 17 MAY, 1994 Nigel Smith Created |
- | 2 Aug, 1994 Nigel Smith Bugfix: 228807, Customer exemptions are now |
- | managed by Bill To Customer; New column |
- | BILL_TO_CUSTOMER_ID has been implemented for |
- | Release 10.4; column SHIP_TO_CUSTOMER_ID |
- | will be dropped at Release 10.5 |
- | 12 Oct, 1994 Nigel Smith Bugfix: 232727, Tax Exemptions QP View fails |
- | when system installs just one segment in |
- | sales tax location flexfield. |
- | Bugfix: 237413, Exemptions that had NO |
- | Certificate Number did not appear in the |
- | Order Entry Quick pick. |
- | Lookups are outer joinded; in case any |
- | receivable quickcodes are deleted. |
- | 11 Sep, 1995 Mahesh S. Bugfix: 305029, Concurrent request to rebuild|
- | Tax packages fails. |
- | |
- | 18-Mar-2002 Satya, Ahmed Bug 2265200 |
- | 29-Oct-2002 D. Jancis Removed reference to ra site_uses and |
- | replaced with hz_cust_site_uses. |
- +===========================================================================*/
- REM dbdrv: none
- SET VERIFY OFF
- WHENEVER SQLERROR CONTINUE;
- /*--------------------------------------------------------------------------+
- | Bugfix: 305029 |
- | In a Multi-Org install, a synonym to the tax view referencing the |
- | APPS Schema will exist, drop the synonym and create the view. |
- +--------------------------------------------------------------------------*/
- drop synonym TAX_EXEMPTIONS_QP_V;
- create or replace force view TAX_EXEMPTIONS_QP_V as
- &START_VIEW_BODY
- select
- /* $Header: ARFXVIEW.txt 115.1 2002/10/29 15:50:19 djancis noship $ */
- s.site_use_id SHIP_TO_SITE_USE_ID,
- a.cust_account_id SHIP_TO_CUSTOMER_ID,
- x.customer_id BILL_TO_CUSTOMER_ID,
- x.site_use_id EXEMPTION_SHIP_TO_SITE_USE_ID,
- v1.location_segment_user_value || decode ( v2.location_segment_user_value, NULL, NULL, '.' ) ||
- v2.location_segment_user_value || decode ( v3.location_segment_user_value, NULL, NULL, '.' ) ||
- v3.location_segment_user_value
- LOCATION,
- decode(x.customer_exemption_number,
- null, ' ',
- x.customer_exemption_number)
- TAX_EXEMPT_NUMBER,
- x.reason_code TAX_EXEMPT_REASON_CODE,
- nvl(arl.meaning,x.reason_code)
- TAX_EXEMPT_REASON_MEANING,
- x.percent_exempt PERCENT_EXEMPT,
- x.status STATUS_CODE,
- nvl(ars.meaning,
- x.status) STATUS_MEANING,
- x.start_date START_DATE,
- x.end_date END_DATE,
- x.tax_exemption_id TAX_EXEMPTION_ID,
- decode( x.site_use_id, null,
- decode(x.location_id_segment_3, null,
- decode(x.location_id_segment_2, null,
- decode(x.location_id_segment_1, null,
- 11, 3), 2), 1), 0 )
- +decode( x.status, 'PRIMARY', 0,
- 'MANUAL', 1000,
- 'UNAPPROVED', 2000,
- 'EXPIRED', 3000, 4000 )
- DISPLAY_ORDER,
- x.tax_code TAX_CODE
- from
- hz_cust_site_uses s,
- hz_cust_acct_sites_all a,
- hz_party_sites p,
- hz_loc_assignments la,
- ra_tax_exemptions x,
- ar_lookups ars,
- ar_lookups arl,
- ar_location_combinations c,
- ar_location_values v1,
- ar_location_values v2,
- ar_location_values v3,
- ar_system_parameters sys
- where la.loc_id = c.location_id(+)
- and a.party_site_id = p.party_site_id
- and p.location_id = la.location_id
- and nvl(a.org_id,-99) = nvl(la.org_id,-99)
- and s.cust_acct_site_id = a.cust_acct_site_id
- and nvl(a.org_id,nvl(to_number(decode
- (substrb(userenv('CLIENT_INFO'),1,1), ' ' ,NULL,
- substrb(userenv('CLIENT_INFO'),1,10))),-99)) =
- nvl(to_number(decode(substrb(userenv('CLIENT_INFO'),1,1),
- ' ',NULL,substrb(userenv('CLIENT_INFO'),1,10))),-99)
- and nvl(x.location_id_segment_1, nvl(c.location_id_segment_1,-1)) = nvl(c.location_id_segment_1,-1)
- and nvl(x.location_id_segment_2, nvl(c.location_id_segment_2,-1)) = nvl(c.location_id_segment_2,-1)
- and nvl(x.location_id_segment_3, nvl(c.location_id_segment_3,-1)) = nvl(c.location_id_segment_3,-1)
- and v1.location_segment_id(+) = x.location_id_segment_1
- and v2.location_segment_id(+) = x.location_id_segment_2
- and v3.location_segment_id(+) = x.location_id_segment_3
- and arl.lookup_type(+) = 'TAX_REASON'
- and arl.lookup_code(+) = x.reason_code
- and ars.lookup_type = 'TAX_EXEMPT_STATUS'
- and ars.lookup_code = x.status
- and x.exemption_type = 'CUSTOMER'
- and nvl( x.site_use_id, s.site_use_id ) = s.site_use_id
- &END_VIEW_BODY
- /
- commit;
- exit;
- REM --------------------------------------------------------------------
- REM End expansion for Org ID = 101
- REM --------------------------------------------------------------------
- 文件完成的扩展
- 扩展标志: &AR_OVERRIDE_SEGMENT
- 扩展标志: &AR_ALL_SEGMENT_VALUES
- 扩展标志: &AR_VALUE_SEGMENT_IDS
- 扩展标志: &AR_ALL_END_DATES
- 扩展标志: &AR_ALL_FROM_POSTALS
- 扩展标志: &AR_ALL_START_DATES
- 扩展标志: &AR_EACH_LOCATION_RATE
- 扩展标志: &AR_ALL_TAX_RATES
- 扩展标志: &AR_ALL_TO_POSTALS
- 扩展标志: &AR_LOCATION_RATE_TABLES
- 扩展标志: &AR_FROM_POSTAL_CONDITION
- 扩展标志: &AR_TO_POSTAL_CONDITION
- 扩展标志: &AR_START_DATE_CONDITION
- 扩展标志: &AR_END_DATE_CONDITION
- 扩展标志: &AR_SEGMENT_ID_EQUALS_PARAMS
- 扩展标志: &AR_SUM_ALL_TAX_RATES
- 扩展标志: &AR_TAX_RATE_EQUALS_TABLES
- 扩展标志: &AR_ANY_SEGMENT_EQUALS_ID
- 扩展标志: &AR_CCIDS_EQUALS_PARAMS
- 扩展标志: &AR_ACTIVE_SEGMENTS_EQUAL_VALUES
- 扩展标志: &AR_PARENT_LOC_IDS_EQUALS_ID
- 扩展标志: &AR_NAME_EACH_LOCATION
- 扩展标志: &AR_LOCATION_STRUCTURE_ID
- 扩展标志: &AR_FIND_EACH_SEGMENT
- 扩展标志: &AR_POPULATE_PARENT
- 扩展标志: &AR_INVALID_SEGMENTS
- 扩展标志: &AR_ACTIVE_LOC_IDS
- 扩展标志: &AR_ALL_SEGMENT_QUALIFIERS
- 扩展标志: &AR_FIRST_SEGMENT_QUALIFIER
- 扩展标志: &AR_LAST_SEGMENT_QUALIFIER
- 扩展标志: &AR_TAX_ACCOUNT_SEGMENT
- 扩展标志: &AR_CCID_EQUALS_LOCATION_ID
- 扩展标志: &AR_TAX_EXEMPT_CHK_LOC_IDS
- 扩展标志: &AR_TAX_EXEMPT_JOIN_VALUES
- 扩展标志: &AR_DIS_LOCATIONS_ALLBUTLAST_DF
- 扩展标志: &AR_DIS_LOCATIONS_LAST_DF
- 扩展标志: &AR_EXEMPTION_LEVEL_OPEN
- 扩展标志: &AR_EXEMPTION_LEVEL_CLOSE
- 扩展标志: &AR_ALL_LOCATION_QUALIFIERS
- “扩展标志完成”
- REM --------------------------------------------------------------------
- REM Begin expansion for Org ID = 141
- REM --------------------------------------------------------------------
- /*===========================================================================+
- | $Header: ARFXVIEW.txt 115.1 2002/10/29 15:50:19 djancis noship $ |
- *===========================================================================+
- | Copyright (c) 1989 Oracle Corporation Belmont, California, USA |
- | All rights reserved. |
- +===========================================================================+
- | |
- | FILENAME |
- | |
- | ARFVIEW.fxp Flexfield pre-processed views |
- | |
- | DESCRIPTION |
- | |
- | This file creates database views that need to be pre-processed |
- | using the AR Flexfield PL/SQL Pre-processor. |
- | |
- | IMPORTANT : VERSION INFO |
- | This file has been changed completely to incorporate Multi-Org changes |
- | in Rel 10.7. Ensure that bugfixes are for both 10.6 and 10.7 and to the|
- | right version as version nos. are "leap froged" for 10.6 and 10.7. |
- | |
- | Release 10.4, 10.5 and 10.6, LATEST version is 70.12 |
- | |
- | Release 10.7, the latest version is |
- | |
- | VIEWS CREATED |
- | |
- | TAX_EXEMPTIONS_QP_V |
- | |
- | This view lists all exemptions for a given BILL TO CUSTOMER and |
- | SHIP TO SITE. Since an exemption can be at one or more levels, all |
- | applicable exemptions are listed on the quickpick and the user is |
- | allowed to select from any of the candidates. |
- | |
- | MODIFICATION HISTORY |
- | 17 MAY, 1994 Nigel Smith Created |
- | 2 Aug, 1994 Nigel Smith Bugfix: 228807, Customer exemptions are now |
- | managed by Bill To Customer; New column |
- | BILL_TO_CUSTOMER_ID has been implemented for |
- | Release 10.4; column SHIP_TO_CUSTOMER_ID |
- | will be dropped at Release 10.5 |
- | 12 Oct, 1994 Nigel Smith Bugfix: 232727, Tax Exemptions QP View fails |
- | when system installs just one segment in |
- | sales tax location flexfield. |
- | Bugfix: 237413, Exemptions that had NO |
- | Certificate Number did not appear in the |
- | Order Entry Quick pick. |
- | Lookups are outer joinded; in case any |
- | receivable quickcodes are deleted. |
- | 11 Sep, 1995 Mahesh S. Bugfix: 305029, Concurrent request to rebuild|
- | Tax packages fails. |
- | |
- | 18-Mar-2002 Satya, Ahmed Bug 2265200 |
- | 29-Oct-2002 D. Jancis Removed reference to ra site_uses and |
- | replaced with hz_cust_site_uses. |
- +===========================================================================*/
- REM dbdrv: none
- SET VERIFY OFF
- WHENEVER SQLERROR CONTINUE;
- /*--------------------------------------------------------------------------+
- | Bugfix: 305029 |
- | In a Multi-Org install, a synonym to the tax view referencing the |
- | APPS Schema will exist, drop the synonym and create the view. |
- +--------------------------------------------------------------------------*/
- drop synonym TAX_EXEMPTIONS_QP_V;
- create or replace force view TAX_EXEMPTIONS_QP_V as
- &START_VIEW_BODY
- select
- /* $Header: ARFXVIEW.txt 115.1 2002/10/29 15:50:19 djancis noship $ */
- s.site_use_id SHIP_TO_SITE_USE_ID,
- a.cust_account_id SHIP_TO_CUSTOMER_ID,
- x.customer_id BILL_TO_CUSTOMER_ID,
- x.site_use_id EXEMPTION_SHIP_TO_SITE_USE_ID,
- v1.location_segment_user_value || decode ( v2.location_segment_user_value, NULL, NULL, '.' ) ||
- v2.location_segment_user_value || decode ( v3.location_segment_user_value, NULL, NULL, '.' ) ||
- v3.location_segment_user_value
- LOCATION,
- decode(x.customer_exemption_number,
- null, ' ',
- x.customer_exemption_number)
- TAX_EXEMPT_NUMBER,
- x.reason_code TAX_EXEMPT_REASON_CODE,
- nvl(arl.meaning,x.reason_code)
- TAX_EXEMPT_REASON_MEANING,
- x.percent_exempt PERCENT_EXEMPT,
- x.status STATUS_CODE,
- nvl(ars.meaning,
- x.status) STATUS_MEANING,
- x.start_date START_DATE,
- x.end_date END_DATE,
- x.tax_exemption_id TAX_EXEMPTION_ID,
- decode( x.site_use_id, null,
- decode(x.location_id_segment_3, null,
- decode(x.location_id_segment_2, null,
- decode(x.location_id_segment_1, null,
- 11, 3), 2), 1), 0 )
- +decode( x.status, 'PRIMARY', 0,
- 'MANUAL', 1000,
- 'UNAPPROVED', 2000,
- 'EXPIRED', 3000, 4000 )
- DISPLAY_ORDER,
- x.tax_code TAX_CODE
- from
- hz_cust_site_uses s,
- hz_cust_acct_sites_all a,
- hz_party_sites p,
- hz_loc_assignments la,
- ra_tax_exemptions x,
- ar_lookups ars,
- ar_lookups arl,
- ar_location_combinations c,
- ar_location_values v1,
- ar_location_values v2,
- ar_location_values v3,
- ar_system_parameters sys
- where la.loc_id = c.location_id(+)
- and a.party_site_id = p.party_site_id
- and p.location_id = la.location_id
- and nvl(a.org_id,-99) = nvl(la.org_id,-99)
- and s.cust_acct_site_id = a.cust_acct_site_id
- and nvl(a.org_id,nvl(to_number(decode
- (substrb(userenv('CLIENT_INFO'),1,1), ' ' ,NULL,
- substrb(userenv('CLIENT_INFO'),1,10))),-99)) =
- nvl(to_number(decode(substrb(userenv('CLIENT_INFO'),1,1),
- ' ',NULL,substrb(userenv('CLIENT_INFO'),1,10))),-99)
- and nvl(x.location_id_segment_1, nvl(c.location_id_segment_1,-1)) = nvl(c.location_id_segment_1,-1)
- and nvl(x.location_id_segment_2, nvl(c.location_id_segment_2,-1)) = nvl(c.location_id_segment_2,-1)
- and nvl(x.location_id_segment_3, nvl(c.location_id_segment_3,-1)) = nvl(c.location_id_segment_3,-1)
- and v1.location_segment_id(+) = x.location_id_segment_1
- and v2.location_segment_id(+) = x.location_id_segment_2
- and v3.location_segment_id(+) = x.location_id_segment_3
- and arl.lookup_type(+) = 'TAX_REASON'
- and arl.lookup_code(+) = x.reason_code
- and ars.lookup_type = 'TAX_EXEMPT_STATUS'
- and ars.lookup_code = x.status
- and x.exemption_type = 'CUSTOMER'
- and nvl( x.site_use_id, s.site_use_id ) = s.site_use_id
- &END_VIEW_BODY
- /
- commit;
- exit;
- REM --------------------------------------------------------------------
- REM End expansion for Org ID = 141
- REM --------------------------------------------------------------------
- 文件完成的扩展
- 扩展标志: &AR_OVERRIDE_SEGMENT
- 扩展标志: &AR_ALL_SEGMENT_VALUES
- 扩展标志: &AR_VALUE_SEGMENT_IDS
- 扩展标志: &AR_ALL_END_DATES
- 扩展标志: &AR_ALL_FROM_POSTALS
- 扩展标志: &AR_ALL_START_DATES
- 扩展标志: &AR_EACH_LOCATION_RATE
- 扩展标志: &AR_ALL_TAX_RATES
- 扩展标志: &AR_ALL_TO_POSTALS
- 扩展标志: &AR_LOCATION_RATE_TABLES
- 扩展标志: &AR_FROM_POSTAL_CONDITION
- 扩展标志: &AR_TO_POSTAL_CONDITION
- 扩展标志: &AR_START_DATE_CONDITION
- 扩展标志: &AR_END_DATE_CONDITION
- 扩展标志: &AR_SEGMENT_ID_EQUALS_PARAMS
- 扩展标志: &AR_SUM_ALL_TAX_RATES
- 扩展标志: &AR_TAX_RATE_EQUALS_TABLES
- 扩展标志: &AR_ANY_SEGMENT_EQUALS_ID
- 扩展标志: &AR_CCIDS_EQUALS_PARAMS
- 扩展标志: &AR_ACTIVE_SEGMENTS_EQUAL_VALUES
- 扩展标志: &AR_PARENT_LOC_IDS_EQUALS_ID
- 扩展标志: &AR_NAME_EACH_LOCATION
- 扩展标志: &AR_LOCATION_STRUCTURE_ID
- 扩展标志: &AR_FIND_EACH_SEGMENT
- 扩展标志: &AR_POPULATE_PARENT
- 扩展标志: &AR_INVALID_SEGMENTS
- 扩展标志: &AR_ACTIVE_LOC_IDS
- 扩展标志: &AR_ALL_SEGMENT_QUALIFIERS
- 扩展标志: &AR_FIRST_SEGMENT_QUALIFIER
- 扩展标志: &AR_LAST_SEGMENT_QUALIFIER
- 扩展标志: &AR_TAX_ACCOUNT_SEGMENT
- 扩展标志: &AR_CCID_EQUALS_LOCATION_ID
- 扩展标志: &AR_TAX_EXEMPT_CHK_LOC_IDS
- 扩展标志: &AR_TAX_EXEMPT_JOIN_VALUES
- 扩展标志: &AR_DIS_LOCATIONS_ALLBUTLAST_DF
- 扩展标志: &AR_DIS_LOCATIONS_LAST_DF
- 扩展标志: &AR_EXEMPTION_LEVEL_OPEN
- 扩展标志: &AR_EXEMPTION_LEVEL_CLOSE
- 扩展标志: &AR_ALL_LOCATION_QUALIFIERS
- “扩展标志完成”
- REM --------------------------------------------------------------------
- REM Begin expansion for Org ID = 121
- REM --------------------------------------------------------------------
- /*===========================================================================+
- | $Header: ARFXVIEW.txt 115.1 2002/10/29 15:50:19 djancis noship $ |
- *===========================================================================+
- | Copyright (c) 1989 Oracle Corporation Belmont, California, USA |
- | All rights reserved. |
- +===========================================================================+
- | |
- | FILENAME |
- | |
- | ARFVIEW.fxp Flexfield pre-processed views |
- | |
- | DESCRIPTION |
- | |
- | This file creates database views that need to be pre-processed |
- | using the AR Flexfield PL/SQL Pre-processor. |
- | |
- | IMPORTANT : VERSION INFO |
- | This file has been changed completely to incorporate Multi-Org changes |
- | in Rel 10.7. Ensure that bugfixes are for both 10.6 and 10.7 and to the|
- | right version as version nos. are "leap froged" for 10.6 and 10.7. |
- | |
- | Release 10.4, 10.5 and 10.6, LATEST version is 70.12 |
- | |
- | Release 10.7, the latest version is |
- | |
- | VIEWS CREATED |
- | |
- | TAX_EXEMPTIONS_QP_V |
- | |
- | This view lists all exemptions for a given BILL TO CUSTOMER and |
- | SHIP TO SITE. Since an exemption can be at one or more levels, all |
- | applicable exemptions are listed on the quickpick and the user is |
- | allowed to select from any of the candidates. |
- | |
- | MODIFICATION HISTORY |
- | 17 MAY, 1994 Nigel Smith Created |
- | 2 Aug, 1994 Nigel Smith Bugfix: 228807, Customer exemptions are now |
- | managed by Bill To Customer; New column |
- | BILL_TO_CUSTOMER_ID has been implemented for |
- | Release 10.4; column SHIP_TO_CUSTOMER_ID |
- | will be dropped at Release 10.5 |
- | 12 Oct, 1994 Nigel Smith Bugfix: 232727, Tax Exemptions QP View fails |
- | when system installs just one segment in |
- | sales tax location flexfield. |
- | Bugfix: 237413, Exemptions that had NO |
- | Certificate Number did not appear in the |
- | Order Entry Quick pick. |
- | Lookups are outer joinded; in case any |
- | receivable quickcodes are deleted. |
- | 11 Sep, 1995 Mahesh S. Bugfix: 305029, Concurrent request to rebuild|
- | Tax packages fails. |
- | |
- | 18-Mar-2002 Satya, Ahmed Bug 2265200 |
- | 29-Oct-2002 D. Jancis Removed reference to ra site_uses and |
- | replaced with hz_cust_site_uses. |
- +===========================================================================*/
- REM dbdrv: none
- SET VERIFY OFF
- WHENEVER SQLERROR CONTINUE;
- /*--------------------------------------------------------------------------+
- | Bugfix: 305029 |
- | In a Multi-Org install, a synonym to the tax view referencing the |
- | APPS Schema will exist, drop the synonym and create the view. |
- +--------------------------------------------------------------------------*/
- drop synonym TAX_EXEMPTIONS_QP_V;
- create or replace force view TAX_EXEMPTIONS_QP_V as
- &START_VIEW_BODY
- select
- /* $Header: ARFXVIEW.txt 115.1 2002/10/29 15:50:19 djancis noship $ */
- s.site_use_id SHIP_TO_SITE_USE_ID,
- a.cust_account_id SHIP_TO_CUSTOMER_ID,
- x.customer_id BILL_TO_CUSTOMER_ID,
- x.site_use_id EXEMPTION_SHIP_TO_SITE_USE_ID,
- v1.location_segment_user_value || decode ( v2.location_segment_user_value, NULL, NULL, '.' ) ||
- v2.location_segment_user_value || decode ( v3.location_segment_user_value, NULL, NULL, '.' ) ||
- v3.location_segment_user_value
- LOCATION,
- decode(x.customer_exemption_number,
- null, ' ',
- x.customer_exemption_number)
- TAX_EXEMPT_NUMBER,
- x.reason_code TAX_EXEMPT_REASON_CODE,
- nvl(arl.meaning,x.reason_code)
- TAX_EXEMPT_REASON_MEANING,
- x.percent_exempt PERCENT_EXEMPT,
- x.status STATUS_CODE,
- nvl(ars.meaning,
- x.status) STATUS_MEANING,
- x.start_date START_DATE,
- x.end_date END_DATE,
- x.tax_exemption_id TAX_EXEMPTION_ID,
- decode( x.site_use_id, null,
- decode(x.location_id_segment_3, null,
- decode(x.location_id_segment_2, null,
- decode(x.location_id_segment_1, null,
- 11, 3), 2), 1), 0 )
- +decode( x.status, 'PRIMARY', 0,
- 'MANUAL', 1000,
- 'UNAPPROVED', 2000,
- 'EXPIRED', 3000, 4000 )
- DISPLAY_ORDER,
- x.tax_code TAX_CODE
- from
- hz_cust_site_uses s,
- hz_cust_acct_sites_all a,
- hz_party_sites p,
- hz_loc_assignments la,
- ra_tax_exemptions x,
- ar_lookups ars,
- ar_lookups arl,
- ar_location_combinations c,
- ar_location_values v1,
- ar_location_values v2,
- ar_location_values v3,
- ar_system_parameters sys
- where la.loc_id = c.location_id(+)
- and a.party_site_id = p.party_site_id
- and p.location_id = la.location_id
- and nvl(a.org_id,-99) = nvl(la.org_id,-99)
- and s.cust_acct_site_id = a.cust_acct_site_id
- and nvl(a.org_id,nvl(to_number(decode
- (substrb(userenv('CLIENT_INFO'),1,1), ' ' ,NULL,
- substrb(userenv('CLIENT_INFO'),1,10))),-99)) =
- nvl(to_number(decode(substrb(userenv('CLIENT_INFO'),1,1),
- ' ',NULL,substrb(userenv('CLIENT_INFO'),1,10))),-99)
- and nvl(x.location_id_segment_1, nvl(c.location_id_segment_1,-1)) = nvl(c.location_id_segment_1,-1)
- and nvl(x.location_id_segment_2, nvl(c.location_id_segment_2,-1)) = nvl(c.location_id_segment_2,-1)
- and nvl(x.location_id_segment_3, nvl(c.location_id_segment_3,-1)) = nvl(c.location_id_segment_3,-1)
- and v1.location_segment_id(+) = x.location_id_segment_1
- and v2.location_segment_id(+) = x.location_id_segment_2
- and v3.location_segment_id(+) = x.location_id_segment_3
- and arl.lookup_type(+) = 'TAX_REASON'
- and arl.lookup_code(+) = x.reason_code
- and ars.lookup_type = 'TAX_EXEMPT_STATUS'
- and ars.lookup_code = x.status
- and x.exemption_type = 'CUSTOMER'
- and nvl( x.site_use_id, s.site_use_id ) = s.site_use_id
- &END_VIEW_BODY
- /
- commit;
- exit;
- REM --------------------------------------------------------------------
- REM End expansion for Org ID = 121
- REM --------------------------------------------------------------------
- 文件完成的扩展
- 运行文件: /u01/oracle/app/prodcomn/temp/OFEbNGeM.t
- 扩展完成没有任何错误
复制代码 |
|