Sunteți pe pagina 1din 39

Oracle General Ledger

--Technical Foundation
Important GL
Tables
GL Application Foundation (FND) Tables

Accounting Flexfield - FND_ID_FLEX_STRUCTURES &


FND_ID_FLEX_SEGMENTS
Value Sets - FND_FLEX_VALUE_SETS
Segment Values - FND_FLEX_VALUES & FND_FLEX_VALUES_TL

GL Application - Setup Tables

Set of Books - GL_SETS_OF_BOOKS


Code Combinations - GL_CODE_COMBINATIONS
Calendar - GL_PERIODS, GL_PERIOD_STATUSES
Budget Definitions - GL_BUDGETS, GL_BUDGET_ENTITIES,
GL_BUDGET_VERSIONS
GL Application - Open Interface Tables

Actuals Interface - GL_INTERFACE


Budget Interface - GL_BUDGET_INTERFACE
Daily Foreign Currency Rates - GL_DAILY_RATES_INTERFACE

GL Application - Transaction & Balance Data Tables

Journal Entries (Transactions) - GL_JE_BATCHES, GL_JE_HEADERS,


GL_JE_LINES
Balances - GL_BALANCES
GL Application - Consolidations & Conversion Tables

Consolidation Mapping - GL_CONSOLIDATION


Consolidate Account Ranges - GL_CONSOLIDATION_ACCOUNTS
Daily Foreign Currency Rates - GL_DAILY_RATES_INTERFACE
Aggregate balances (average balances enabled) - GL_DAILY_BALANCES

GL Application - Revaluation Tables

Revaluation definitions - GL_REVALUATIONS


Revaluation Account Ranges GL_REVAL_ACCOUNT_RANGES
Data for country-specific RX trial balance reports
GL_RX_TRIAL_BALANCE_ITF
GL Application Definition Tables

Cross Validation Rules - FND_FLEX_VALIDATION_RULES &


FND_FLEX_VALIDATION_RULE_LINES
Mass Allocations - GL_ALLOC_BATCHES, GL_ALLOC_FORMULAS,
GL_ALLOC_FORMULA_LINES

Application Lookup Tables

GL Lookup Values (e.g. A, B, E) - GL_LOOKUPS


FND Lookup Values - FND_LOOKUPS
GL Application Processing & Temporary Tables

Control - GL_INTERFACE_CONTORL
Temporary - GL_POSTING_INTERIM, GL_TEMPORARY_COMBINATIONS

GL Application Archive, Log, & History Tables

History - GL_ALLOC_HISTORY, GL_ARCHIVE_HISTORY,


GL_INTERFACE_HISTORY
Archive & Purge - GL_ARCHIVE_BATCHES
Log - GL_IMPORT_REFERENCES
GL Objects

GL Objects

GL Application ID = 101
Important GL
Profiles
GL Profiles

GL Set of Books ID
GL Set of Books Name
Journals: Default Category
Journals: Allow Preparer Approval
fnd_profile.VALUE('GL_SET_OF_BKS_ID');

API to get profile value:

fnd_profile.VALUE('GL_SET_OF_BKS_ID');

GL Profiles
GL APIs
Creating new code combination

FND_FLEX_EXT.get_ccid('SQLGL','GL#',
v_coa_id,fnd_date.date_to_canonical(sysdate), p_concat_segments);

Get the combination from the ccid

fnd_flex_ext.get_segs('SQLGL', 'GL#',v_coa_id,p_CCID) ;

It returns the number of segments but also feeds the


segments to the v_tax_array
o_number_of_segments:=FND_FLEX_EXT.breakup_segments(concatenated_se
gs => v_tax_combination ,delimiter => '.',segments => v_tax_array);
GL Private APIs

GL_DAILY_RATES_API
GL_JOURNAL_IMPORT_PKG
GL_SETS_OF_BOOKS_PKG
GL_REVALUATION_PKG
GL_BALANCES_PKG
GL_CURRENCY_API
SELECT object_name FROM ALL_OBJECTS WHERE object_name LIKE 'GL%'
and object_type IN ('PACKAGE','PROCEDURE')

GL PUBLIC APIS
GL INTERFACE
TABLES
GL_INTERFACE

Used to import journal entry transactions (budget, actual, encumbrance, and


statistical) from external sources. Also used to send transactions between
sets of books (e.g.Consolidation, MRC etc.).

Notes:
Requires calendar periods to be Open or Future.

The Journal Import program transfers data from the Interface table into the
Oracle base tables (e.g. GL_JE_BATCHES,GL_JE_HEADERS, and
GL_JE_LINES).

The Journal Posting program changes the posting status w/i the GL_JE_
tables,updates the GL_BALANCES table, creates Intercompany
Balancing transactions, Suspense Posting transactions, etc.
GL_BUDGET_INTERFACE

Used to import budget data directly into GL_BALANCES table without requiring
accounting periods to be open or run the Journal Posting program

Code:

GL_DAILY_RATES_INTERFACE

Used to automates the loading of currency conversion rates into the


GL_DAILY_RATES table.
GL JOURNAL
IMPORT
Legacy System(s) / ADI/Web ADI

Sub Ledgers Oracle GL - Open Interface Tables

GL_INTERFACE GL_BUDGET_INTERFACE

Run Journal Import Run Budget Upload

GL_JE_BATCHES
GL_BALANCES
GL_JE_HEADERS

GL_JE_BATCHES
Submitting Journal Import program using PLSQL API
v_interface_run_id := gl_journal_import_s.nextval;

