Profit and Loss Statement Query

Hello Experts,
                                    I want to make customize profit and Loss Report using User Defined form with Grid view or Crystal Report. I need SQL Query , what tables will give P & L Statement Report(yearly/ monthy / quarterly).
Already available Query will be very helpful
Please Suggest
Quick Reply will be very helful

Hi,
Try this to start:
SELECT T0.[FormatCode], T0.[AcctName], SUM(T1.[Credit]-T1.[Debit]) Balance
FROM OACT T0
INNER JOIN JDT1 T1 ON T0.AcctCode = T1.Account
INNER JOIN OJDT T2 ON T1.TransId = T2.TransId
WHERE T0.[ActType] in ('I','E') and DateDiff(YY,T2.[RefDate],GetDate()) = 0 AND T1.[Debit] != T1.[Credit]
GROUP BY T0.[FormatCode], T0.[AcctName]
Having SUM(T1.[Debit]-T1.[Credit]) != 0
ORDER BY T0.[FormatCode]
If you are using natural account, replace FormatCode with AcctCode.
Thanks,
Gordon

Similar Messages

  • Query result different with profit and loss statement

    Hi all,
    I run query Sum(JDT1.Debit - JDT1.Credit), and then compare the query result with the profit and loss statement, and there is different.
    The difference is about 0.01.
    At SAP, the Decimal places is set to 2.
    I already checked the data, and their amount in 2 decimal.
    Do anyone know such problem and what kind of query must I use so the result can be compared with the profit and loss statement ?
    Thx.

    Riny, 
    I am glad you found the issue
    Suda

  • Quantity in Balance Sheet/Profit and Loss statement

    Hello guys,
    in the output of the balance Sheet/Profit and Loss statement, we have total amount of the reconciliation accounts in a period
    Is there any statement which can tell us also how many movements (lines) were in each reconciliation accounts? Like hoe many movements composed the total amount?
    this would be needed for reporting period and also for comparison period
    thanks in advance for letting me know
    hana

    Dear:
                 To check recon a/c movement for vendors and customers please use FBL5N & FBL1N.
                  Regards

  • Profit and Loss statement Business Area Wise

    Dear Friends,
    i am trying to create Financial Statement ( Profit and loss statement) using )FIGL_V11 Virtual cube.
    its working fine  and no problem.
    We have 8 Business Areas. and i would like to create Profit and Loss statement Business Area wise.
    How can i achive this requirement.
    Any help will be higly Appricated.
    Regards.
    Malik

    Dear i check Profit Center Info Object but there are only these attributes.
    Source System
    Object Currency for CO Object
    Person Responsible
    Source system ID
    Person Responsible
    Department (Profit Center)
    Hierarchy Area (Profit Center)
    Segment for Segmental Reporting
    I am unable to fine Bussiness Area in the attribut of  info Object 0PROFIT_CTR .
    Regards
    Malik

  • Profit and Loss Statement Budget Report

    Hi to everyone,
    When running the Profit and Loss Statement Budget Report, you have figures that are displayed in purple. Can anyone explain from where B1 is getting those figures
    Thanks
    Kentish

    hi.
    purple - Budgeted total, meaning the total that was define in budget module
    Blue - The actual total reflected against the budget.
    hope this may help you understand.
    Regards,
    Fidel

  • Segment Name on my Profit and Loss Statement PLD

    Dear expert,
    I am producing a P&L statement by segment, but on my print layout i am not able to see the segment name. How do i get the segment name on my Profit and Loss Statement PLD.
    Regards

    Hi Antony
    Can you be more specific? Do you want the name of the selected segment on the header region?
    Kind regards
    Peter Juby

  • Profit and Loss Statement - Day-to-day reporting

    Hi Experts,
    I have a requirement to generate profit and loss details (Tcode : F.01) on DAILY or FOR A GIVEN RANGE basis, which SAP standard does not support (generates only monthly or yearly). Kindly suggest for possible ways.
    Thanks and Regards,
    Karthik

    Check T86* tables in SE11.

  • Business One Profit and Loss Statement Budget Report Subtotals not Working

    We are running Business One 9.0
    The Budget profit and loss report appears to be badly written. Rather than having the budget data in the same line as the actual, the report creates extra lines for the budgets AND adds more data to the actuals column. Very confusing. Why not just have the budget and actual in the same row?
    Also when you click on the block for subtotals, the subtotals only appear for the actual column, not the budget column. Why is that? Is there as problem with out setup perhaps?

    Hi Gordon
    Below is an example of the duplication of lines. The line for 6015100 is firstly in blue without a budget and then repeated in pink with a budget. Why is there not only only with both actual and budget?
    The next example shows what happens if you tick the Display Subtotals box. The subtotal for 6015100 Marketing appears in the Actual column but not in the Budget column.
    This is obviously just and example, it works the same for all other accounts
    Regards
    John

  • Profit and Loss Statement - Profit Center Filter it doesnu00B4t work

    Hi!
    I have the following problem.
    a) I created 3 Profit Center (OPRC)
    b) Automatically this has generated 3 Distributions Rules (OOCR/OCR1)
    c) The users have uploaded in all its documents for the purchase and sale, the Profit Center.
    Purchase => PCH1.OCRCODE
    Sales => INV1.OCRCODE
    The report of Profit and Loss Accounts is not correct, when i use the filter by Profit Center.
    After several inspections of the records, I find that in the Distributions Rules field of journal entries (OJDT/JDT1), JDT1.PROFITCODE, these documents have not charged anything, and only those who have something there, are shown in the above-mentioned report .
    How do i do for choosing a Profit Center (in the purchase / sale) and this will copy or reflect in the accounting records generated?
    I missing any extra configuration?
    Thanks for your help

    Hi Jesper / Peter
    These documents i created by the program A / R Invoice and A / P Invoice, do not use DTW or DI.
    I use the Form Settings on the Marketing Documents and enable the display of the profit center column and enter the distribution rule per row.
    But in the Journal Entry is not recorded, mainly in the accounts of operational costs.
    Thanks
    Mariana
    SAP B1 version => 2007A PL38

  • Profit and Loss Statement vs Budget Profit and Loss Statement

    I run the P&L and the P&L Budget report for April 2010.
    On the P&L Report :
      Total Sales = R2 043 208.70
    on the P&L Budget Report :
      Total Sales = R2 043 208.70
       Budget Total Sales = R 2042 123.70
    Why will there be a difference in the Budget report for Total Sales vs Budget Total sales?
    All the accounts are marked as relevant to budget.
    Please help
    Thank you in advance
    Janice

    Hi Janice,
    Total Sales = R2 043 208.70 => your actual sales
    Budget Total Sales = R 2042 123.70 => budgeted sales
    This means that your sales  (R2 043 208.70) actually meet minimum budgeted sales (R 2042 123.70)
    Cheers

  • Profit and Loss Statement not reporting the correct values

    I am running the annual P&L report with posting dates dates of 01-01-09 - 09-30-09 and using Year-to-Date in the second column.  When I run this report one of the accounts should as of 09-30-09 reflect a balance of $145,831.52 but the report is showing $1,086,801.39.  The actual amount in that G\L account as of today is $162,849.90.
    Why is it reporting such a large amount when I run the report?
    Thanks, Jeff

    Version 2007, PL 42. 
    We are running the report with using Posting Date, dates are 01-01-09 to 09-30-09, Chart of Accounts Template, nothing checked in Display in Report, Display in First Column is Local Currency, Annual Report, Display in Second Column is Balance for Comparison>Year-to-Date and we have chosen none of the options on the right side of the criteria box.
    Thanks, Jeff

  • Consolidated Profit and Loss , Balance Sheet

    Our client has been requesting for Balance Sheet and Profit and Loss, which consolidates accounts across multiple SAP companies.
    If I understand correctly, the only way to pull the data is through journal entries, OJDT and JDT1. 
    This seems to be very cumbersome especially just imagine as time passes, the database is growing.  It will be good if SAP could have a table that actually summaries the balance (balance sheet) and net movement (Profit and Loss) of each accounts by year by period.
    Eg:
    Year    Month   Accounts        Formatted Acc   Parent Acc    Type     Balance
    2007    Jan       _SYS000012   1100-00             1100             Asset    1000
    2007    Feb      _SYS000012    1100-00             1100            Asset     200
    2007    Jan      _SYS000011     8888-00             8800           Expense  20 
    What is the chances of this improvement?

    Hello,
    thank you for your input.
    We are planning enhancements for Financial Statements including new user templates and new print layouts. The idea of consolidating Profit and Loss Statement and Balance Sheet will be investigated as well.
    Summarizing balances per year and net forward of each G/L Account year by year should be a part of complete Data Archiving solution planned for one of the next releases. Please check threads on this very important topic.
    Peter Dominik
    SAP
    B1 Product Definition

  • How to Write Profit and Loss Query in SQL

    Hello,
            i want to write sql query for profit and loss account, how i ll manage the tree in query.
    i.e
    *Assets
    ************current assets
    ************ Trade debtors
    ************ ************ Trade debtors domestic
    ************non- current assets   
    ************ Tangible Operating Fixed Assets
    ************ ************ Owned Fixed Assets
    can anyone guid me to write the query
    Thanks
    Edited by: Rahil Hassan on Jun 13, 2009 10:03 AM

    Hi,
    Could you please re-phrase your question? As the report painter is a reporting tool I assume you want to report on P&L accounts and not u201Ccreateu201D them. A few more details on what you intend to report would be useful.
    Regards
    Karl

  • Profit and Loss Percentage Challenge

    We control our Gross Margins and Costs by expressing every Profit and Loss item as a percentage of the Total Sales. So our Total Sales is 100%. So everything is divided by the 100% to calculate a Percentage. So for example a Gross margin is 45% (Of the 100%). Advertising Cost is 15% of Total Sales. Net Profit may be 4% etc. My question is if anybody knows if such report exisits in SAP b1. as a Standard or how can I achieve this?
    EG
    SALES                          $10,000    100%
    COST OF GOODS          $  5,500     55%
    Gross Profit                    $  4,500     45%
    Advertising Cost                $  1500     15%
    Telephone                         $    200       2%
    Admin                               $  1600     16%
    Overheads                         $    800       8%
    Net Profit                           $     400        4%  
    Thanks
    Robert

    Hi Robert,
    I had the exact same question as you did in regards to adding a percentage to the P&L Statement.  I found using the XL Reporter to be fairly simple and straight-forward.  Below is a link to the SAP documentation on how to create a P&L using the XL Reporter.  From there I just modified it a bit to add a column with the corresponding percentages.
    https://websmp110.sap-ag.de/~sapidb/011000358700001160462006E.pdf
    Hopefully, this helps anybody else that's looking to add percentages to the P&L.
    Thanks,
    Amanda

  • Profit and loss of the sales of my top 100 customers

    Hi,
    I would like to have a query in SAP BW which delivers me the following information:
    the profit and loss of the sales of my top 100 customers (customers with the highest sales per month). So basically I would like to compare the sales from these customers of the current month to the previous month.
    Thank you for any help!

    hi,
    u can compare values by creating restricted 2 RKFs.
    RKF1  : selling price is restricted by 0CALMONTH.create a variable on 0CALMONTH(single value,mandatory,ready for input...etc).
    right click on structure--->new selection...drag and drop selling value and 0CALMONTH.
    RKF2 :selling price is restricted by 0CALMONTH.use the same variable which u created and set Offset value '-1'.
    so it will give u sales price for previous month(if u ente current month in selection screen)...
    take customer in rows and these RKFs in columns(in  structure).
    later use condition to display top 100 customers..
    hope this helps..
    pl dont foget to assign points to helpful answers....thats the way to say thanks here.
    regards

