Get sub account desception in trial balance detail report

i want to get sub account desception in trial balance detail report
as sub account segment is segment 3 and dependent on segment 2 account segment
or get description of combination...

Hello,
Here's the query. It was designed to display the description of SEGMENT2 You will need to adapt it to your data :
SELECT MAX(GLCC.SEGMENT1) PAGEBREAK_SEGMENT_H , MAX(GLCC.SEGMENT2) ACCOUNTING_SEGMENT_H , MAX(GLCC.SEGMENT1||'
'||GLCC.SEGMENT2||'
'||GLCC.SEGMENT3||'
'||GLCC.SEGMENT4||'
'||GLCC.SEGMENT5||'
'||GLCC.SEGMENT6||'
'||GLCC.SEGMENT7||'
'||GLCC.SEGMENT8) FLEXDATA_H ,
FV.description,
sum(decode(glb.period_name,'<YOUR BEGG PERIOD NAME>',nvl(begin_balance_dr,0) - nvl(begin_balance_cr,0),0)) BEG_BAL_H ,
sum((decode(glb.period_name,'<YOUR PERIOD NAME>',nvl(period_net_dr,0) - nvl(period_net_cr,0) + nvl(begin_balance_dr,0) - nvl(begin_balance_cr,0),0)) - (decode(glb.period_name,'<YOUR BEGG PERIOD NAME',nvl(begin_balance_dr,0) - nvl(begin_balance_cr,0),0))) ACTIVITY_H ,
sum(decode(glb.period_name,'<YOUR PERIOD NAME>',nvl(period_net_dr,0) - nvl(period_net_cr,0) + nvl(begin_balance_dr,0) - nvl(begin_balance_cr,0),0)) END_BAL_H
FROM GL_BALANCES GLB , GL_CODE_COMBINATIONS GLCC, FND_FLEX_VALUES_VL FV
WHERE GLB . ACTUAL_FLAG = 'A' AND GLB . SET_OF_BOOKS_ID = 52 AND GLB . CURRENCY_CODE = : P_CURRENCY_CODE AND (GLB.TRANSLATED_FLAG != 'R' or GLB.TRANSLATED_FLAG is null)
AND GLB.PERIOD_NAME IN ('YOUR PERIOD NAME','YOUR BEGG PERIOD NAME') AND GLB.CODE_COMBINATION_ID = GLCC.CODE_COMBINATION_ID
AND ''||GLCC.SEGMENT1 = 'YOUR SEGMENT1 VALUE'
AND FV.FLEX_VALUE = GLCC.SEGMENT2
AND FV.FLEX_VALUE_SET_ID = <FLEX_VALUE_SET_ID OF YOUR SEGMENT2>
GROUP BY GLCC.SEGMENT1, GLCC.SEGMENT2, GLCC.SEGMENT3, GLCC.SEGMENT4, GLCC.SEGMENT5, GLCC.SEGMENT6, GLCC.SEGMENT7, GLCC.SEGMENT8, FV.description
ORDER BY GLCC.SEGMENT2,GLCC.SEGMENT2,GLCC.SEGMENT1,GLCC.SEGMENT1,GLCC.SEGMENT3, GLCC.SEGMENT4, GLCC.SEGMENT5, GLCC.SEGMENT6, GLCC.SEGMENT7, GLCC.SEGMENT8
Octavio

Similar Messages

  • Requirement of  General Ledger Trial Balance Detail Report Date wise

    Thanks for your reply
    We have to requirement of General Ledger Trial Balance Detail Report Date wise.
    Please help for that.
    Thanks.

    Take sum(Accounted_dr) - Sum(Accounted_Cr) till the Accounting Date..... from GL_BALANCES
    Edited by: 924750 on Sep 16, 2012 3:42 AM

  • R12 Accounts Payable Trial balance is reporting incorrectly (urgent)

    the trial balance is reporting penny amounts on invoices that are fully paid how do I correct this issue

    Follow the below steps and Run the Trial Blance and let me know if it helps.
    Thanks
    Girish
    How to Rebuild Trial Balance Data (repopulate XLA_TRIAL_BALANCES)
    1. Navigate: Payables Responsibility > Setup > Accounting Setups > Subledger Accounting Setups > Open Account Balances Listing Definitions
    2. Query up your Report Definition: select Defined By = Accounting Flexfield or Segment (whichever applies in your case), click “Go”
    3. Click on Update icon in the "Actions" column – the definition's update page opens.
    4. "Touch" the definition by simply clicking "Apply" button (without making any change).
    This should start the “Open Account Balances Data Manager” concurrent processes

  • Difference in Trial Balance & Legder report because Zeero opening balance appearing in Trial balance for some accounts

    Hi Experts,
    When I am generating System trial balance report, it shows null in opening balance column for some of accounts while ledger for respective accounts are showing correct figure of opening balance.
    And because of this my trial balance showing wrong figures
    Also, I have checked it through query report, it showing same opening balance figure as ledger report.
    (Attachment for trial Bal, Ledger & Query reports for one of the account are attached here)
    I have checked all selection criteria in Trial balance report, but nothing is working.
    Please suggest me any solution for for above issue.
    regards,
    Raviraj

    Hi Raviraj
    Can you confirm In Trail Balance Opening balance for the Period is OB Starts from Company Activity.
    With Regards
    Balaji Sampath

  • PCA Trial Balance Sheet Report

    Hi
    In GL module the transaction F.08 gives you a trial balance with debit & credit values by GL, is there a report which does the same in PCA?  there is a similar report in KE80 8a-PCA005G but this is only working for P&L accounts I need the report to work for balance sheet accounts.
    We are not using the new GL.
    thanks for your help

    Voodi,
    Description of problem
    - The <b>P&L statement node</b> amount is supposed to roll up to the <b>Profit/Loss current Year</b> node in the balance sheet
    - If amount is a profit, amount goes to <b>calculated profit node</b>
    - If amount is a loss, amount goes to <b>calculated loss node</b>
    - When I run a balance sheet report the <b>Profit/Loss current Year node</b> does not show at all. I assume because no data for leaves.
    - When the customer runs a FS report in ECC, they see the <b>Profit/Loss current Year node</b>
    - Also, the chart of accounts used is WACA, but the leaf for<b>calculated profit </b> is <b>0COA0BRESULT 2A</b> and the leaf for <b>calculated loss</b> is <b>0COA0BRESULT 1A</b>.
    - Where does this config take place in ECC for the FS hierarchy? I went into ECC and looked at FS item versions and don't see an item under calculated profit or loss.
    -  The customer expects these leaves to appear in query result.  I am trying to determine if some config is required in ECC for FS item or do I need to perform calculation in query
    - Not FI savvy

  • Inventory Balances Details Report

    Hi,
    Is there any standard inventory balances(in qty & value) details report whereby we can view inventory balances breakdown by plants, storage locations and even batches if possible?
    Thanks,
    CW

    Hi,
    Check these reports using Transaction which satisfies all your requirements.
    MC.9--Stock analysis Material wise
    rgds
    Chidanand

  • Trial Balance - Details with Drill Down

    Hello Experts,
    I know that SAP has a default Crystal Report for Balance Sheet , P&L which gives us a summary of accounts. Is there anyway i can drill down into the details for each account balance using this report. Is there a default report that i am requesting? How about creating Subreport using default report and link to the summary report? Please advise.

    Hi Praneeth.....
    Creating SubReport may create problem.
    I guess you have to make your own query.
    But Option for subreport is also not bad but it creates problem sometimes to execute the report.......
    Regards,
    Rahul

  • Can you get iclouds account with master card payment  details

    I Only have master/debit card and won't allow these for payment details for iclouds account is there a way round this

    Contact iTunes store support and ask what forms of payment they will accept for iCloud storage upgrades: https://ssl.apple.com/emea/support/itunes/contact.html.

  • R12 Trial Balance

    Hello All,
    I am trying to customize/recreate the trial balance insert statement in the XLA_TB-AP_REPORT_PVT package (R12.1.3). However, I am not able to figure out how the insert statement is constructed in the package (frankly not able to locate where it is).
    Can any one help me find it?
    Cheers,
    Monkey

    I ran the "Accounts Payable Trial Balance" detail report with the layout as: "Accounts Payable Trial Balance - Group by Account". The request completed ok...but there is no output file. Any one know why it does not produce an out put? In the log it says, that it inserted 1794278 rows in the GT table. However, when I look in the table xla_trial_balances_gt, it is empty)
    Pls. help. Totally lost
    Thanks,
    Monkey
    Edited by: OAF_Monkey on Feb 15, 2012 11:26 AM

  • Need how to get the parent acount details in Trial balance report

    Hi All,
    I have a requirement in which i need to print the details of the parent account details as the report wont print the parent a/c details by default.
    Can any one please let me know how can i achieve this?
    Thax in advance.
    Seshu

    Generally the trial balance summary report does not fetch the parent account details.
    In my customized report , i need to get the detials of the current accounts as well as the details (initial balance,debit,credit ) for a particular period of the parent account as well.

  • What is the query for Accounts Payable Trial Balance (APXTRBAL) in 11.5.10?

    Hi Guys,
    What is the query for Accounts Payable Trial Balance (APXTRBAL) in 11.5.10?
    I have to write an AP Invoice Aging Report in Discoverer to show all unpaid invoices that have been transferred into GL... Business wants it to match one-to-one with the AP Trial Balance standard report...
    Business wants to run the report for any date in a past...
    The report has two parameters:
    As Of Date - the same as As of Date for the AP Trial Report
    Trial Balance Run Date - the date when Trial Balance was run...
    Conditions are:
    TRUNC(Invoice Date) <=TRUNC(NVL(TO_DATE(:As Of Date),SYSDATE))
    TRUNC(NVL(Payment Date,'01-JAN-5000')) > TRUNC(NVL(TO_DATE(:As Of Date),SYSDATE))
    TRUNC(Invoice Creation Date) <= TRUNC(NVL(TO_DATE(:Trial Balance Run Date),SYSDATE))
    Distr Accounting Date <= TRUNC(NVL(TO_DATE(:As Of Date),SYSDATE))
    NVL(Distr Creation Date,Invoice Creation Date) <= TRUNC(NVL(TO_DATE(:Trial Balance Run Date),SYSDATE))
    Show_Flag = 'YES', where:
    Show_Flag = CASE WHEN ( NVL(Cancelled Date,'01-JAN-1901') > NVL(:As Of Date,SYSDATE) AND NVL(Inv Amount Aud,0) = 0 ) THEN 'YES' ELSE ( CASE WHEN NVL(Inv Amount Aud,0) = 0 THEN 'NO' ELSE 'YES' END ) END
    There is a difference between the logic of my report, and the logic of AP Trial Balance...
    Could you please advise what I'm missing?
    Thanks,
    Iana

    What is the query for Accounts Payable Trial Balance (APXTRBAL) in 11.5.10? You can get the code by opening the report in Reports Builder and get the query.
    Or, enable trace/debug as per (FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12 [ID 296559.1]).
    Thanks,
    Hussein

  • Account analysis/trial balance

    Hi Gurus
    We have a situation where by when we run the account analysis report,it doesnt return the correct balance as per trial balance, the accounts in the trial balance are correct and shows an amount more than what is on the account analysis,what could be the problem.
    any assist will be greatly appreciated
    regards
    ST

    Hi Grace
    Future dated payments are the post dated cheques (in layman's language). For example - When we take some office space on rent, we need to pay monthly rent for it. Generally, the owner of the office would like to have the cheques provided to him on the date of agreement dated for the respective month (as a matter of security). These cheques will bear the date for the respective months. Lets say you enter into an agreement on 01-May-2010 for one year, you will provide 12 checks dated 01-May-2010, 01-Jun-2010, 01-Jul-2010 etc. All these checks would be post dated payments.
    These payments do not reduce the cash/bank balances as on the date of issue. This happens on the date of maturity of payment (check date). These payments are entered into the oracle system by using the payment method "Bills Payable" or any similar payment methods.
    The accounting for these payments (at the time of recording the payment) - Supplier Liability Dr. and Future Dated Payment Liability credit. It will not have much impact on the trial balance except for the fact that the liability code combination would change -- from supplier liability to future dated liability. On the date of maturity, when you run the report to matrue the bills payable, the status of the payment changes to negotiable and then the accounting takes place - Future Dated liability dr... and cash/cash clearing credit.
    Hope this explains. Let me know if you have any further question or ned any further clarity
    Vinit
    Edited by: vinitp on Jun 22, 2010 8:47 PM

  • How to get the account numbers which maintains negative balance for consecutive 5 days

    Here is what I am trying to do 
    I am trying to get the accounts which has negative balance consecutively for five days
    Here in this a/c 1 and 5 has consecutive negative balance
     how to pull these accounts using sql query. 
    create table #p(cal date, ac# int, bal int)
    insert into #p values  ( GETDATE(), 1, -1),
                           ( GETDATE(), 2, 1),
                           ( GETDATE(), 3, 1),
                           ( GETDATE(), 4, -2),
                           ( GETDATE(), 5, -6),
                           ( GETDATE()-1, 1, -1),
                           ( GETDATE()-1, 2, 1),
                           ( GETDATE()-1, 3, 1),
                           ( GETDATE()-1, 4, 2),
                            ( GETDATE()-1, 5, -7),
                            ( GETDATE()-2, 1, -2),
                           ( GETDATE()-2, 2, -1),
                           ( GETDATE()-2, 3, -1),
                           ( GETDATE()-2, 4, 2),
                           ( GETDATE()-2, 5, -6),
                           ( GETDATE()-3, 1, -2),
                           ( GETDATE()-3, 2, -1),
                           ( GETDATE()-3, 3, -1),
                           ( GETDATE()-3, 4, 2),
                           ( GETDATE()-3, 5, -2),
                           ( GETDATE()-4, 1, -4),
                           ( GETDATE()-4, 2, 1),
                           ( GETDATE()-4, 3, 1),
                           ( GETDATE()-4, 4, -2),
                           ( GETDATE()-4, 5, -2),
                           ( GETDATE()-5, 1, -4),
                           ( GETDATE()-5, 2, 1),
                           ( GETDATE()-5, 3, 1),
                           ( GETDATE()-5, 4, 2),                       
                           ( GETDATE()-5, 5, -1)
                         --  drop table #p

    @ Jing
    Again not sure if it is ok to comment on other people's answers, I hope you don't take it the wrong way, but your query will not account for CONSECUTIVE days. E.g. if the acc balance goes back to a positive value, day count must be reset.
    Now I understand why people answered this so much faster than me LOL.
    Edit: Besides, the requeriment for the acc being returned is that its value was negative for 5 days (120 hours). When a given account balance first switches to a negative value, it has 0 hours in that state. It all add a day to its "negative balance consecutive
    day count" property the next time its value is checked (cal + 1). With that said, if your query worked, it would be cnt > 6 not cnt > 5.
    Thanks for pointing the issue. I have improved my query  to address it.
     I try to come up with something to my understanding to the questions. It may not interpret right  from the question itself for various reasons.  I still consider it is a great learning experience.   Thank you for your comments.
    create table #p(cal date, ac# int, bal int)
    insert into #p values ( GETDATE(), 1, -1),
    ( GETDATE(), 2, 1),
    ( GETDATE(), 3, 1),
    ( GETDATE(), 4, -2),
    ( GETDATE(), 5, -6),
    ( GETDATE()-1, 1, -1),
    ( GETDATE()-1, 2, 1),
    ( GETDATE()-1, 3, 1),
    ( GETDATE()-1, 4, 2),
    ( GETDATE()-1, 5, -7),
    ( GETDATE()-2, 1, -2),
    ( GETDATE()-2, 2, -1),
    ( GETDATE()-2, 3, -1),
    ( GETDATE()-2, 4, 2),
    ( GETDATE()-2, 5, -6),
    ( GETDATE()-3, 1, -2),
    ( GETDATE()-3, 2, -1),
    ( GETDATE()-3, 3, -1),
    ( GETDATE()-3, 4, 2),
    ( GETDATE()-3, 5, -2),
    ( GETDATE()-4, 1, -4),
    ( GETDATE()-4, 2, 1),
    ( GETDATE()-4, 3, 1),
    ( GETDATE()-4, 4, -2),
    ( GETDATE()-4, 5, -2),
    ( GETDATE()-5, 1, -4),
    ( GETDATE()-5, 2, 1),
    ( GETDATE()-5, 3, 1),
    ( GETDATE()-5, 4, 2),
    ( GETDATE()-5, 5, -1),
    ( GETDATE()-6, 5, -1)
    --update #p
    -- set bal=-1*bal
    -- where cal='2014-09-22' and [ac#]=5
    ;with mycte as ( Select *
    ,row_number() Over(Order by [ac#], cal) - row_number() Over(Partition by [ac#], sign(bal) Order by [ac#], cal) rnDelta
    from #p)
    ,mycte1 as (
    select * ,
    sum(Case when bal< 0 Then 1 Else 0 End) Over(Partition by [ac#], rnDelta Order by [ac#],cal ) cnt
    from mycte
    SELECT distinct [ac#] from mycte1
    Where cnt>=5
    drop table #p

  • Error running AP Trial Balance

    This is the error log I get when running the AP Trial Balance.
    +---------------------------------------------------------------------------+
    Payables: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    APXTRBAL module: Accounts Payable Trial Balance
    +---------------------------------------------------------------------------+
    Current system time is 31-JUL-2013 14:47:21
    +---------------------------------------------------------------------------+
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    p_accounting_date='2013/07/31 00:00:00'
    p_chart_of_accounts_id='50268'
    p_summarize='N'
    P_NEG_BAL_ONLY='N'
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.US7ASCII
    Enter Password:
    REP-1401: 'afterpform': Fatal PL/SQL error occurred.
    Report Builder: Release 10.1.2.3.0 - Production on Wed Jul 31 14:47:22 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    +---------------------------------------------------------------------------+
    Start of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    +---------------------------------------------------------------------------+
    End of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 6884360.
    Review your concurrent request log and/or report output file for more detailed information.
    +---------------------------------------------------------------------------+
    Executing request completion options...
    Output file size:
    0
    Finished executing request completion options.
    +---------------------------------------------------------------------------+
    Concurrent request completed
    Current system time is 31-JUL-2013 14:47:23
    +---------------------------------------------------------------------------+

    Please don't post duplicates -- https://forums.oracle.com/thread/2566272

  • Trial Balance Tables

    Hi All
    Actually my requirement is, When I run accounts receivale report profit center wise then system is showing some balances in null/dummy profit center. Now I update profit center of these documents from null to some other in table FAGLFLEXA and report is showing correct, no balances in null profit center. But effect of this is not showing in TB(Trial Balance), TB report is showing same balances. Kindly guide which other tables I have to update in order to get the effect in TB.
    Regards,
    Rajesh Vasudeva

    Hi,
    refer tables
    GLT0
    GLT1
    Also check the link:
    http://help.sap.com/saphelp_sbo2005asp1/helpdata/en/41/82a84f64254b41a05d813cdde39f82/content.htm
    to get more idea.
    Edited by: AD on Dec 2, 2008 5:28 AM

Maybe you are looking for

  • I tried to make my image larger by typing ctrl + a fatal error was created in typer shark on yahoo games

    When I tried to make the game larger I pressed control plus. The image became different and all of the parts did not fit together like it was designed. I tried to make it like it was by pressing control minus (ctrl - ) nothing happened. When I start

  • Getting BEA-170011 error in soa, osb, bam servers

    Dear Friends, i am getting below error in the soa, osb and bam servers, <BEA-170011> <The LogBroadcaster on this server failed to broadcast log messages to the admin server. The Admin server may not be running. Message broadcasts to the admin server

  • Aut Redirect not working

    Hi, I am trying to create an auto direct to another page within my WIX website after a customer makes a purchase. But every time I test this it returns back to the page which they purchased on. I have turned AUTO RETURN ON, entered the website as doc

  • ITSDefault parameters on integrated ITS

    Dear Sirs, we have set some parameters in our standalone ITS (ItsDefault.xml file) as described in  <a href="http://help.sap.com/saphelp_me21sp2/helpdata/en/32/116700f97811d1801d00c04fadbf76/content.htm">Setting Program Parameters</a>. I am however u

  • Viber sound not coming out through ear part of iphone 4?

    I have been using viber for 2 plus months and it has been working perfect. Since last night I can't hear any volume through the ear piece.....only speaker and through the head set. I have uninstalled and reinstalled too. Please help??????? I have and