Professional Documents
Culture Documents
Page 1
Contents
Contents Introduction Definition of Sub-Ledger Accounting Sample Client Business Process: Process/System Flow Technology Program Logic (Code used to derive the Location (Segment2) from Bank Stmt Line)
1. To update the table of contents, put the cursor anywhere in the table and press [F9]. To change the number of levels displayed, select the menu option Insert >Index and Tables, make sure the Table of Contents tab is active, and change the Number of Levels to a new value.
Page 2
Page 3
Introduction
This paper enumerates factors which should be taken into consideration while doing customization of Sub-Ledger Accounting(SLA) in R12 using a data base function. These factors can be categorized broadly into two: people and technology. Following recommendations given in this paper should lead to better understanding on how we can setup and customize the Sub-Ledger Accounting(SLA) which is a new feature in R12.
Audience
Project managers, Functional consultants, Technical consultants, Technical designers / developers.
Page 4
This is the typical flow within one product of SLA (e.g Purchasing, AP, Cash Management) that can be best shown in the below change diagram as discussed:
Page 5
Standard Oracle functionality Oracle Functionality allows for the variance/debit/credit amount to be applied at the Consolidated Account level. Proposed Solution In order to satisfy the requirement of tracking expenses at the store level, the proposed workaround is to store the location segment in a Flexfield on the bank statement line and using Oracles Custom SLA functionality to insert this location value into the location segment of the GL ValueString. There are 3 transaction types which need to be tracked at the store level: 1. Variance expenses between Bank Statements and POS. 2. Clearing POS/Certegy Transactions. 3. Debit Memos and Credit Memos on Bank Statement Lines.
For any Debit Memo or Credit Memo Application and Reconciliation, the custom source will allow us the ability to apply any expense amount to the store location. In order to use
Page 6
Subledger Accounting to meet this requirement, we will need to define a custom source which will derive the Location Segment (DFF) stored at the bank statement line that can hold the store location for the GL Accounting String.
Assumptions:
There is a DFF on every bank statement line which contains the GL location segment for that specific store. The DFF will be restricted to a list of values which only contains valid location segments.
Page 7
Page 8
Process/System Flow
Bank Statement Lines (Store Location value in Attribute1(DFF) column) Derive Location Segment Value from SLA: Custom Source (Custom Function) Bank Statement Cash flow Creation Program Transactions (Create Accounting using the Store Location and Accounting Combination from SLA Custom Source Create Accounting
Page 9
Page 10
Technology
Following are the Setups required in the Sub-Ledger module (here it is Cash Management), to successfully implement SLA Customization
CE: SLA Developer Cash Management> SLA Developer>Subledger Accounting Setups>Accounting Methods Builder>Methods and Definitions>Subledger Accounting Methods
XX Process:
Control Number: Business Area: Date: Process Owner:
Cash Management
Priority(H, M, L):
XYZ
User Yes
XX_GL_Corporate_Flexfield
Application Accounting Definition Assignments **This is a copy of the Standard Accrual Accounting Method. All Definitions will remain the same with the exception of Cash Management.**
Application Name Owner Start End
Cash Management
XX_Cash_Management_Standard
User
XX_GL_Corporate_Flexfield
Application Accounting Definition Assignments **This is a copy of the Cash Management Standard Accounting Definition. All Event Definitions will remain the same with the exception of Bank Statement Cash Flows.**
Event Class Event Type Validation Status Create Accounting Locked
Valid
Yes
Yes
Page 11
Event Class
Owner
Description
User
XX_GL_Corporate_Flexfield
Accounting
XX_GL_Corporate_Flexfiel d
Line Assignments
Journal Line Type Owner Inherit Descriptio n Line Description Owner
Statement Line Cash CR Statement Line Cash DR Statement Line Payment Offset DR Statement Line Payment Offset CR
Statement Line Journal Entry Line Description Statement Line Journal Entry Line Description Statement Line Journal Entry Line Description Statement Line Journal Entry Line Description
No No
No No
Owner
User
Page 12
Enabled
Yes
Accounting
XX_GL_Corporate_Flexfield
Priorities
Priority Value Type Value Input Source Segment
10 Condition
Seq ( Source
Source
XXCE_LOCATION_GET_FNC
Segment Operator
Value Type
Segment An
10
XXCE_LOCATION_GET_FNC
IS NOT NULL
Custom Source
Application Custom Source Code Custom Source Name Description
XXXXCE_LOCATION
Lookup Type
10 Parameters
Seq Type
Management Segment
Yes
Name
Source Description
Source
Cashflow Number
Page 13
Page 14
Program Logic (Code used to derive the Location (Segment2) from Bank Stmt Line)
CREATE OR REPLACE FUNCTION XXCE_LOCATION_GET_FNC (p_cashflow_id NUMBER) RETURN CHAR IS ===================================================================== ======== -- Function: XXCE_LOCATION_GET_FNC --- Desc: This function derives the Unique Location Segment (Segment2-Retail Store) from Stmt Line DFF --- Name Type Data type Description -- ---------------------- --------- ------------- ------------------------------ p_cashflow_id IN NUMBER Cashflow Number ------------------------------------------------------------------------------ Return Char(Location) ---- MODIFICATION HISTORY --- Date Chg Req # Author Comments -- ----------- --------- --------------------------------------------------- DD-MM-YY 1.0 Name Original -- ========================================================= l_location apps.gl_code_combinations.segment2%TYPE; l_cashflow_id NUMBER:=p_cashflow_id; BEGIN --Derive Location in A/c Flexfield from the Stmt Line DFF SELECT csl.attribute1 Location_Segment INTO l_location FROM ce_cashflows cc, ce_statement_lines csl WHERE cc.statement_line_id = csl.statement_line_id AND csl.attribute1 IS NOT NULL AND cc.cashflow_id = l_cashflow_id; RETURN l_location; EXCEPTION WHEN OTHERS THEN -- If no Location Segment is found then Return Null to default Std Acc. Combination RETURN NULL; END XXCE_LOCATION_GET_FNC;
Page 15