Cash Book Report

Hi Guys,
I am Looking for a Cash Book Report from sap b1.
I have tried using the General Ledger Report  but i need it as Column wise. and i have searched for ' 'XL-CashBook.ixr' but i didnt find this file.
If i have 3 Accounts i need it to display it as in columns for those 3 accounts for the given period.
Pls anybody give me some solution  to get the report.
Regards,
Vamsi

Hi ,
try below query:
SELECT
DocNum,
STUFF((SELECT ', ' + CAST(DocEntry AS VARCHAR(MAX)) AS text()
FROM RCT2 b
WHERE a.DocNum = b.DocNum
FOR XML PATH('')), 1, 2, '') AS DocEntry
INTO #Invoices
FROM RCT2 a
GROUP BY DocNum
ORDER BY DocNum
SELECT T0.TransId, T0.Account, T0.Debit As Credit, T0.Credit As Debit, T0.ShortName, T0.ContraAct, T5.CardCode As Code, T5.CardName As Name, T0.TaxDate, T0.DueDate, 'Ch.No. ' + Cast(T4.CheckNum As VARchar) + ' Rec. No. ' + Cast(T4.RcptNum AS VARCHAR) + ' ' + IsNull('Invoice No. ' + T3.DocEntry, '') + ' ' + IsNull('Clear Date ' + Convert(VARCHAR, T2.MthDate, 103), '') + IsNull(T0.U_Narration, '') AS U_Narration,
T0.TransType, T0.BaseRef
INTO #Ledger1
FROM JDT1 T0
INNER JOIN OACT T1 ON T0.Account = T1.AcctCode
INNER JOIN JDT1 T2 ON T0.TransId = T2.TransId AND T2.Account = @CashAccount
LEFT JOIN OCHH T4 ON T0.TransId = T4.TransNum AND T0.Ref3Line = T4.CheckNum AND T0.Credit = T4.CheckSum
LEFT JOIN OCRD T5 ON T4.CardCode = T5.CardCode
LEFT JOIN #Invoices T3 ON T4.RcptNum = T3.DocNum
WHERE T0.ContraAct = @CashAccount
AND (T0.ShortName NOT LIKE 'S%' AND T0.ShortName NOT LIKE 'C%')
AND T0.TaxDate BETWEEN @Start AND @Finish
AND T0.TransType = 25
UNION ALL
SELECT T0.TransId, T0.Account, T0.Debit As Credit, T0.Credit As Debit, T0.ShortName, T0.ContraAct, T1.AcctCode As Code, T1.AcctName As Name, T0.TaxDate, T0.DueDate, T0.U_Narration, T0.TransType, T0.BaseRef
FROM JDT1 T0
INNER JOIN OACT T1 ON T0.Account = T1.AcctCode
WHERE T0.ContraAct = @CashAccount
AND (T0.ShortName NOT LIKE 'S%' AND T0.ShortName NOT LIKE 'C%')
AND T0.TaxDate BETWEEN @Start AND @Finish
AND T0.TransType 25
UNION
ALL
SELECT T0.TransId, T0.Account, T0.Debit As Credit, T0.Credit As Debit, T0.ShortName, T0.ContraAct, T1.CardCode As Code, T1.CardName As Name, T0.TaxDate, T0.DueDate, T0.U_Narration, T0.TransType, T0.BaseRef
FROM JDT1 T0
INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
WHERE T0.ContraAct = @CashAccount
AND (T0.ShortName LIKE 'S%' OR T0.ShortName LIKE 'C%')
AND T0.TaxDate BETWEEN @Start AND @Finish
SELECT T0.Account, Sum(T0.Debit) As SumDebit, Sum(T0.Credit) As SumCredit
INTO #OpeningBalances
FROM JDT1 T0
WHERE T0.TaxDate BETWEEN @YearStart AND DateAdd(dd, -1, @Start)
AND T0.Account = @CashAccount
GROUP BY T0.Account
SELECT 0 As TCode, 0 As TransId, T0.Account, T1.AcctName, T1.GroupMask, T0.SumDebit - T0.SumCredit As Debit, 0 As Credit, 'Dr.' As BalType, '' As Code, '' As Name, '' As TaxDate, '' As DueDate, '' As U_Narration, T1.AcctCode As Code1, T1.AcctName As Name1, 0 As TransType, '' As BaseRef
FROM #OpeningBalances T0
INNER JOIN OACT T1 ON T0.Account = T1.AcctCode
WHERE T1.GroupMask = 1
Or T1.GroupMask = 5
UNION
ALL
SELECT 0 As TCode, 0 As TransId, T0.Account, T1.AcctName, T1.GroupMask, 0 As Debit, T0.SumCredit - T0.SumDebit As Credit, 'Cr.' As BalType, '' As Code, '' As Name, '' As TaxDate, '' As DueDate, '' As U_Narration, T1.AcctCode As Code1, T1.AcctName As Name1, 0 As TransType, '' As BaseRef
FROM #OpeningBalances T0
INNER JOIN OACT T1 ON T0.Account = T1.AcctCode
WHERE T1.GroupMask = 2
Or T1.GroupMask = 4
UNION
ALL
SELECT 1 As TCode, T0.TransId, T0.Account, T1.AcctName, T1.GroupMask, T0.Debit, T0.Credit, '' As BalType, T0.Code, T0.Name, T0.TaxDate, T0.DueDate, T0.U_Narration, T1.AcctCode As Code1, T1.AcctName As Name1, T0.TransType, T0.BaseRef
FROM #Ledger1 T0
INNER JOIN OACT T1 ON T0.Account = T1.AcctCode
Thanks,
Neetu

