LAD Add-On Localizations: Applies To

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

12/11/2020 Document 428474.

PowerView is Off Last Login: November 3, 2020 2:01 PM BRT Ricardo (Available) (0) Contact Us Help

Dashboard Knowledge Service Requests Patches & Updates Community 428474.1

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

Was this document helpful?


APPLIES TO:
Yes
LAD Add-on Localizations - Version 12.0 and later No
Information in this document applies to any platform.

Document Details
MAIN CONTENT
Type:

LAD Add-on Localizations


README
Status:
PUBLISHED
Last Major
Jun 12, 2019
Update:
Jun 12, 2019
LAD Add-on Localizations - Special Instructions for Brazilian Localization Installation in R12 Last Update:

DISCLAIMER : Related Products


LAD Add-on Localizations
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 Information Centers
THAT :
No Information Center
available for this document.
(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 Document References
PROGRAM LICENSE AGREEMENT,
No References available for
(iii) YOUR RIGHT TO USE AND RECEIVE SUPPORT SERVICES FOR SERVICE DELIVERABLES IS SOLELY
this document.
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 Recently Viewed
SERVICE DELIVERABLES.
LAD Add-on Localizations -
Special Instructions for
Brazilian Localization
Document Scope Installation in R12
[428474.1]
R12: Troubleshooting Known
This document has necessary manual steps that must be performed by Oracle customers that applied release 12 Latin
XML Publisher and E-
America Localization patches in order to have right functionalities for Brazilian Localizations. Business Suite (EBS)
Integration Issues
The objective of this note is to guide the technical installation procedures of the CLL products with actions that are [1410160.1]
generally performed by the Apps-DBA team. R12 Ship Location, Tax
Payer Id Fields In
Globalization Flexfield Not
For an overview of CLL localizations functionalities, please refer to Note:
Present [473355.1]
427810.1 - LAD Consulting Localizations - Brazil - R12
R12:AP/IBY Understanding
XML Payment Templates and
CLL uses the advanced extension functionalities provide by EBS in order to adequate the user experience with the Formats [562806.1]
local needs. To achieve this goal, modifications are required to some database objects. These changes cannot be sent R11i/12: Understanding
on a patch and must be performed by customers because these objects can have additional customer codification Payments Output
(customer customizations). Formatting, Extracts and
Templates [799597.1]
Show More
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.

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

Release 12.0.x until 12.1.x:

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

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;

--(++) 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

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:

1) Edit package script using some SQL Editor

2) Include following extra lines in the code:

*******************GET_INS_EXT_AGG***********************

- 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;
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 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

IF (JG_ZZ_SHARED_PKG.GET_COUNTRY(l_org_id,l_ledger_id,l_inv_org_id) = '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) THEN
RETURN L_EXT_AGG;
END IF;
END IF;

ELSE

IF (JG_ZZ_SHARED_PKG.GET_COUNTRY = '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) THEN
RETURN L_EXT_AGG;
END IF;
END IF;

END IF;

END;

--(++) CLL_F033 Code End

********************GET_PMT_EXT_AGG***********************

- Inside "function GET_PMT_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;
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

IF (JG_ZZ_SHARED_PKG.GET_COUNTRY(l_org_id,l_ledger_id,l_inv_org_id) = '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) THEN
RETURN L_EXT_AGG;
END IF;
END IF;

ELSE

IF (JG_ZZ_SHARED_PKG.GET_COUNTRY = '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) THEN
RETURN L_EXT_AGG;
END IF;
END IF;

END IF;

END;

--(++) CLL_F033 Code End

******************GET_DOC_EXT_AGG***********************

- Inside "function Get_Doc_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;
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;

IF NVL(l_org_type,'OPERATING_UNIT') = 'OPERATING_UNIT' THEN


l_org_id := l_org_id;

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

IF (JG_ZZ_SHARED_PKG.GET_COUNTRY(l_org_id,l_ledger_id,l_inv_org_id) = '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) THEN
RETURN L_EXT_AGG;
END IF;
END IF;

ELSE

IF (JG_ZZ_SHARED_PKG.GET_COUNTRY = '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) THEN
RETURN L_EXT_AGG;
END IF;
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.

Actual Cost Hook for Material Transactions Cost:

==================================

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

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;

--(++) CLL_F189 Code End

3) Apply the changed package in the database

WIP_WS_CUSTOM hook for WIP outside processing transactions:

==============================================

In the package body WIP_WS_CUSTOM 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 procedure GET_OSP_ACTUAL_COST include:

BEGIN

x_actual_resource_rate := cll_f189_external_avg_cost_pkg.UPD_ACTUAL_COST(

p_wip_entity_id => p_wip_entity_id,

p_op_seq_num => p_op_seq_num,

p_res_seq_num => p_res_seq_num,

p_res_usage_rate => p_res_usage_rate,

p_osp_item_basis => p_osp_item_basis,

p_res_id => p_res_id,

p_src_line_id => p_src_line_id,

p_rcv_txn_UOM => p_rcv_txn_UOM,

p_po_line_UOM => p_po_line_UOM,

p_po_line_id => p_po_line_id,

o_return_status => x_return_status);

EXCEPTION

when others then

x_return_status := 'N';

x_actual_resource_rate := null;

END;

3) Apply the changed package in the database

Didn't find what you are looking for? Ask in Community...

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

You might also like