Thursday, September 10, 2015

Oracle Apps General Ledger Tables: Oracle GL Tables and Common GL Queries

Below are Common Oracle Apps GL Tables

GL_SETS_OF_BOOKS
Stores information about the sets of books you define in your Oracle General Ledger application. Each row includes the set of books name, description, functional currency, and other information. This table corresponds to the Set of Books form.

GL_IMPORT_REFERENCES
Stores individual transactions from subledgers that have been summarized into Oracle General Ledger journal entry lines through the Journal Import process. You can specify the journal entry sources for which you want to maintain your transaction’s origin by entering ’Yes’ in the Import Journal References field of the Journal Sources form.
For each source that has Import Journal References set to ’Yes’, Oracle General Ledger will populate GL_IMPORT_REFERENCES with one record for each transaction in your feeder system.

GL_DAILY_RATES
Stores the daily conversion rates for foreign currency transactions. It replaces the GL_DAILY_CONVERSION_RATES table. It stores the rate to use when converting between two currencies for a given conversion date and conversion type. Each row in this table has a corresponding inverse row in which the from and to currencies are switched.

GL_JE_LINES
 Stores the journal entry lines that you enter in the Enter Journals form. There is a one–to–many relationship between journal entries and journal entry lines. Each row in this table stores the associated journal entry header ID, the line number, the associated code combination ID, and the debits or credits associated with the journal line. STATUS is ’U’ for unposted or ’P’ for posted.

GL_PERIODS
Stores information about the accounting periods you define using the Accounting Calendar form. Each row includes the start date and end date of the period, the period type, the fiscal year, the period number, and other information. There is a one–to–many relationship between a row in the GL_PERIOD_SETS table and rows inthis table.

GL_JE_HEADERS
Stores journal entries. There is a one–to–many relationship between journal entry batches and journal entries. Each row in this table includes the associated batch ID, the journal entry name and description, and other information about the journal entry. This table corresponds to the Journals window of the Enter Journals form. STATUS is ’U’ for unposted, ’P’ for posted.

GL_JE_BATCHES
Stores journal entry batches. Each row includes the batch name, description, status, running total debits and credits, and other information. This table corresponds to the Batch window of the Enter Journals form. STATUS is ’U’ for unposted, ’P’ for posted, ’S’ for selected, ’I’ for in the process of being posted. Other values of status indicate an error condition. STATUS_VERIFIED is ’N’ when you create or modify an unposted journal entry batch.

GL_BALANCES
Stores actual, budget, and encumbrance balances for detail and summary accounts. This table stores functional currency, foreign currency, and statistical balances for each accounting period that has ever been opened.
ACTUAL_FLAG is either ’A’, ’B’, or ’E’ for actual, budget, or encumbrance balances, respectively. If ACTUAL_FLAG is ’B’, then BUDGET_VERSION_ID is required. If ACTUAL_FLAG is ’E’, then ENCUMBRANCE_TYPE_ID is required.

GL_CODE_COMBINATIONS
Stores valid account combinations foreach Accounting Flexfield structure within your Oracle General Ledger application. Associated with each account are certain codes and flags, including whether the account is enabled, whether detail posting ordetail budgeting is allowed, and others.

Common Oracle Apps General Ledger (GL Queries)
--Journal header summary
SELECT sob.SHORT_NAME"Book"
,   gjh.STATUS
,   gjh.POSTED_DATE
,   gjh.CREATION_DATE
,   gls.user_je_source_name"Source"
,   glc.user_je_category_name"Category"
,   gjh.PERIOD_NAME"Period"
,   gjb.NAME"Batch Name"
,   gjh.NAME"Journal Name"
,   gjh.currency_code"Currency"
FROM GL_JE_BATCHES gjb, GL_JE_HEADERS gjh,GL_SETS_OF_BOOKS sob,
GL_JE_SOURCES gls, GL_JE_CATEGORIES glc
WHERE gjb.JE_BATCH_ID = gjh.JE_BATCH_ID
AND gjh.SET_OF_BOOKS_ID = sob.set_of_books_id
AND gls.JE_SOURCE_NAME = gjh.JE_SOURCE
AND  glc.JE_CATEGORY_NAME = gjh.JE_CATEGORY
--and gjh.NAME = 'QUV-DECLARATION TVA 11/04'    -- JOURNAL NAME  
--and gls.user_je_source_name like '%Mass%'  -- JOURNAL SOURCE
--AND glc.user_je_category_name= 'Adjustment'  -- JOURNAL CATEGORY
--and gjh.PERIOD_NAME in ('MAY-06')    -- JOURNAL PERIOD
and (trunc(gjh.creation_date) >= to_date('01/07/2002','dd/mm/yyyy')
or trunc(gjh.posted_date) >= to_date('01/07/2002','dd/mm/yyyy'))
--and substr(sob.short_name,1,2) in ('DE')
order by 1,2 desc,3,4,5,7

