Project Balance Report - Lifetime To Date - SQL ?

Hi. I'm trying to help with extracts from 11.5.10.2 for data conversion to R12. Any idea what a SQL statement would look like to match the "Lifetime to Date" column of the Project Balance Report? I'm able to match Annual Budget but having a heck of a time matching LTD figures. In the end I'll be doing this on a different GL code combo but if I can match on Project Number it should get me headed in the right direction.
Thank you.

Oops, that was an internal custom report, sorry about that.

Similar Messages

  • GL Trial Balance Report Query with date Effectivity

    We have a requirement to show the GL Trial Balance report with Effective dates as Parameters.
    Current Analysis:
    The Journals get updated with corresponding CCID in GL_BALANCES table when the Journal is posted. GL_BALANCE is SOB specific, if the SOB has month as period then the balances in GL_BALANCES would get updated against the month(period).
    To overcome the period problem, we explored the option of using a View based on GL_JE_HEADERS and GL_JE_LINES for 'Posted' Journal Batches of a SOB. We are checking whether the GL_JE_HEADERS.default_effective_date lies between the :p_from_date and :p_to_date which is sent to the Report as a parameter. The above idea does not return expected data when the custom Trial Balance Report is run.
    Following is the Query we have written for it:
    SELECT cc.segment4 ACCOUNT, bal.code_combination_id,
    bal.begin_balance_dr
    + SUM (NVL (gljel.accounted_dr, 0)) opening_bal_dr,
    bal.begin_balance_cr
    + SUM (NVL (gljel.accounted_cr, 0)) opening_bal_cr,
    ffv.description,
    (SELECT SUM (NVL (gljel.accounted_dr, 0))
    FROM gl_je_headers gljeh,
    gl_je_lines gljel,
    gl_code_combinations gcc
    WHERE gljeh.default_effective_date BETWEEN :p_from_date
    AND :p_to_date
    AND gljeh.je_header_id = gljel.je_header_id
    AND gljel.code_combination_id = gcc.code_combination_id
    AND gljel.period_name = gljeh.period_name
    AND gljel.set_of_books_id = :p_set_of_books_id
    AND gljeh.status = 'P'
    AND gljel.status = 'P'
    AND gljeh.actual_flag = 'A'
    --AND gljel.code_combination_id =
    -- bal.code_combination_id
    AND gcc.segment4 = cc.segment4
    GROUP BY gcc.segment4) c_dr,
    (SELECT SUM (NVL (gljel.accounted_cr, 0))
    FROM gl_je_headers gljeh,
    gl_je_lines gljel,
    gl_code_combinations gcc
    WHERE gljeh.default_effective_date BETWEEN :p_from_date
    AND :p_to_date
    AND gljeh.je_header_id = gljel.je_header_id
    AND gljel.period_name = gljeh.period_name
    AND gljel.code_combination_id = gcc.code_combination_id
    AND gljel.set_of_books_id = :p_set_of_books_id
    AND gljeh.status = 'P'
    AND gljel.status = 'P'
    AND gljeh.actual_flag = 'A'
    AND gcc.segment4 = cc.segment4
    GROUP BY gcc.segment4) c_cr
    FROM gl_period_statuses per,
    gl_code_combinations cc,
    gl_balances bal,
    gl_je_headers gljeh,
    gl_je_lines gljel,
    fnd_flex_values_vl ffv,
    fnd_flex_value_sets ffvs
    WHERE cc.chart_of_accounts_id = :p_chart_of_accts_id
    AND bal.currency_code = :p_currency
    AND bal.actual_flag = 'A'
    AND bal.period_name = per.period_name
    AND cc.template_id IS NULL
    AND cc.code_combination_id = bal.code_combination_id
    AND per.set_of_books_id = :p_set_of_books_id
    AND per.application_id = 101
    AND :p_from_date BETWEEN per.start_date AND per.end_date
    AND gljeh.period_name = per.period_name
    AND gljeh.default_effective_date <= :p_from_date
    AND gljeh.je_header_id = gljel.je_header_id
    AND gljel.period_name = gljeh.period_name
    AND gljel.set_of_books_id = :p_set_of_books_id
    AND ffv.flex_value_set_id = ffvs.flex_value_set_id
    AND ffvs.flex_value_set_name = 'JSWEL_ACCOUNT'
    AND gljeh.status = 'P'
    AND gljel.status = 'P'
    AND cc.summary_flag = ffv.summary_flag
    AND cc.segment4 = ffv.flex_value
    AND gljeh.actual_flag = 'A'
    AND gljel.code_combination_id = bal.code_combination_id
    GROUP BY bal.begin_balance_dr,
    bal.begin_balance_cr,
    cc.segment4,
    ffv.description,
    bal.code_combination_id
    The problem is that not all expected columns are being queried. Kindly advise as appropriate.
    Note: I have also posted this thread on the Financials forum. Posting here to present the query to a larger audience with the expectation that my query would be answered.
    Thanks & Regards
    Sumit

    suggest to create customize TB report.

  • GL Trial Balance Report with Effective Dates as Parameters

    We have a requirement to show the GL Trial Balance report with Effective dates as Parameters.
    Current Analysis:
    The Journals get updated with corresponding CCID in GL_BALANCES table when the Journal is posted. GL_BALANCE is SOB specific, if the SOB has month as period then the balances in GL_BALANCES would get updated against the month(period).
    To overcome the period problem, we explored the option of using a View based on GL_JE_HEADERS and GL_JE_LINES for 'Posted' Journal Batches of a SOB. We are checking whether the GL_JE_HEADERS.default_effective_date lies between the :p_from_date and :p_to_date which is sent to the Report as a parameter. The above idea does not return expected data when the custom Trial Balance Report is run.
    Following is the Query being used:
    SELECT cc.segment4 ACCOUNT, bal.code_combination_id,
    bal.begin_balance_dr
    + SUM (NVL (gljel.accounted_dr, 0)) opening_bal_dr,
    bal.begin_balance_cr
    + SUM (NVL (gljel.accounted_cr, 0)) opening_bal_cr,
    ffv.description,
    (SELECT SUM (NVL (gljel.accounted_dr, 0))
    FROM gl_je_headers gljeh,
    gl_je_lines gljel,
    gl_code_combinations gcc
    WHERE gljeh.default_effective_date BETWEEN :p_from_date
    AND :p_to_date
    AND gljeh.je_header_id = gljel.je_header_id
    AND gljel.code_combination_id = gcc.code_combination_id
    AND gljel.period_name = gljeh.period_name
    AND gljel.set_of_books_id = :p_set_of_books_id
    AND gljeh.status = 'P'
    AND gljel.status = 'P'
    AND gljeh.actual_flag = 'A'
    --AND gljel.code_combination_id =
    -- bal.code_combination_id
    AND gcc.segment4 = cc.segment4
    GROUP BY gcc.segment4) c_dr,
    (SELECT SUM (NVL (gljel.accounted_cr, 0))
    FROM gl_je_headers gljeh,
    gl_je_lines gljel,
    gl_code_combinations gcc
    WHERE gljeh.default_effective_date BETWEEN :p_from_date
    AND :p_to_date
    AND gljeh.je_header_id = gljel.je_header_id
    AND gljel.period_name = gljeh.period_name
    AND gljel.code_combination_id = gcc.code_combination_id
    AND gljel.set_of_books_id = :p_set_of_books_id
    AND gljeh.status = 'P'
    AND gljel.status = 'P'
    AND gljeh.actual_flag = 'A'
    AND gcc.segment4 = cc.segment4
    GROUP BY gcc.segment4) c_cr
    FROM gl_period_statuses per,
    gl_code_combinations cc,
    gl_balances bal,
    gl_je_headers gljeh,
    gl_je_lines gljel,
    fnd_flex_values_vl ffv,
    fnd_flex_value_sets ffvs
    WHERE cc.chart_of_accounts_id = :p_chart_of_accts_id
    AND bal.currency_code = :p_currency
    AND bal.actual_flag = 'A'
    AND bal.period_name = per.period_name
    AND cc.template_id IS NULL
    AND cc.code_combination_id = bal.code_combination_id
    AND per.set_of_books_id = :p_set_of_books_id
    AND per.application_id = 101
    AND :p_from_date BETWEEN per.start_date AND per.end_date
    AND gljeh.period_name = per.period_name
    AND gljeh.default_effective_date <= :p_from_date
    AND gljeh.je_header_id = gljel.je_header_id
    AND gljel.period_name = gljeh.period_name
    AND gljel.set_of_books_id = :p_set_of_books_id
    AND ffv.flex_value_set_id = ffvs.flex_value_set_id
    AND ffvs.flex_value_set_name = 'JSWEL_ACCOUNT'
    AND gljeh.status = 'P'
    AND gljel.status = 'P'
    AND cc.summary_flag = ffv.summary_flag
    AND cc.segment4 = ffv.flex_value
    AND gljeh.actual_flag = 'A'
    AND gljel.code_combination_id = bal.code_combination_id
    GROUP BY bal.begin_balance_dr,
    bal.begin_balance_cr,
    cc.segment4,
    ffv.description,
    bal.code_combination_id
    Kindly suggest if I am missing anything. I am sure that the great guns here can help me out.
    Thanks
    Sumit

    suggest to create customize TB report.

  • GL Account balance report - Date wise report reqd(Eg: 05.03.08 to 20.03.08)

    Dear Friends,
    This is with regard to GL account wise balance/trial balance report based on dates (From...To format).
    We have tried all standard GL reports especially account balances and trial balance reports and all reports are showing period wise reports eventhough we put posting dates in the dynamic selection screen.
    We also checked in SAP Notes and Expert Forum and none of the details are matching with our requirement.
    As we are in production client (in ECC 6.0 version) and doing year end procedure, it would be helpful if you could let me know whether there is any transaction code/report/program available in SAP to meet the
    above requirement.
    Regards,
    Dwarak.

    Hi Dwarak,
    All reports balance report are based on posting period. This information is stored in a total table by posting period. These reports are not looking to the posting documents.
    When you have BW or special ledger you can create a table with day totals
    Paul

  • Profit & Loss / Balance Sheet and Project performance Report

    Hello,
    I am in mining service industry and looking for two basic reports as under, can you please guide me through and provide transactions.
    1)Profit & Loss/ Balance Sheet
    2)Project Performance report
    Your prompt response will be much more appreciated.
    Thanks,
    San

    Hi,
    use this as shown below
    menu path-
    Accounting ® Financial Accounting ® Special Purpose Ledger ® Tools ® Report Painter ® Report Writer ® Report Group ® Display
    tcode- GR53, GR55
    Enter report group SL01.
    Choose  Execute.
    Enter report group SL01 again, and then choose .
    Enter the following data: current year, period 01-12, company code,ledger and plan version
    kind regards
    Arman
    SAP FICO

  • AP Invoice Aging Report by GL Date (using: Accounts Payable Trial Balance)

    Hi
    Need some suggestions:
    I need to develop a custom report in (R12).
    Account Payable Trial Balance Report, does have the capability to run as of a particular date but it does not show aging buckets. This custom report is to be developed to meet the requirements from a Payables detail perspective as well as to reconcile.
    The report should show the balance due as of the report date selected. If As of Date = 5/31/11, then when the report is run on 6/15/11, it gives the results as it existed on 5/31/11. If we run it again on 8/31/11 for As of Date = 5/31/11, and again on 1/13/12, we get the EXACT SAME results each and every time except for the following fields: Current Status, Date Paid and Payment Reference Number.
    The end result should be this report ties to the penny to Oracle GL as of the date selected EXCEPT for any JEs posted to the account.
    Thanks
    Pravin

    Hi Pravin,
    For all transactions in Oracle, you will have GL dates (Accounting Dates) associated to it. If you use this date in your query to filter data, then you will get correct aging data as on a given date.
    To tally with GL, you also must check if the selected transaction has been accounted?
    Raajkumar G

  • Start Date for AP trial balance report

    Hello
    Am working on generating the Trial balance report in the Payables. I am running the "Accounts Payables Trial Balance report. For this report, in the parameters, there is "As of Date" parameter, but I do not have the "Start Date" parameter. I wanted to get a trial balance report for a given analysis period, like between Jan 03 and Dec 03.
    Can any one please let me know about this.
    Thank you
    Bob

    Hi Bob.
    I'm affraid such report is not available.
    You may get something similar by running the RX-only: Payables Invoice Register by Detail. You also have the option to change the way data appears on the report on it is an RX report.
    Octavio

  • We couldn't refresh the connection 'OData Assignements Data' Error : While access the project overveiw report in brower and in Excel 2013.

    Hello All,
    Facing this issue while opening the ProjectOverview report in Browers or in Excel 2013.
    Snapshot is attached for furthur reference.
    Error in Excel when clicking on Refresh All, it shows the information to retieving the data but after few moments it prompt this error.
    Second snapshot occurs while opening the report in browser.
    Kindly help.
    REGARDS DANISH DANIE

    Dear Paul,
    1st Query,
    Ans: As I'm using Project Server Permission mode and im logged with the user who is the member of admin group and in administrator group 'Access
    Project Server Reporting Service' is ticked on. So, the concern regarding permission is resolved.
    2nd Query,
    Ans: Im unable to find Project Web App Permission for Excel Web App Refresh' feature in site setting
    of PWA. 
    Snapshot is attached when trying to open report in browser.
    to resolve this followed below mentioned URL but unsuccessfull result
    http://support.microsoft.com/kb/2769345/en-us
    Still facing same issue, issue is not resolved kindly help/suggest.
    Note: Im using Project Server 2013 not Project Online 2013. 

  • Project wise Trial Balance Report

    Dear All
    Could u plz help me in this regard
    How to select "Project" in Trail Balance Report?
    I want to generate Project wise Trail Balance Report.
    Thanks & Regards
    KISHAN

    Hi,
    Goto the Financials Module > Financial Reports > Financial > Trial Balance - Selection Creteria.
    You will see a button Expanded. Click on it and in the window opened, enter the project code in the Project field appearing and run the report to get the desired result.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Which tables to use for Project Status Report in CR2008 accessing R/3 data?

    I am working on a Project Status Report on a WBS in Crystal Report 2008 that is accessing data from a R/3 system level that will provide me the following fields:
    1) Purchased Hours
    2) Billed Hours
    3) Non-Billed Hours
    4) Credit Memo
    5) Remaining Hours
    The report will be displayed at the WBS level (grouped at WBS level) but will also list the different activities under each WBS.
    Can anyone help me identify which tables and fields I need to be working with? This is how the report will look like:
    CustID     ProjectID     PlantID      WBS#     Activity#      PurchasedHours     BilledHours    Non-BilledHours     CreditMemos    RemainingHours
    Please help.
    Regards.
    -Rohit
    Edited by: RohitBora on Feb 2, 2012 5:59 AM

    If you are using Business One then please post to that forum. CR 2008 is an OEM build for B1 so they support it in that forum.
    Don

  • Report Painter YTD data for Balance Sheets accounts

    Dear Gurus,
    I am working on GLPCT report painter table and I would like to setup a report for inventory accounts with YTD data and not only movement on the current year.
    Which parameters (for basic key figures and Characteristics) should I use in order to have the report with 2011YTD data (2011YTD = closing balance 2010 + movements 2011).
    Thanks
    Kind regards,
    Dom

    Hi
    The As on Date balance cant be cumulated...
    Eg; you bought inventory worth 10 million in Current year and as of now you have 4 million worth of inventory in stock
    Cumulated bal in this case is 10 mil and As on Date balance is 4 million... 4 million is what you will get in SAP reports
    The same Key figure which shows values in comp code currency can be used
    br, Ajay M

  • BI Projects Report Not showing data

    Hi
    I am a new to BI.I am trying to configure BI for Oracle Projects.So the problem here is couple of reports are not loading data on dashboard.
    The issue is with Most of report that use data from Organization table
    1.My BI is integrated with EBS.(I am wondering id HR security has anything to do with same)
    2.Is there any step that should taken care while configuration?
    3.Currently my log level is 3,But I am not able to see the query in Manage session.Show that I can get more information on specific table which is causing the query to return no data
    Thanks in advance.

    Hi,
    The query is having some restrictions in the filter area. And also there are 2 conditions in the query.
    I am checking the Multiprovider data with the tcode LISTCUBE. I am giving all the selections and the restrictions in the Multiprovider , some data is there in the multiprovider.
    But in report its not showing any data.
    Where shall I check, whetehr I need to check the MultiProvider assignment characterstics?

  • One report to pull data from SQL or DB2

    Hi Guys,
    First post here.  I have scoured the internet using our good friend google for answers and have come up empty.  I hope someone can help me here!
    Some Info: Crystal XI R2, Visual Studio 2005, Ms SQL Server 2005, DB2, VB.NET
    What I am trying to accomplish is using one report to pull data from either SQL 2005 or DB2.
    The problem I get is if the report is configured to pull data from SQL 2005, I cannot change it using the code below to pull data from DB2.  The SQL Report uses the Microsoft OLEDB Provider.  The DB2 report uses the IBM DB2 UDB for iSeries IBMDA400 OLEDB provider.  When I quickwatch the oCRTable logon information, it seems to retain the other database's info.
    Any ideas?
    My code:
        Private Sub LoadRpt(ByVal rpt As String)
            Try
                Dim strReport As String
                Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument
                Dim rpt As CrystalDecisions.CrystalReports.Engine.ReportDocument
                Dim oCRTable As CrystalDecisions.CrystalReports.Engine.Table
                Dim oCRConnectionInfo As New CrystalDecisions.Shared.ConnectionInfo()
                strRptNm = String.Format(".rpt", rpt )
                strReport = String.Format("\{1}", Server.MapPath("Reports"), rpt )
                crReportDocument.Load(rpr)
                '   check to make sure report is loaded; if not, then do nothing
                If crReportDocument.IsLoaded Then
                    oCRConnectionInfo.DatabaseName = ConfigurationManager.AppSettings.Item("DataBase")
                    oCRConnectionInfo.ServerName = ConfigurationManager.AppSettings.Item("Server")
                    oCRConnectionInfo.UserID = ConfigurationManager.AppSettings.Item("Profile")
                    oCRConnectionInfo.Password = ConfigurationManager.AppSettings.Item("Password")
                    For Each oCRTable In crReportDocument.Database.Tables
                        oCRTable.LogOnInfo.ConnectionInfo = oCRConnectionInfo
                        oCRTable.ApplyLogOnInfo(oCRTable.LogOnInfo)
                        oCRTable.Location = oCRTable.Location
                    Next
                    For Each rpt In crReportDocument.Subreports()
                        For Each oCRTable In rpt.Database.Tables
                            oCRTable.LogOnInfo.ConnectionInfo = oCRConnectionInfo
                            oCRTable.ApplyLogOnInfo(oCRTable.LogOnInfo)
                            oCRTable.Location = oCRTable.Location
                        Next
                    Next
                ... other code ...
                End If
            Catch ex As Exception
                ... other code ...
            End Try
        End Sub
    Edited by: Mace Windu on Feb 7, 2009 7:55 AM
    Edited by: Mace Windu on Feb 7, 2009 7:56 AM

    David,
    Your suggestion worked to near perfection.  The only problem was that if I configured the datasource locations of the report and sub reports in CR to use the SQL ODBC, the .net program would successfully log in using the DB2 info but had a problem reading the data.  If I configured the datasource locations of the report and subreports in CR to use the DB2 ODBC, everything worked!  Thanks for the advice. 
    The force is strong with you.
    Mace

  • Related Data Source for Customer Trial Balance Report

    Hi Guys,
    Can any one please let me know the related Datasource, DSO and Cube available to develop Customer Trial Balance report on BEx.
    <b>My required Row/Colum objects are</b>
    <b>KPIs    Calculated/restricted     Formula/Logic     Unit     Authorisation</b>
    Total                Calculated     Sum of all the          Quantity
    invoiced                                     invoices for a
    Quantity                          FME
    Proposed
    Base Price        Calculated     Average price            Amount
                                                    for all invoices
                                                    per FME     
    Average Eqv.
    Base Price        Calculated     Average price            Amount
                                                    for all invoices
                                                    per FME     
    Price
    Difference             Calculated     Proposed Base         Amount
                                                    Price -  Average
                                                     Eqv. Base Price          
    <b>The aggregation behavior of the individual KPI</b>
    Key Figure                                  Aggregation            Characteristic             Time
                                              (Sum, Max, Last)          
    Net Debit Amount                         Sum                           All                  All
    Net Credit Amount                         Sum                           All                  All
    Total Debit Amount                         Sum                           All                   All
    Total Credit Amount                          Sum                          All                   All
    <b>Characteristics</b>
                         Hierarchy     Display Authorisation     Selection     Status/Mapping
    Customer Number                                 Yes     KNA1-KUNNR
    Customer Name                    
    Business Area                                  Yes        PRCTR
    Special GL Indicator                                  Yes                        Company Code                                   Yes      BKPF-BUKRS
    Industry Code                                     KNA1-BRAN1
    This is how my Functional Spec is..
    Please let me know ASAP.
    Thanks
    Murali

    hi,
    You can use this report.
    RFSLD00 Trial balance
    For Further Reference use the link.
    http://www.abapcode.info/2007/06/standard-sap-reports.html
    Regards
    Sumit AGarwal

  • AP Trial Balance Report Issue

    Hi gurus- I run the AP Trial Balance report and have an issue that I cannot reconcile with my raw data because when I export into excel, the invoice number is cut off after 20 characters.  This client has long invoice numbers.  Is there any way to get the SQL for this report and run it separately so I may see the invoice numbers and reconcile?  Thanks a lot.

    Hi,
    Please check note:553484.1, there are some queries provided to check the TB data like queries to compare XLA and GL data.
    Hope it helps

Maybe you are looking for