Customization of Sub Ledger Accounting
Customization of Sub Ledger Accounting
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
Page 5
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: Business Area: Date:
Cash Management
Priority(H, M, L): Process Owner:
Control Number:
XYZ
Owner Enabled
User
Method Name
Yes
Transaction
Accounting
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
Owner Version
User
Definition Code
Definition Name
Description
Transaction
Accounting
XX_GL_Corporate_Flexfield
Page 11
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
Description
User
Event Type
All
Event Class
Owner Enabled
User
Definition Code
Yes
Definition Name
Budgetary Control
No
Description
Transaction
XX_GL_Corporate_Flexfield
Accounting
XX_GL_Corporate_Flexfield
Line Assignments
Journal Line Type Owner Inherit Line Description Description Owner
Oracle Oracle
Yes Yes
Statement Line Journal Entry Line Description Statement Line Journal Entry Line Page 12
Oracle Oracle
Description Statement Line Payment Offset DR Statement Line Payment Offset CR Oracle Oracle Yes Yes Statement Line Journal Entry Line Description Statement Line Journal Entry Line Description Oracle Oracle
No No
No No
Owner
User
Rule Code
Rule Name
Enabled
Yes
Description
Transaction
Accounting
XX_GL_Corporate_Flexfield
Output Type
Page 13
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
Description
PL SQL Function
XXXXCE_LOCATION_GET_ C
10 Parameters
Seq Type
Management Segment
Yes
Name
Source Description
Source
Cashflow Number
Page 15
Page 16
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 17