--Interface Details
SELECT SOB.SHORT_NAME "BOOK"
,    GLI.SET_OF_BOOKS_ID "SOB ID"
, TRUNC(GLI.ACCOUNTING_DATE) "GL DATE"
, GLI.CURRENCY_CODE "CUR"
, GLI.USER_JE_CATEGORY_NAME "JE CATEGOTY"
, GLI.USER_JE_SOURCE_NAME "JE SOURCE"
, GLI.ENTERED_DR "ENT DR"
, GLI.ENTERED_CR "ENT CR"
, GLI.ACCOUNTED_DR "ACC DR"
, GLI.ACCOUNTED_CR "ACC CR"
, GLI.SEGMENT1||'.'||GLI.SEGMENT2||'.'||GLI.SEGMENT3||'.'||GLI.SEGMENT4||'.'||GLI.SEGMENT5
||'.'||GLI.SEGMENT6||'.'||GLI.SEGMENT7||'.'||GLI.SEGMENT8||'.'||GLI.SEGMENT9||'.'||GLI.SEGMENT10 "ACCOUNT COMB."
, GLI.REFERENCE1 "REF 1"
, GLI.REFERENCE2 "REF 2"
, GLI.REFERENCE4 "REF 4"
, GLI.REFERENCE7 "REF 7"
, GLI.REFERENCE10 "REF 10"
, GLI.WARNING_CODE
, GLI.STATUS_DESCRIPTION
, GLI.STATUS
--SELECT GLI.REFERENCE10 "REF 10"
--SELECT DISTINCT GLI.SEGMENT4--,GLI.SEGMENT2, GLI.SEGMENT3, SOB.SHORT_NAME, GLI.SET_OF_BOOKS_ID
FROM GL_INTERFACE GLI, GL_SETS_OF_BOOKS SOB
WHERE SOB.SET_OF_BOOKS_ID(+) = GLI.SET_OF_BOOKS_ID 
--AND GLI.WARNING_CODE IS NOT NULL
--AND GLI.STATUS <> 'P'
and GLI.USER_JE_SOURCE_NAME = 'Payables'
--and trunc(GLI.DATE_CREATED) > '01-DEC-2005'
--and GLI.CURRENCY_CODE  = 'GBP'
--and (GLI.ENTERED_DR <> GLI.ACCOUNTED_DR
-- or GLI.ENTERED_CR <> GLI.ACCOUNTED_CR)
--and GLI.USER_JE_CATEGORY_NAME = 'Bill'
--and substr(SOB.SHORT_NAME,1,2) in ('BE')
--and GLI.SEGMENT3 = '8181'
--AND GLI.STATUS_DESCRIPTION IS NOT NULL
order by 3

--Journal line details
SELECT SOB.SHORT_NAME
,   SOB.NAME
,   GJH.NAME
,   GCC.SEGMENT1||'-'||GCC.SEGMENT2||'-'||GCC.SEGMENT3||'-'||GCC.SEGMENT4||'-'||GCC.SEGMENT5||'-'||GCC.SEGMENT6||'-'||GCC.SEGMENT7||'-'||GCC.SEGMENT8||'-'||GCC.SEGMENT9 "ACCOUNT"
,   GJH.CURRENCY_CODE
,   SUM(GJL.ACCOUNTED_DR)"DR"
,   SUM(GJL.ACCOUNTED_CR)"CR"
,   SUM( NVL(GJL.ACCOUNTED_DR,0) - NVL(GJL.ACCOUNTED_CR,0))"END BALANCE"
,   GJL.PERIOD_NAME
FROM GL_JE_LINES GJL
, GL_JE_HEADERS GJH
, GL_CODE_COMBINATIONS GCC
, GL_SETS_OF_BOOKS SOB
WHERE GJL.CODE_COMBINATION_ID = GCC.CODE_COMBINATION_ID
AND GJL.JE_HEADER_ID = GJH.JE_HEADER_ID
AND GJL.SET_OF_BOOKS_ID = GJH.SET_OF_BOOKS_ID
AND SOB.SET_OF_BOOKS_ID = GJH.SET_OF_BOOKS_ID
AND SOB.SET_OF_BOOKS_ID = GJL.SET_OF_BOOKS_ID
AND GJL.PERIOD_NAME = 'JUL-03'
--AND SOB.SHORT_NAME = 'GBMAN'
--AND GJH.NAME LIKE '%PPL%'
--AND GCC.SEGMENT1 = '85'
--AND GCC.SEGMENT2 = '70'
--AND GCC.SEGMENT3 = '0000'
--AND GCC.SEGMENT4 = '88165'
--AND GJH.STATUS = 'P'
--AND GJL.EFFECTIVE_DATE >= TO_DATE('06/04/2002','DD/MM/YYYY')
--AND GJL.EFFECTIVE_DATE <= TO_DATE('30/11/2002','DD/MM/YYYY')
GROUP BY SOB.SHORT_NAME, SOB.NAME, GJH.NAME
, GCC.SEGMENT1||'-'||GCC.SEGMENT2||'-'||GCC.SEGMENT3||'-'||GCC.SEGMENT4||'-'||GCC.SEGMENT5||'-'||GCC.SEGMENT6||'-'||GCC.SEGMENT7||'-'||GCC.SEGMENT8||'-'||GCC.SEGMENT9
,GJH.CURRENCY_CODE, GJL.PERIOD_NAME