FND_REQUEST.submit_request(
application => 'SQLGL'
,program => 'GLLEZL'
,description => NULL
,start_time => SYSDATE
,sub_request => FALSE
,argument1 => v_interface_run_id
,argument2 => p_sob_id
,argument3 => N --p_suspense flag
,argument4 => NULL --p_start_date
,argument5 => NULL -- p_end_date
,argument6 => N --p_summary_flag
,argument7 => 'W') -- import descriptive flexfields
;
GL Technical
Documentation
GL Journal Import - GL Interface
GL BALANCE
TRANSLATIONS
GL BALANCE TRANSLATIONS

Balances that require translation into one currency for reporting and/or
consolidation purposes must run the translation process. This process requires
that there be a period rate entered for set of books functional currency to the
translation currency, i.e. EUR to USD. This rate is entered manually using the
period rates form for each set of books. The user will then submit a process using
the translation form to translate the balances to the new currency. The process
will perform the following query to determine the balances available for translation.

GL BALANCE
TRANSLATIONS
GL BALANCE TRANSLATIONS

The process will also retrieve the historical rates for equity accounts from the
GL_HISTORICAL_RATES table for the prior period and insert new records based
on a profile option set for the module (Year to Date or Period To Date).

The process will then insert into a temporary table all of the balances to be
translated called the GL_TRANSLATION_INTERIM. From here the process will
translate the balances and insert those records into the
GL_XLATE_POSTING_INTERIM table. Last the data will be inserted into or
updated in the GL_BALANCES table.
GL BALANCE TRANSLATIONS

Main tables

GL_PERIOD_RATES
GL_HISTORICAL_RATES
GL_TRANSLATION_TRACKING
GL_TRANSALATION_INTERIM
GL_XLATE_POSTING_INTERIM
GL_BALANCES
SUBLEDGER TO GL
INVENTORY

Source: Inventory
Category: MTL(Material Transactions
Program:
Accounting:
DR CR Account Type
INVENTORY X Asset
ERP Inventory Load x Expense

Category: WIP
Program:
Accounting:
DR CR Account Type
WIP - Inventory @ STD x Asset
Material Usage Variance x Expense
Outside Processing Charges x Expense
MFG Std. Variance x Expense
PO

Source: Purchasing
Category: Receiving
Program: Receipt Accruals - Period-End
Accounting:
DR CR Account Type
INVENTORY RECEIVING INSPECTIONX Asset
A/P - Unvouchered Receipts x Liability
ACCOUNTS PAYABLE

Source: Payables
Category: Purchase Invoices
Program:
Accounting:
DR CR Account Type
INVENTORY X Asset
ERP Inventory Load x Expense

Category: Payments
Program:
Accounting:
DR CR Account Type
INVENTORY X Asset
ERP Inventory Load x Expense
ACCOUNTS RECEIVABLE

Source: Receivables
Category: Sales Invoices
Program:
Accounting:
DR CR Account Type
INVENTORY X Asset
ERP Inventory Load x Expense

Category: Trade Receipts


Program:
Accounting:
DR CR Account Type
WIP - Inventory @ STD x Asset
Material Usage Variance x Expense
Outside Processing Charges x Expense
MFG Std. Variance x Expense
Category: Cross Currency
Program:
Accounting:
DR CR Account Type
INVENTORY X Asset
ERP Inventory Load x Expense

Category: Debit Memos


Program:
Accounting:
DR CR Account Type
WIP - Inventory @ STD x Asset
Material Usage Variance x Expense
Outside Processing Charges x Expense
MFG Std. Variance x Expense
Category: Adjustment
Program:
Accounting:
DR CR Account Type
INVENTORY X Asset
ERP Inventory Load x Expense

Category: Credit Memo Applications


Program:
Accounting:
DR CR Account Type
WIP - Inventory @ STD x Asset
Material Usage Variance x Expense
Outside Processing Charges x Expense
MFG Std. Variance x Expense
Category: Credit Memos
Program:
Accounting:
DR CR Account Type
INVENTORY X Asset
ERP Inventory Load x Expense

Category: Misc Receipts


Program:
Accounting:
DR CR Account Type
WIP - Inventory @ STD x Asset
Material Usage Variance x Expense
Outside Processing Charges x Expense
MFG Std. Variance x Expense
FIXED ASSETS

Source: Assets
Category: Addition
Program:
Accounting:
DR CR Account Type
INVENTORY X Asset
ERP Inventory Load x Expense

Category: Depreciation
Program:
Accounting:
DR CR Account Type
WIP - Inventory @ STD x Asset
Material Usage Variance x Expense
Outside Processing Charges x Expense
MFG Std. Variance x Expense
Category: Transfer
Program:
Accounting:
DR CR Account Type
INVENTORY X Asset
ERP Inventory Load x Expense

Category: Adjustment
Program:
Accounting:
DR CR Account Type
WIP - Inventory @ STD x Asset
Material Usage Variance x Expense
Outside Processing Charges x Expense
MFG Std. Variance x Expense
Category: Reclass
Program:
Accounting:
DR CR Account Type
INVENTORY X Asset
ERP Inventory Load x Expense

Category: Retirement
Program:
Accounting:
DR CR Account Type
WIP - Inventory @ STD x Asset
Material Usage Variance x Expense
Outside Processing Charges x Expense
MFG Std. Variance x Expense
PROJECTS

Source: Projects
Category:
Program:
Accounting:
DR CR Account Type
INVENTORY X Asset
ERP Inventory Load x Expense

Category:
Program:
Accounting:
DR CR Account Type
WIP - Inventory @ STD x Asset
Material Usage Variance x Expense
Outside Processing Charges x Expense
MFG Std. Variance x Expense
Questions

????
Thank You

Thank You

S-ar putea să vă placă și