Upload
william-velasco
View
80
Download
15
Embed Size (px)
DESCRIPTION
Special Instructions for Brazilian Localization Installation in R12 (Doc ID 428474.1) (2)
Citation preview
Special Instructions for Brazilian Localization Installation in R12 (Doc ID 428474.1)Modified: Apr 29, 2013 Type: README
APPLIES TO:
LAD Add-on Localizations - Version 12.0 and laterInformation in this document applies to any platform.
MAIN CONTENT
LAD Consulting LocalizationsSpecial Instructions for Brazilian Localization Installation in R12
DISCLAIMER :
CURRENTLY, ORACLE OFFERS CERTAIN RESALABLE ASSETS OR OTHER DEFINED SERVICE DELIVERABLES (COLLECTIVELY REFERRED TO AS "SERVICE DELIVERABLES") UNDER A LIMITED USE LICENSE. THE SERVICE DELIVERABLES CURRENTLY INCLUDE, BUT ARE NOT LIMITED TO, ORACLE INTEGRATION HUB. YOU AGREE THAT :
(i) SERVICE DELIVERABLES ARE NOT ORACLE STANDARD SOFTWARE PROGRAMS,(ii) TECHNICAL SUPPORT FOR SERVICE DELIVERABLES IS NOT AVAILABLE FROM OR UNDER, OR PROVIDED BY OR THROUGH, ORACLE'S SUPPORT SERVICES ORGANIZATION OR YOUR ORACLE PROGRAM LICENSE AGREEMENT,(iii) YOUR RIGHT TO USE AND RECEIVE SUPPORT SERVICES FOR SERVICE DELIVERABLES IS SOLELY AS DESCRIBED IN YOUR CONTRACT FOR SUCH SERVICE DELIVERABLES, AND(iv) A SERVICE REQUEST REGARDING SERVICE DELIVERABLES, REGARDLESS OF HOW INITIATED OR LOGGED, WILL BE ADDRESSED IN ACCORDANCE WITH THE TERMS OF YOUR CONTRACT FOR SUCH SERVICE DELIVERABLES.
Document Scope
This document has necessary manual steps that must be performed by Oracle customers that applied release 12 Latin America Localization patches in order to have right functionalities for Brazilian Localizations.
The objective of this note is to guide the technical installation procedures of the CLL products with actions that are generally performed by the Apps-DBA team.
For an overview of CLL localizations functionalities, please refer to Note: 427810.1 - LAD Consulting Localizations - Brazil - R12
CLL uses the advanced extension functionalities provide by EBS in order to adequate the user experience with the local needs. To achieve this goal, modifications are required to some database objects. These changes cannot be sent on a patch and must be performed by customers because these objects can have additional customer codification (customer customizations).
How to use this document
Use copy and paste feature of the statements on the indicated places to get code from this document and to insert into the necessary place in the database objects.
Pgina 1 de 5Document Display
01/04/2014https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=k51ynemes...
Following features are affected:
- Brazilian Payables Withholding Tax Calculation - Brazilian Payables Electronic File Transfer - Brazilian Average Cost Calculation (DO NOT apply this when PAC or standard cost is the costing method)
----------------------------------------------------------------------------------------------Brazilian Payables Withholding Tax Calculation custom code changes
In the Package Body AP_CUSTOM_WITHHOLDING_PKG it is necessary to include some extra lines. Follow instructions below:
1) Edit package script using some SQL Editor
2) Include following extra lines in the code:
- Inside "function Ap_Special_Rate", just after the "begin" include:
--(++) CLL_F036 Code Start
if CLL_F036_calculation_pkg.CHECK_COUNTRY(NULL,P_INVOICE_ID,NULL) = TRUE then
return(CLL_F036_CALCULATION_PKG.Ap_Special_Rate (P_Tax_Name ,P_Invoice_Id ,P_Payment_Num ,P_Awt_Date ,P_Amount));
end if;
--(++) CLL_F036 Code End
- Inside "procedure Ap_Special_Rounding", just after the "begin" include:
--(++) CLL_F036 Code Start
if CLL_F036_calculation_pkg.CHECK_COUNTRY(NULL,NULL,P_CHECKRUN_NAME) = TRUE then
CLL_F036_calculation_pkg.calculate_awt_batches (p_checkrun_name => P_Checkrun_Name);
end if;
--(++) CLL_F036 Code End
3) Apply the changed package in the database
----------------------------------------------------------------------------------------------Brazilian Payables Electronic File Transfer custom code changes
In the Package Body IBY_FD_EXTRACT_EXT_PUB it is necessary to include some extra lines. Follow instructions below:
1) Edit package script using some SQL Editor
2) Include following extra lines in the code:
Pgina 2 de 5Document Display
01/04/2014https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=k51ynemes...
- Inside "function GET_INS_EXT_AGG", just after the "begin" include:
--(++) CLL_F033 Code Start
DECLARE L_EXT_AGG XMLTYPE; l_org_id iby_pay_instructions_all.org_id%TYPE;
BEGIN
BEGIN SELECT NVL(ipi.org_id, ip.org_id)
INTO l_org_idFROM iby_pay_instructions_all ipi
, iby_payments_all ip WHERE ipi.payment_instruction_id = P_PAYMENT_INSTRUCTION_ID
AND ipi.payment_instruction_id = ip.payment_instruction_id (+)AND ROWNUM = 1;
END;
IF (JG_ZZ_SHARED_PKG.GET_COUNTRY(l_org_id,NULL,NULL) = 'BR') THEN L_EXT_AGG := CLL_F033_IBY_EXTRACT_EXT_PUB.GET_INS_EXT_AGG(P_PAYMENT_INSTRUCTION_ID);
IF (L_EXT_AGG IS NOT NULL) THENRETURN L_EXT_AGG;
END IF; END IF; END;
--(++) CLL_F033 Code End
- Inside "function GET_PMT_EXT_AGG", just after the "begin" include:
--(++) CLL_F033 Code Start
DECLAREL_EXT_AGG XMLTYPE;
l_org_id iby_payments_all.org_id%TYPE;BEGIN
BEGIN SELECT org_id
INTO l_org_idFROM iby_payments_allWHERE payment_id = P_PAYMENT_ID;
END;
IF (JG_ZZ_SHARED_PKG.GET_COUNTRY(l_org_id,NULL,NULL) = 'BR') THEN L_EXT_AGG := CLL_F033_IBY_EXTRACT_EXT_PUB.GET_PMT_EXT_AGG(P_PAYMENT_ID);
IF (L_EXT_AGG IS NOT NULL) THENRETURN L_EXT_AGG;
END IF; END IF;
END;
--(++) CLL_F033 Code End
- Inside "function Get_Doc_Ext_Agg", just after the "begin" include:
Pgina 3 de 5Document Display
01/04/2014https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=k51ynemes...
--(++) CLL_F033 Code Start
DECLAREL_EXT_AGG XMLTYPE;
l_org_id iby_docs_payable_all.org_id%TYPE;BEGIN
BEGIN SELECT org_id
INTO l_org_idFROM iby_docs_payable_allWHERE document_payable_id = p_document_payable_id;
END;
IF (JG_ZZ_SHARED_PKG.GET_COUNTRY(l_org_id,NULL,NULL) = 'BR') THEN L_EXT_AGG := CLL_F033_IBY_EXTRACT_EXT_PUB.Get_Doc_Ext_Agg(p_document_payable_id);
IF (L_EXT_AGG IS NOT NULL) THENRETURN L_EXT_AGG;
END IF; END IF;
END;
--(++) CLL_F033 Code End
3) Apply the changed package in the database
----------------------------------------------------------------------------------------------Brazilian Average Cost hook custom code changes
IMPORTANT: THIS CODE CHANGE IS ONLY NECESSARY WHEN COSTING METHOD IS AVERAGE COST. IF COSTING METHOD IS PAC OR STANDARD PLEASE, DO NOT PERFORM THIS CODE CHANGE.
In the Package Body CSTPACHK it is necessary to include some extra lines. Follow instructions below:
1) Edit package script using some SQL Editor
2) Include following extra lines in the code:
- Inside "function ACTUAL_COST_HOOK", include:
--(++) CLL_F189 Code Start
BEGINRETURN cll_f189_average_cost_pkg.upd_actual_cost(i_org_id,
i_txn_id, i_layer_id,
i_cost_type,i_cost_method,i_user_id,
Pgina 4 de 5Document Display
01/04/2014https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=k51ynemes...
i_login_id,i_req_id,
i_prg_appl_id,i_prg_id,
o_err_num,o_err_code,
o_err_msg);
EXCEPTIONwhen others then
o_err_num := SQLCODE; o_err_msg := 'CSTPACHK.ACTUAL_COST_HOOK:' || substrb(SQLERRM,1,150); return 0;END actual_cost_hook;
--(++) CLL_F189 Code End
3) Apply the changed package in the database
Pgina 5 de 5Document Display
01/04/2014https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=k51ynemes...