243 comments:

«Oldest   ‹Older   201 – 243 of 243
srihariparu said...

Nice Post! It is really interesting to read from the beginning and Keep up the good work and continue sharing like this.
Linux Training Institute in Chennai | Linux Certification Training in Velachery

srihariparu said...

Excellent Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge.
Java Training Institute in Chennai | Java Certification Training in Velachery

ramya raj said...

These provided information was really so nice, thanks for giving that post and the more skills to develop after refer that post....
No:1 Tally Training Academy in Kanchipuram

Anu Ram said...

Awesome post. Really you are shared very informative concept... Thank you for sharing. Keep on updating......
No:1 Graphic Designing Training Academy in Kanchipuram

srihariparu said...

Nice post. I study something more challenging on completely different blogs everyday.
MatLab Training Institute in Chennai | MatLab Training in Velachery | MatLab Courses in Medavakkam

venusha said...

This is useful post for me. I learn lot of new information from your article. keep sharing. thank you for share us.
MCSE Training Institute in Chennai | MCSE Training in Velachery | MCSE Training Center in Chrompet

srihariparu said...

Thanks for giving nice information from your blog...It's really an amazing post..
Selenium Training Institute in Chennai | Selenium Training Center in Velachery

venusha said...

It is amazing blog and good information... I was improve my knowledge... Thanks for sharing such a informative and wonderful post...
Java Training Institute in Chennai | Java Training Center in Velachery | Java Certification Training in Taramani

srihariparu said...

Thanks for your informative article. Your post helped me to understand the future and career prospects. Keep on updating your blog with such awesome article.
PCB Designing Training Institute in Chennai | PCB Training in Velachery

hanshika said...

Great post!!I really enjoyed while seeing this blog of content.This is very exciting topic because everybody loves cakes and even me.Thanks for sharing this interesting blog of post.keep on sharing your ideas with us.
No:1 Tally Training Academy in kanchipuram

ramya raj said...

Very interesting content which helps me to get the in depth knowledge about the technology. To know more details about the course visit this website.
Best Selenium Automation Training Academy in Kanchipuram

Bhanu Ravi said...

Very nice post here and thanks for it .I always like and such a super blog of these post.Excellent and very cool idea and great blog of different kinds of the valuable information's.
aws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore

lathamukesh said...

Good Post! Thank you so much for sharing this pretty post, it was so good to read and
useful to improve my knowledge as updated one, keep blogging…
No:1 ECE Project Center in
Kanchipuram

lathamukesh said...

Thanks for your informative blog. Your post helped me to understand the future and career
prospects. Keep on updating your blog with such awesome blog.
No:1 MBA Finance Project Center in Kanchipuram






roja sangeetha said...

Thanks for your informative blog. Your post helped me to understand the future and career
prospects. Keep on updating your blog with such awesome blog.
No:1 Embedded Systems Training Institute in
Kanchipuram






pooja said...

Nice blog. Thank you for sharing. The information you

shared is very effective for learners I have got some

important suggestions from it…
No:1
Embedded Systems Training Academy in kanchipuram

pooja said...

Nice blog. Thank you for sharing. The information you

shared is very effective for learners I have got some