Similar Messages

  • Unable to print Remarks field from InBank book & Cash Book Reports

    Hi,
    for this bankbook and cashbook reports, we are using Financial Reports-> Accounting -> General Ledger
    in this General Ledger Interface, "BP and Accounts" are two types. For both of modes, i am using same PLD Report.
    I draged the Outgoing payment Remarks  and Incoming Payment remarks  on the Report, but i am unable to see the Remarks data on the report. when i drag the "Journal Remarks" field it is displaying on the report.
    -How to bring the "Outgoing Payment and Incoming Payment Remarks " in General Ledger (Bank book & Cash Book)
    - for bank book and cash book,   General Ledger is the right Report or any other?
    plz hep me asap. urgent.
    Regards,
    Nagababu

    I don't think you would be able to add Outgoing payment Remarks and Incoming Payment Remarks to this template. They are neither available for display nor is the OVPM or ORCT tables available to be added as a table to the PLD.
    Suda

  • Gl wise Daywise Cash book and bank book report

    Hi all,
    Please tell me the tables and fields to create new reports - Gl wise daywise Cash book and bank book reports .
    or tell me any BAPI is there.
    send me any source u have.
    Thanks in advance
    regards,
    Chandu
    Edited by: GoldMoon on Aug 28, 2009 4:56 PM
    Edited by: GoldMoon on Aug 28, 2009 5:07 PM

    Hi Chandu,
    In FAGLFLEXT, every period has a field. The period is the suffix for the field.You will have field for transaction currency as well as local currency in the table period wise.
    All FI entries are posted to BKPF (header data) and BSEG (Line item data). From BSEG, dependingon the account type (KOART), the line items are copied to secondary tables like BSIS (open items) and BSAS (cleared items). you need not pass any additional data like xopvw. Entire BSIS contains open items and BSAS contains cleared items.
    What you need to do is pass the GL accounts (Bank GL accounts) to BSAS and BSIS tables along with the posting date (BUDAT) for which the report is to be run. From the input date, determine the period (use function module). To get the opening balance you will fetch value from FAGLFLEXT for the previous periods and then for the current period till the previos day from BSIS and BSAS.
    For example say the input date is 02.09.2009 and the fiscal period (monat) for this date is 6. Go to FAGLFLEXT, pass the GL account and fetch values for the period 1 to 5 and sum it up. Then go to BSAS and BSIS pass the GL account and posting date from 1st of the month to previos day (input date - 1). Add this to the value fetched from FAGLFLEXT.
    Care needs to be given  given to the debit and credit indicator in the tables for the line item.
    Hope this gives you a better idea.
    Thanks and Regards,
    Anit

  • Cash Book & Bank Book Reports in FI

    Hi FI & ABAP-FI Gurus
    I am looking for reports for Cash Book and Bank Book. Can anybody tell me any *_Standard Program_* for getting report for Cash Book and Bank Book OR can anybody send me 'Z' program to get report for Cash Book and Bank Book.
    Thanks & Regards

    Hello Anil,
    Standard reports for Cash book & Bank book
    Cash Book
    Cash Journal : T.code FBCJ
    Report - S_ALR_87012309 - Print Cashbook
    You can also try this report
    J3RFCASH15 - Cash Journal Reports
    Bank Book
    There is no standard report for Bank Book
    S_ALR_87012348 - Cashed Checks per Bank Account
    S_ALR_87012349 - Outstanding Checks Analysis per G/L Account and Vendor
    Please let me know if you need more information.
    Thanks
    Para

  • Standard report for cash book & Bank book

    Hi Guru's,
    Please tell me the transaction codes for reporting cash journal & Bank book in standard sap
    Thanks.
    Santosh Rothe

    Hi,
    For standard report for cash book & Bank book
    Cash Journal : T.code FBCJ
    Report -  S_ALR_87012309 - Print Cashbook
    You can also try this report
    J3RFCASH15 - Cash Journal Reports
    For Bank Book
    There is no standard report for Bank Book
    S_ALR_87012348 - Cashed Checks per Bank Account
    S_ALR_87012349 - Outstanding Checks Analysis per G/L Account and Vendor
    Please let me know if you need more information.
    Regards
    Sridhar M

  • India cash/bank book report is not matching with GL balance

    We have Changed one segment in cash account and cash clearing account for internal petty cash account.
    After changing the segment, Closing balance of India cash/bank book report is not matching with GL balance.
    Please help.
    Regards
    Suresh

    user702249 wrote:
    We have Changed one segment in cash account and cash clearing account for internal petty cash account.
    After changing the segment, Closing balance of India cash/bank book report is not matching with GL balance.
    Please help.
    Regards
    SureshPlease do not post duplicates -- India cash/bank book report is not matching with GL balance.

  • Reports  on ( G/L Account  ,  sub ledger,  cash book &bank book.)

    Hi,
    can any body tell me  how to write a program on reports  for  G/L Account,
    sub ledger,
    cash book and bank book,
    plzzzzzzzzzzz  soonnnnnnnn

    hi expertss,
    can any body  explain me abt these G/L Account

  • Cash Book And Bank Book Report

    Dear Experts,
    I want the  Case Book and Bank book report in Sap B1 .
    please tell me ,how i will take these report from SAP b1

    SELECT
            DocNum,
            STUFF((SELECT ', ' + CAST(DocEntry AS VARCHAR(MAX)) AS [text()]
                    FROM RCT2 b
                    WHERE a.DocNum = b.DocNum
                    FOR XML PATH('')), 1, 2, '') AS DocEntry
    INTO #Invoices
    FROM RCT2 a
    GROUP BY DocNum
    ORDER BY DocNum
    SELECT T0.TransId,  T0.Account, T0.Debit As Credit, T0.Credit As Debit, T0.ShortName, T0.ContraAct, T5.CardCode As Code, T5.CardName As Name, T0.TaxDate, T0.DueDate, 'Ch.No. ' + Cast(T4.CheckNum As VARchar) + ' Rec. No. ' + Cast(T4.RcptNum AS VARCHAR) + ' ' + IsNull('Invoice No. ' + T3.DocEntry, '') + ' ' + IsNull('Clear Date ' + Convert(VARCHAR, T2.MthDate, 103), '') + IsNull(T0.U_Narration, '') AS U_Narration,
    T0.TransType, T0.BaseRef
    INTO #Ledger1
    FROM JDT1 T0
    INNER JOIN OACT T1 ON T0.Account = T1.AcctCode
    INNER JOIN JDT1 T2 ON T0.TransId = T2.TransId AND T2.Account = @CashAccount
    LEFT JOIN OCHH T4 ON T0.TransId = T4.TransNum AND T0.Ref3Line = T4.CheckNum AND T0.Credit = T4.CheckSum
    LEFT JOIN OCRD T5 ON T4.CardCode = T5.CardCode
    LEFT JOIN #Invoices T3 ON T4.RcptNum = T3.DocNum
    WHERE T0.ContraAct = @CashAccount
    AND (T0.ShortName NOT LIKE 'S%' AND T0.ShortName NOT LIKE 'C%')
    AND T0.TaxDate BETWEEN @Start AND @Finish
    AND T0.TransType = 25
    UNION ALL
    SELECT T0.TransId, T0.Account, T0.Debit As Credit, T0.Credit As Debit, T0.ShortName, T0.ContraAct, T1.AcctCode As Code, T1.AcctName As Name, T0.TaxDate, T0.DueDate, T0.U_Narration, T0.TransType, T0.BaseRef
    FROM JDT1 T0
    INNER JOIN OACT T1 ON T0.Account = T1.AcctCode
    WHERE T0.ContraAct = @CashAccount
    AND (T0.ShortName NOT LIKE 'S%' AND T0.ShortName NOT LIKE 'C%')
    AND T0.TaxDate BETWEEN @Start AND @Finish
    AND T0.TransType <> 25
    UNION
    ALL
    SELECT T0.TransId, T0.Account, T0.Debit As Credit, T0.Credit As Debit, T0.ShortName, T0.ContraAct, T1.CardCode As Code, T1.CardName As Name, T0.TaxDate, T0.DueDate, T0.U_Narration, T0.TransType, T0.BaseRef
    FROM JDT1 T0
    INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    WHERE T0.ContraAct = @CashAccount
    AND (T0.ShortName LIKE 'S%' OR T0.ShortName LIKE 'C%')
    AND T0.TaxDate BETWEEN @Start AND @Finish
    SELECT T0.Account, Sum(T0.Debit) As SumDebit, Sum(T0.Credit) As SumCredit
    INTO #OpeningBalances
    FROM JDT1 T0
    WHERE T0.TaxDate BETWEEN @YearStart AND DateAdd(dd, -1, @Start)
    AND T0.Account = @CashAccount
    GROUP BY T0.Account
    SELECT 0 As TCode, 0 As TransId, T0.Account, T1.AcctName, T1.GroupMask, T0.SumDebit - T0.SumCredit As Debit, 0 As Credit, 'Dr.' As BalType, '' As Code, '' As Name, '' As TaxDate, '' As DueDate, '' As U_Narration, T1.AcctCode As Code1, T1.AcctName As Name1, 0 As TransType, '' As BaseRef
    FROM #OpeningBalances T0
    INNER JOIN OACT T1 ON T0.Account = T1.AcctCode
    WHERE T1.GroupMask = 1
    Or T1.GroupMask = 5
    UNION
    ALL
    SELECT 0 As TCode, 0 As TransId, T0.Account, T1.AcctName, T1.GroupMask, 0 As Debit, T0.SumCredit - T0.SumDebit As Credit, 'Cr.' As BalType, '' As Code, '' As Name, '' As TaxDate, '' As DueDate, '' As U_Narration, T1.AcctCode As Code1, T1.AcctName As Name1, 0 As TransType, '' As BaseRef
    FROM #OpeningBalances T0
    INNER JOIN OACT T1 ON T0.Account = T1.AcctCode
    WHERE T1.GroupMask = 2
    Or T1.GroupMask = 4
    UNION
    ALL
    SELECT 1 As TCode, T0.TransId, T0.Account, T1.AcctName, T1.GroupMask, T0.Debit, T0.Credit, '' As BalType, T0.Code, T0.Name, T0.TaxDate, T0.DueDate, T0.U_Narration, T1.AcctCode As Code1, T1.AcctName As Name1, T0.TransType, T0.BaseRef
    FROM #Ledger1 T0
    INNER JOIN OACT T1 ON T0.Account = T1.AcctCode

  • Cash Book & Bank book

    Hi All,
    I need two reports. Cash book and Bank book. What will be the query?
    Regards,
    Rupa Sarkar

    Hi Rupa....
    Its always beneficial to suggest system default reports for finance........
    So suggest the same to your client....
    There are many good reports which your client should take interest....
    Regards,
    Rahul

  • Print cash book

    Hi Gurus,
    Here I am running the report " cash book Print" t code:S_ALR_87012309 ,
    even I maintained the text in SO10, still it is not showin the opening and cloising balances
    Kindly help me, your valuable suggestions
    with regards
    Arun Kumar

    Hi,
    F4- Drop Down would not work here.
    You need to type the text same as it is that you have maintained and the sytem would accept then.
    Create a variant once you have run so that the same can be used afterwards again.
    Caio
    Raghu

  • Regarding Cash Flow report

    Hi all,
            one of my clients has asked for the cash flow report to be modified. They are making incoming payment and outgoing payments with different series for cash and cheque. However, in the PLD of the cash flow report they want the title to be as " Cash Book" in case they select cash and " Bank Book" when they select the cheques. Is this possible in pld or is there any other way to achieve this?? Please suggest.
    Thanks in advance,
    Joseph

    Hi JOseph,
    Either u have to create  two templates or u have to go for development like crystal .
    Rgds,
    Premraj

  • Cash flow report monthly? 2013

    How can i report the tasks' cash flow monthly or daily? I use MsP 2013 professional
    Thanks very much.

    selcukz --
    Allow me to officially give you the bad news that it is NOT possible to create a cash flow report in Project 2013 that looks like the Cash Flow report in all previous versions of the software.  The problem with the new Reports feature is that it will
    not allow you to display a chart with tasks on the vertical axis and time on the horizontal axis.
    What you will need to do instead is to create a new Visual Report for Excel.  Before you go to all the bother of trying to create a completely new Visual Report, I was able to modify the existing Cash Flow Report in only a few steps to accomplish
    what you want to see.  Here is what I did and you can try it:
    1.  Open a project and then click the Report tab to display the Report ribbon.
    2.  In the Export section of the Report ribbon, click the Visual Reports button.
    3.  In the Visual Reports �?? Create Report dialog, click the Select Level of Usage Data pick list at the bottom of the dialog and select either Days or Months.  I selected Months.
    4.  Select the Cash Flow Report for Excel and click the View button.
    5.  In the resulting Excel workbook, click the Task Usage tab to display the Task Usage worksheet.
    6.  In the PivotTable Field List sidepane, deselect the Cumulative Cost field.
    7.  In the PivotTable Field List sidepane, select the Tasks dimension and the Monthly Calendar dimension.
    You should see the Monthly Calendar dimension in the Column Labels section of the sidepane, the Tasks dimension in the Row Labels section of the sidepane, and the Cost dimension in the Values section of the sidepane.  If you do not seem them in the
    correct sections, move them around until they match my description.
    8.  In the Task section of the PivotTable, completely expand all of the summary tasks so that you can see all of the detail tasks in the project.
    9.  In the Year section of the PivotTable, expand the Year dimension until you see months across the top of the PivotTable.
    10.  Click the Design tab to display the Design ribbon with the PivotTable Tools applied.
    11.  In the Layout section of the Design ribbon, click the Report Layout pick list button and select the Show in Compact Form item.
    12.  Select all of the numbers in the PivotTable and apply currency formatting as desired.
    After modifying the default Cash Flow Report for Excel, if this is what you want to see, then you will need to completely create from scratch as a new Visual Report for Excel.  In Project 2013, I believe this is the best way to recreate the old Cash
    Flow report we used to see in Project 2010 and earlier versions.  Hope this helps.
    Dale A. Howard [MVP]
    VP of Educational Services
    msProjectExperts
    http://www.msprojectexperts.com
    http://www.projectserverexperts.com
    "We write the books on Project Server"

  • How to find Opening Balance for Cash Book

    Hello Friends,
    I am Creating one Report for Cash Book.(Means : For Perticuler GL Account)
    I have no idea how to find Opening Balance for some Perticuler Date.
    Ex.
         Current date: 07/06/2007
        and i want to find Opening Balance on 26/05/2007
    i have Function for Calculating Opening Balance,                                                                               
    Group No: 3006             Business Object General Ledger Account  
    BAPI_GL_ACC_EXISTENCECHECK     Check existence of G/L account                  
    BAPI_GL_ACC_GETBALANCE     Closing balance of G/L account for chosen year  
    BAPI_GL_ACC_GETCURRENTBALANCE  Closing balance of G/L acc for curr year
    BAPI_GL_ACC_GETPERIODBALANCES  Posting period balances for each G/L account    
    but they show current opening balance, and i want for perticulaer Date..
             How to find Opening Balance for Cash Book
    please Help me out
    Thanks
    Gaurav Tripathi

    Hi Maruthi,
       Opening balance for a cutomer for a given period, u need to first find closing balance of that customer in the previous period. For eg. Suppose u want to find opening balance for customer 'A' for month of Nov'06, then U have to find wot was his closing balance in at end of Oct'06. Hope this solves u r problem

  • Fixed Asset Book Report

    When running the Fixed Asset Book report, the system shows every instance of an asset number. By that I mean that when and asset has changed locations the asset shows in the report in both locations with a value of zero in one location. This makes using this report for NBV reconciliations to the GL very difficult as I need to find ways of tracking and eliminating the duplicates before I can even begin.
    Is there a way to get the report to provide the data only in the current locations or is there a differant report I can use that provides a NBV at a period end broken out by cost and accumulated depreciation.
    Any assistance would be appreciated.

    Please see (FAQ: RXi Reports (JGRX/RXJG, FARX/RXFA, APRX/RXAP, ARRX/RXAR) [ID 430075.1]) -- How To Find The Source Code Of An RXi Report ?
    Thanks,
    Hussein

  • Cash Flow report in Report Painter

    Hi,
    I am trying to make a cash flow report in Report Painter.
    Can any one help me with steps or config material so that i can prepare and tally the cash flow report being generated in Report Painter.
    Also there are report line items where by the figures are getting populated but are not tallying with the GL balance, if seen individually by going to GL line item display
    Thanking You,
    Parin

    HI
    GOOD
    I NEVER WORK ON THIS BUT HERE I AM GIVING SOME LINKS , I HOPE YOU WILL GET SOME IDEA FOR YOUR PROBLEM.
    http://www.asug.com/client_files/Calendar/Upload/BPS%20presentation%20to%20Indiana%20ASUG%202-10-06.ppt
    http://sap.ittoolbox.com/groups/technical-functional/SAP-R3-ACCT/cash-flow-report-642778
    THANKS
    MRUTYUN

Maybe you are looking for