Maybe you are looking for

  • ICloud, syncing and back up to PC

    Hi I'm a bit of a technophobe and have put off backing up to iCloud for a long time now. My question is this. When I go in to settings etc and select to turn iCloud on, I get a notification telling me my phone will no longer back up to my computer au

  • Acrobat 9 Pro Text Color

    I have Adobe Acrobat 9 pro and I have a PDF document that I would like to type in this form.  Under Name, I would use Typewriter to type my name there.  However, the text color is black.  I want to change the text color to some other color so the tex

  • Posting Customer Payment Term Discount Separately

    Hello Gurus, I have configured the system for the Customer Payment Terms in SAP but I am having hard time showing that correctly in FBL5N. For Example: Invoice Value $100 Payment Term 2% Discount Customer Pays on time $98 In FBL5N main display screen

  • How do it get Firefox to work boot up faster? How do I get my bookmarks to stay alphabetized in my toolbar?

    Lately my usually reliable Firefox has been taking longer and longer to boot up, how can it be made to boot up faster? == This happened == Every time Firefox opened == A few months ago

  • While Releasing PO can vendor be selected by plant code

    HI, In our SAP implementation our SAP consultants have created Vendor Master list by company code and purchase organization's code and both the codes are same 9000. Under this purchase organization we have 2-3 plants Now while awarding the PO for any