important suggestions from it…
No:1
Embedded Systems Training Academy in kanchipuram

lathamukesh said...

Thanks for your informative blog. Your post helped me to understand the future and career prospects. Keep on updating your blog with such awesome blog.No:1 Graphic Designing Training Academy in Kanchipuram







Blessy john said...

Nice blog. Thank you for sharing. The information you shared is very effective for learners I have got some important suggestions from it…....Best Embedded Systems Training Center in Kanchipuram

ethiraj raj said...

I am impressed by the way of writing your blog and topics which you covered. I read all your post which is useful and informative.
aws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore

Tamil Thalaivi said...

Wow! Superb blog with understandable manner. after read your blog Now I got clear idea about import export wizard. Thank you so much for share this wonderful blog.....Best Python Project Center in Chennai

ramya raj said...

Post is very informative… It helped me with great information so I really believe you will do much better in the future..
Regards,....Best Python Project Center in Chennai

Galia Co Hagan said...

Great Article. Thank you for sharing! Really an awesome post for every one.

IEEE Final Year projects Project Centers in Chennai are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation. For experts, it's an alternate ball game through and through. Smaller than expected IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble. Final Year Project Domains for IT It gives you tips and rules that is progressively critical to consider while choosing any final year project point.

JavaScript Training in Chennai

JavaScript Training in Chennai


uma said...




Awesome blog. Your articles really impressed for me, because of all information so nice and unique...
Best Paper Plates Shop in Chennai | Best Paper Plates Shop in Kovilambakkam

cara menggugurkan kandungan dan mempercepat haid said...

I thank you for the information and articles you provided

uma said...

Awesome blog. Your articles really impressed for me, because of all information so nice and unique...
Best Paper Plates Shop in Chennai | Best Paper Plates Shop in thirukkalukundram

Sowmiya R said...

wonderful blog. Very interesting to read this blog.I would like to thank you for the efforts you had made for writing this awesome blog. This is good information and really helpful for the people who need information about this.Thank you for sharing any good knowledge and thanks for fantastic efforts.

oracle training in chennai

oracle training institute in chennai

oracle training in bangalore

oracle training in hyderabad

oracle training

hadoop training in chennai

hadoop training in bangalore


adrian awadis said...

Thanks for sharing this great information I am impressed by the information that you have on this blog. Same as your blog i found another one Oracle Fusion Procurement . Actually I was looking for the same information on internet for Oracle Fusion Supply Chain Management Cloud and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can learn more aboutOracle Fusion Manufacturing . By attending Oracle Fusion Financials .

Anonymous said...

Thanks for sharing
Click Now

Click Now

Click Now

Click Now

Click Now

Click Now

Click Now

Click Now

Click Now
for more information

Roksy said...
This comment has been removed by the author.
cara menggugurkan kandungan said...

thank you for the information provided, we are waiting for the next info

Mohsin Raza said...

It helped me, Thanks :)

Technologie said...

Die Technologie entwickelt sich schneller denn je und schneller als Sie denken. Diese aufkommende Technologie wird unsere Lebensweise verändern

Real-Time Teaching said...

Excellent blog, informative and knowledgeable content. Thanks for sharing this blog with us.
Python Full-stack Training in Hyderabad
Online Python Full-stack Training in Hyderabad

BabuPrasad said...

Great Article! I got too much information from this post. Thanks for sharing such a helpful article. software development company in chennai.Thank you
for sharing this wonderful site.

Jitendra said...

Very nice information. If you are interested to learn networking fundamentals and make your career in cybersecurity field you may visit these pages:
CCNA Certification Training
Fortinet NSE Training

SHIVAM SHARMA said...

infprmative blog , keep posting. reactjs training in pune

Ankit said...

Best CPA Course in Delhi will help you in gaining essential skills that are required to become an accountant and financial advisor in a reputed firm or a company. CPA course in Delhi involves deep details concepts of accounting and will teach through tally software. Additionally, you will get personality development classes to improve your communication skill which will help to crack the interview and be able to present yourself in front of anyone

admin said...

this blog is very informative for developers.
gometro

pratikshaK said...

thanks for posting this helpful post, Python Course In Amravati

pratikshaK said...

raelly amazing. Full Stack Course In Amravati

manisha said...

Thanks for this useful blog, This blog gives us good information.
IT Institute in delhi

Aglowd said...

Oracle Help, Thanks for sharing the valuable information. Also check my blog for Bhajan, Katha aur Chalisa Aglowd

«Oldest ‹Older   201 – 243 of 243   Newer› Newest»