SLA Supporting Reference
There is a business requirement to provide additional information from AR module in GL JE Lines DFF fields. Following additional AR Information are required in CCL JE Lines table.
Invoice Number Invoice Line Number Invoice Date VAT Code Customer Name Customer Country Code Customer Tax Registration Number Transaction Account Class Transaction Tax Rate Transaction Type
Solution:
Oracle's SLA Supporting Reference functionality is used to capture above information from AR transaction tables at the time of AR create accounting is done.
A custom PL/SQL function named "CCLAR_FUNCTIONS_PKG.get_trx_line_tax_code" is created, to be used as a custom source to provide VAT code from AR tables to SLA table. This custom source is used in SLA Supporting Reference setup.
A set of custom PL/SQL functions are created in a package called "CCL_SLA_FUNCTIONS_PKG" to read the supporting information from SLA tables for each GL JE line.
CCL_JOURNALS_V view is modified to expose above additional information from SLA table in attribute columns of GL JE Lines, using the custom functions.
CCL_JOURNALS_V attribute mapping will be done as follows – same as SSSAP mapping:
Name Attribute Custom Function
Transaction Number ATTRIBUTE1 CCL_SLA_FUNCTIONS_PKG.get_supt_ref_trx_number
Transaction Line Number
ATTRIBUTE2 CCL_SLA_FUNCTIONS_PKG.get_supt_ref_trx_line_num
Transaction Date ATTRIBUTE7 CCL_SLA_FUNCTIONS_PKG.get_supt_ref_trx_date
Transaction VAT Code ATTRIBUTE6 CCL_SLA_FUNCTIONS_PKG.get_supt_ref_tax_code
Customer Name ATTRIBUTE4 CCL_SLA_FUNCTIONS_PKG.get_supt_ref_customer_
Name Attribute Custom Function
name
Customer Country Code
ATTRIBUTE14
CCL_SLA_FUNCTIONS_PKG.get_supt_ref_cust_country
Customer Tax Registration Number
ATTRIBUTE5 CCL_SLA_FUNCTIONS_PKG.get_supt_ref_trx_cust_tax_id
Transaction Account Class (Not Used anymore)
ATTRIBUTE16
CCL_SLA_FUNCTIONS_PKG.get_supt_ref_trx_account_class
Transaction Tax Rate ATTRIBUTE3 CCL_SLA_FUNCTIONS_PKG.get_supt_ref_trx_line_tax_rate
Transaction Type ATTRIBUTE9 CCL_SLA_FUNCTIONS_PKG. get_supt_ref_trx_type
The Attributes of the Setup are:
Group Name Detail Code Attribute Name Event Class
Source Name
CCL_AR_SUPPORTING_REF_CM_GR1
CCL_AR_CM_TRX_NUMBER
Transaction Number
Credit Memo
Credit Memo Number
CCL_AR_SUPPORTING_REF_CM_GR1
CCL_AR_CM_TRX_DATE
Transaction DateCredit Memo Credit Memo
Date
CCL_AR_SUPPORTING_REF_CM_GR1
CCL_AR_CM_CUSTOMER_NAME
Customer NameCredit Memo Credit Memo
Bill To Customer Name
CCL_AR_SUPPORTING_REF_CM_GR1
CCL_AR_CM_CUST_COUNTRY
Customer Country Code
Credit Memo Credit Memo
Bill To Customer Country
CCL_AR_SUPPORTING_REF_CM_GR2
CCL_AR_CM_TRX_LINE_NUMBER
Transaction Line Number
Credit Memo Credit Memo
Line Number
CCL_AR_SUPPORTING_REF_CM_GR2
CCL_AR_CM_TRX_TAX_CODE
Transaction VAT Code
Credit Memo CCL_AR_TAX
_CODE
CCL_AR_SUPPORTING_REF_CM_GR03
CCL_AR_CM_CUSTOMER_TAX_ID
Customer Tax Registration Number
Credit Memo Credit Memo
Bill To Customer Site Use Tax Reference
CCL_AR_SUPPORTING_REF_CM_GR03
CCL_AR_CM_TRX_TYPE
Transaction TypeCredit Memo Credit Memo
Transaction Type Name
CCL_AR_SUPPORTING_REF_CM_GR04
CCL_AR_CM_LINE_TAX_RATE
Transaction Tax Rate
Credit Memo CCL_AR_TAX
_RATE
Group Name Detail Code Attribute Name Event Class
Source Name
CCL_AR_SUPPORTING_REF_DM_GR1
CCL_AR_DM_TRX_NUMBER
Transaction Number
Debit Memo Transaction Number
CCL_AR_SUPPORTING_REF_DM_GR1 CCL_AR_DM_TRX_
DATETransaction Date Debit Memo Transaction
DateCCL_AR_SUPPORTING_REF_DM_GR1 CCL_AR_DM_CUST
OMER_NAMECustomer Name Debit Memo Bill To
Customer Name
CCL_AR_SUPPORTING_REF_DM_GR1 CCL_AR_DM_CUST_
COUNTRYCustomer Country Code
Debit Memo Bill To Customer Country
CCL_AR_SUPPORTING_REF_DM_GR2
CCL_AR_DM_TRX_LINE_NUMBER
Transaction Line Number
Debit Memo Transaction Line Number
CCL_AR_SUPPORTING_REF_DM_GR2
CCL_AR_DM_TRX_TAX_CODE
Transaction VAT Code
Debit Memo CCL_AR_TAX_CODE
CCL_AR_SUPPORTING_REF_DM_GR03
CCL_AR_DM_CUSTOMER_TAX_ID
Customer Tax Registration Number
Debit Memo Bill To Customer Site Use Tax Reference
CCL_AR_SUPPORTING_REF_DM_GR03
CCL_AR_DM_TRX_TYPE
Transaction Type Debit Memo Transaction Type Name
CCL_AR_SUPPORTING_REF_DM_GR04
CCL_AR_DM_LINE_TAX_RATE
Transaction Tax Rate
Debit Memo CCL_AR_TAX_RATE
CCL_AR_SUPPORTING_REF_INV_GR1
CCL_AR_INV_TRX_NUMBER
Transaction Number
Invoice Transaction Number
CCL_AR_SUPPORTING_REF_INV_GR1 CCL_AR_INV_TRX_
DATETransaction Date
InvoiceTransaction Date
CCL_AR_SUPPORTING_REF_INV_GR1 CCL_AR_INV_CUST
OMER_NAMECustomer Name
InvoiceBill To Customer Name
CCL_AR_SUPPORTING_REF_INV_GR1 CCL_AR_INV_CUST
_COUNTRYCustomer Country Code
InvoiceBill To Customer Country
CCL_AR_SUPPORTING_REF_INV_GR2
CCL_AR_INV_TRX_LINE_NUMBER
Transaction Line Number
InvoiceTransaction Line Number
CCL_AR_SUPPORTING_REF_INV_GR2
CCL_AR_INV_TRX_TAX_CODE
Transaction VAT Code
InvoiceCCL_AR_TAX_CODE
CCL_AR_SUPPORTING_REF_INV_GR03
CCL_AR_INV_CUSTOMER_TAX_ID
Customer Tax Registration Number
InvoiceBill To Customer Site Use Tax Reference
CCL_AR_SUPPORTING_REF_INV_GR03
CCL_AR_INV_TRX_TYPE
Transaction TypeInvoice
Transaction Type Name
Group Name Detail Code Attribute Name Event Class
Source Name
CCL_AR_SUPPORTING_REF_INV_GR04
CCL_AR_INV_LINE_TAX_RATE
Transaction Tax Rate
InvoiceCCL_AR_TAX_RATE
Setup Steps: (Example)
1. Create the Custom Source for Tax code/ratea. Navigation: Receivables (or other Subledger Responsibility) -> Setup -
> Accounting -> Accounting Methods Builder -> Sources -> Custom Sources
b. The Function required for this custom source should already be compiled in the environment.
c. The function used in our case is - CCLAR_FUNCTIONS_PKG.GET_TRX_LINE_TAX_CODE.
2. Create the Supporting Reference.a. Navigation: Receivables (or other Subledger Responsibility) -> Setup -
> Accounting -> Accounting Methods Builder -> Journal Entry Setups -> Supporting References
b. Enter Code, Name, Description, Detail Code, Detail name, etc. on the screen.
c. To assign the source of the reference, click on ‘Assign Sources’. d. Select the following details from LOV to identify the Source
i. Application = ‘Receivables’ii. Event Class name = This will differ for each separate Event
class. E.g. it can be Invoice, Debit Memo, etc. iii. Source Name = This will differ for each separate requirement,
such as Transaction Number, Transaction Date, etc. e. Click on Apply to assign the source to the Supporting reference.
f. To create the Supporting reference click on ‘Apply’ on the next screen.
3. Assign the Supporting Reference to the Journal Line Definitiona. Navigation: Receivables (or other Subledger Responsibility) -> Setup -
> Accounting -> Accounting Methods Builder -> Methods and Definitions -> Journal Line Definitions.
b. Select the Definition required to be assigned to and the Journal Line Type.
c. Click on ‘Support References’ tab and assign the References to the Journal Line Types. Save the setup.
4. Validate the Application Accounting Definitiona. Navigation: Receivables (or other Subledger Responsibility) -> Setup -
> Accounting -> Accounting Methods Builder -> Methods and Definitions -> Application Accounting Definition
b. The definition associated with the Journal Definition would be in ‘Not Validated’ status.
c. Click on the ‘Validate’ button and validate the setup change.
Test Steps:
1. Create an AR transaction against the event class (selected during Supporting Reference creation) and account it.
2. Check the GL Journal created against it. 3. Click on the Journal Line -> Click on ‘Tools’ -> Click on ‘Drilldown’. 4. This can also be accessed from ‘View Accounting’ option from the AR
transaction as well.
5. The drilldown screen opens with the SLA journal information. Click on the link for ‘Supporting reference’.