Professional Documents
Culture Documents
LAD Add-On Localizations: Applies To
LAD Add-On Localizations: Applies To
LAD Add-On Localizations: Applies To
PowerView is Off Last Login: November 3, 2020 2:01 PM BRT Ricardo (Available) (0) Contact Us Help
Give Feedback... You have been directed to this document based on an ID match. Alternatively, click here to search on this phrase. Hide
Copyright (c) 2020, Oracle. All rights reserved. Oracle Confidential.
LAD Add-on Localizations - Special Instructions for Brazilian Localization Installation in R12 (Doc ID 428474.1) To Bottom
Document Details
MAIN CONTENT
Type:
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.
----------------------------------------------------------------------------------------------
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:
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=389064477440212&id=428474.1&_adf.ctrl-state=n2bfvomua_80 1/6
12/11/2020 Document 428474.1
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;
end if;
Release 12.2.x:
The package AP_CUSTOM_WITHHOLDING_PKG should not be updated manually since these codes are already
available in package AP_CUSTOM_WITHHOLDING_HOOK_PKG included on installation patch.
-------------------------------------------------------------------------------------------------------------------------------------- (Last
Update Date 20/08/2018)
Oracle Payments Hook custom code changes for Brazilian Payables and Brazilian Cash Management
Electronic File Transfer
In the Package Body IBY_FD_EXTRACT_EXT_PUB it is necessary to include some extra lines. Follow instructions
below:
*******************GET_INS_EXT_AGG***********************
DECLARE
L_EXT_AGG XMLTYPE;
l_org_id iby_pay_instructions_all.org_id%TYPE;
l_org_type iby_payments_all.org_type%TYPE;
l_payment_function iby_payments_all.payment_function%TYPE;
l_legal_entity_id iby_payments_all.legal_entity_id%TYPE;
l_ledger_id NUMBER;
l_inv_org_id NUMBER;
BEGIN
BEGIN
SELECT NVL(ipi.org_id, ip.org_id)
,ip.org_type
,ip.payment_function
,ip.legal_entity_id
INTO l_org_id
,l_org_type
,l_payment_function
,l_legal_entity_id
FROM 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;
EXCEPTION
WHEN OTHERS THEN
l_org_id := NULL;
l_org_type := NULL;
l_payment_function := NULL;
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=389064477440212&id=428474.1&_adf.ctrl-state=n2bfvomua_80 2/6
12/11/2020 Document 428474.1
l_legal_entity_id := NULL;
END;
IF (l_org_id IS NOT NULL OR l_ledger_id IS NOT NULL OR l_inv_org_id IS NOT NULL) THEN
ELSE
END IF;
END;
********************GET_PMT_EXT_AGG***********************
DECLARE
L_EXT_AGG XMLTYPE;
l_org_id iby_pay_instructions_all.org_id%TYPE;
l_org_type iby_payments_all.org_type%TYPE;
l_payment_function iby_payments_all.payment_function%TYPE;
l_legal_entity_id iby_payments_all.legal_entity_id%TYPE;
l_ledger_id NUMBER;
l_inv_org_id NUMBER;
BEGIN
BEGIN
SELECT ip.org_id
,ip.org_type
,ip.payment_function
,ip.legal_entity_id
INTO l_org_id
,l_org_type
,l_payment_function
,l_legal_entity_id
FROM iby_payments_all ip
WHERE ip.payment_id = P_PAYMENT_ID;
EXCEPTION
WHEN OTHERS THEN
l_org_id := NULL;
l_org_type := NULL;
l_payment_function := NULL;
l_legal_entity_id := NULL;
END;
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=389064477440212&id=428474.1&_adf.ctrl-state=n2bfvomua_80 3/6
12/11/2020 Document 428474.1
IF NVL(l_org_type,'OPERATING_UNIT') = 'OPERATING_UNIT' THEN
l_org_id := l_org_id;
l_ledger_id := NULL;
l_inv_org_id := NULL;
ELSIF NVL(l_org_type,'OPERATING_UNIT') = 'LEGAL_ENTITY' THEN
l_org_id := NULL;
l_inv_org_id := NULL;
BEGIN
SELECT hou.organization_id
INTO l_org_id
FROM hr_operating_units hou
WHERE default_legal_context_id = l_legal_entity_id
and (JG_ZZ_SHARED_PKG.GET_COUNTRY(hou.organization_id,null, null ) = 'BR')
AND ROWNUM = 1;
EXCEPTION
WHEN OTHERS THEN
l_ledger_id := NULL;
END;
ELSE
l_org_id := NULL;
l_ledger_id := NULL;
l_inv_org_id := NULL;
END IF;
IF (l_org_id IS NOT NULL OR l_ledger_id IS NOT NULL OR l_inv_org_id IS NOT NULL) THEN
ELSE
END IF;
END;
******************GET_DOC_EXT_AGG***********************
DECLARE
L_EXT_AGG XMLTYPE;
l_org_id iby_pay_instructions_all.org_id%TYPE;
l_org_type iby_payments_all.org_type%TYPE;
l_payment_function iby_payments_all.payment_function%TYPE;
l_legal_entity_id iby_payments_all.legal_entity_id%TYPE;
l_ledger_id NUMBER;
l_inv_org_id NUMBER;
BEGIN
BEGIN
SELECT idp.org_id
,idp.org_type
,idp.payment_function
,idp.legal_entity_id
INTO l_org_id
,l_org_type
,l_payment_function
,l_legal_entity_id
FROM iby_docs_payable_all idp
WHERE idp.document_payable_id = p_document_payable_id;
EXCEPTION
WHEN OTHERS THEN
l_org_id := NULL;
l_org_type := NULL;
l_payment_function := NULL;
l_legal_entity_id := NULL;
END;
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=389064477440212&id=428474.1&_adf.ctrl-state=n2bfvomua_80 4/6
12/11/2020 Document 428474.1
l_ledger_id := NULL;
l_inv_org_id := NULL;
ELSIF NVL(l_org_type,'OPERATING_UNIT') = 'LEGAL_ENTITY' THEN
l_org_id := NULL;
l_inv_org_id := NULL;
BEGIN
SELECT hou.organization_id
INTO l_org_id
FROM hr_operating_units hou
WHERE default_legal_context_id = l_legal_entity_id
and (JG_ZZ_SHARED_PKG.GET_COUNTRY(hou.organization_id,null, null ) = 'BR')
AND ROWNUM = 1;
EXCEPTION
WHEN OTHERS THEN
l_ledger_id := NULL;
END;
ELSE
l_org_id := NULL;
l_ledger_id := NULL;
l_inv_org_id := NULL;
END IF;
IF (l_org_id IS NOT NULL OR l_ledger_id IS NOT NULL OR l_inv_org_id IS NOT NULL) THEN
ELSE
END IF;
END;
*****************************************************************
----------------------------------------------------------------------------------------------
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:
BEGIN
RETURN 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,
i_login_id,
i_req_id,
i_prg_appl_id,
i_prg_id,
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=389064477440212&id=428474.1&_adf.ctrl-state=n2bfvomua_80 5/6
12/11/2020 Document 428474.1
o_err_num,
o_err_code,
o_err_msg);
EXCEPTION
when others then
o_err_num := SQLCODE;
o_err_msg := 'CSTPACHK.ACTUAL_COST_HOOK:' || substrb(SQLERRM,1,150);
return 0;
END actual_cost_hook;
==============================================
In the package body WIP_WS_CUSTOM it is necessary to include some extra lines. Follow instructions below:
BEGIN
x_actual_resource_rate := cll_f189_external_avg_cost_pkg.UPD_ACTUAL_COST(
EXCEPTION
x_return_status := 'N';
x_actual_resource_rate := null;
END;
Related
Products
Services > Oracle Consulting > Consulting Services > LAD Add-on Localizations > Brazil Consulting Localizations
Keywords
AP_CUSTOM_WITHHOLDING_PKG; CSTPACHK; INSTALLATION; LOCALIZATION; R12
Back to Top
Copyright (c) 2020, Oracle. All rights reserved. Legal Notices and Terms of Use Privacy Statement
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=389064477440212&id=428474.1&_adf.ctrl-state=n2bfvomua_80 6/6