Cash Income and Cash Expense report

Hi all,
        i need a report where i can get cash income report based on payment means i.e. thorough cheque, through credit card, cash and also cash expense report based on cheque and cash. I tried to make a query but it doesnt give any result nor any error. Can anyone suggest a query to fetch this data?? I dont understand what is wrong in this query!!
SELECT T0.[CardCode], T0.[CardName], T1.[DocNum], T1.[DocDate], T1.[CashSum], T1.[CreditSum], T1.[CheckSum],
T2.[CheckNum], T2.[Branch], T2.[AcctNum], T3.[DocNum], T3.[CashSum], T3.[CreditSum], T3.[CheckSum],
T4.[CheckNum], T4.[BankCode], T4.[AcctNum], T4.[CheckSum]
FROM OCRD T0  INNER JOIN ORCT T1 ON T0.CardCode = T1.CardCode INNER JOIN RCT1 T2
ON T1.DocEntry = T2.DocNum INNER JOIN OVPM T3 ON T0.CardCode = T3.CardCode INNER JOIN VPM1 T4
ON T3.DocEntry = T4.DocNum
Please suggest a better query that can fetch the data customer / vendor wise i.e the selection criteria should be a BP, either a customer or vendor or both bt income first and then expense.
Thanks in advance,
Joseph

Try this one:
SELECT T0.CardCode, T0.CardName, T1.DocNum Incoming, T1.DocDate, T1.CashSum, T1.CreditSum, T1.CheckSum,
T2.CheckNum, T2.Branch, T2.AcctNum, T3.DocNum Outioing, T3.CashSum, T3.CreditSum, T3.CheckSum,
T4.CheckNum, T4.BankCode, T4.AcctNum, T4.CheckSum
FROM DBO.OCRD T0
LEFT JOIN DBO,ORCT T1 ON T0.CardCode = T1.CardCode
LEFT JOIN DBO.RCT1 T2 ON T1.DocEntry = T2.DocNum
LEFT JOIN DBO.OVPM T3 ON T0.CardCode = T3.CardCode
LEFT JOIN DBO.VPM1 T4 ON T3.DocEntry = T4.DocNum
WHERE T0.CardCode LIKE '[%0\]%'
Thanks,
Gordon

Similar Messages

  • Issue with Cash Management and liquidity forecast report

    Hello folks,
    I am working with cash management and liquidity forecast reports. While running the report for Cash management, as I drill down to planning levels and induvidual GL accounts for the bank accounts, the figures for GL acounts in report does not tally with actual GL balances. As I drill down to last level, it shows the GL balance display which is different from the values in the report. Can anyone tell me why it does not pick up certain values. I find that certain document type "DZ" values are not picked up by the report. Any suggestions?
    Also, I would like to know is there any way to cross check the values in Liquidity forecast report for sales orders, purchase orders and requisitons through any other report in MM and SD. Would appreciate if someone can respond to mu query.
    Thanks in advance,
    -NK-

    In se38, look for programs starting with RFFD*; there are a few for reconciliation of cash management with SD/MM/GL etc.

  • 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

  • Different  document  numbers  for  cash  receipt  and  cash  payment

    Dear  ALL
    can  we   get  different document  numbers   for  cash  payment  and  cash  receipt
    regards
    sheena

    Dear  Jigar ,
    i am  not able  get separate  document number   for  cash  receipt and cash payment 
    though  i assigned  in fbcjc0.can  you elaborate  on what  you  have  told  .
    further  cash receipt  and cash  payment  for  gl  account s  it  is taking consecutive  numbers  only
    can  you  give  me your  gmail  id
    regards
    sree

  • Difference between Cash Counter and Cash Journal

    Hi All,
    Please tell me what is the difference between Cash Counters, Cash Journal And Cash Book.
    How can we use all of these in SAP FI?
    Please revert asap.
    Thank You

    Dear Verma
    Cash Journal
    The cash journal is a subledger of Bank Accounting. It is used to manage a company's cash transactions. The system automatically calculates and displays the opening and closing balances, and the receipts and payments totals. You can run several cash journals for each company code. You can also carry out postings to G/L accounts, as well as vendor and customer accounts.
    To my knowledge there is nothing called Cash Book and Cash Counters in SAP. If this helps please reward with points.
    Best Regards
    kesav

  • 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

  • Difference in Cash Balance in Cash Journal and Cash GL Account

    dear friends,
    Can somebody tell me the reason and solution to following problem -
    1. User entered on Cash Payment ( FBCJ ) entry for Vendor with TDS activated.
    2. Due to some mistake in amount , he reversed the same ( FB08 ) , however amount reversed in Cash GL and TDS GL was wrong / was not same as per original document.
    3. Since it give the rise to difference in balance of Cash as per GL Account and Cash Journal , we passed 2 more entries ,
    1. FBCJ  - Cash Receipt ( for differential amt )
                          Cash Journal .... Dr. ....
                                    To intermediate account
    2. F-02 - Journal entry - for differential amt.
                          Intermediate account .....
                                        To Cash GL Account
    However still problem persists. Can anybody find out reason and solution for this.
    Thanks....

    Hi P S,
    Firstly, In cash journal the entries flow FI-BL (Bank Accounting - Sub-module) to FI and gets updated in GL Account.  That is why in the GL master master record of cash journal account, you see the "Post automatically only" option ticked. 
    The solution for you problem is that
    1. First reverse the f-02 entry by fb08. This will reverse the entry which has effected only FI-GL.
    2. Go to cash journal wrong (original) entry (FBCJ) and select the entry and delete the transaction through delete icon on left hand bottom.
    3. This will reverse the entry in FI-GL.
    4. Pass fresh entry in FBCJ with correct amount.
    Hope this will help you... Pls assign points if helpful.
    Regards,
    Vinay

  • Alerts for Cash Deposit and Cash Withdrawal

    Hi All,
    I've one requirement from my client, Whenever I post a cash deposit into bank of Rs. 10,000/- or more, an alert has to go to the authorizer. This is same for withdrawal also. Please advise how to achieve this in B1.
    Regards,
    Silpa

    Hi Dilip Kumbhar,
    I am in beginner stage in SDK.I dont know how to write message instead of Alert.Can you please help me how to write and where to write.please explain in detailed steps for this.I think this Alert will possible in by writing the UserDefinedFields.But i am not able towrite that Query.please give the Solution as soon as possible, it is very urgent.My client is asking this.

  • IS Utilities: Cash Desk and Cash Journal

    SAP Provides Transactions FPCJ and FPCD.
    It appears that you can use one; but not both. Is that correct.
    Under what business scenario do you use FPCJ and FPCD?
    Please advise.

    Hi Aditya,
    In a simple word, whichever documents are posted with MAIN/SUB creates a new row in DFKKOP with document number in DFKKOP-OPBEL.
    If a payment is posted as an open credit item, it should be there DFKKOP-OPBEL field and BETRW and BETRH will be populated with payment amount.
    However if a payment is posted as a clearing document against a debt, system updates that row of DFKKOP where DFKKOP-OPBEL is the cleared document number (debt, mostly an invoice). Clearing document (DFKKOP-AUGBL) of that row is updated with the payment document number.
    In either of the cases DFKKKO and DFKKOPK are updated and below are the reason.
    DFKKKO - document header level information (as who created, at what time, origin key, reco key etc.)
    DFKKOPK - (GL level information of the document)
    For payment lot and payment document related information you can refer DFKKZK, DFKKZP and DFKKZPT tables.
    Hope it clarifies your query.
    Thanks, Bodhisattwa

  • DIFFERENCE BETWEEN CASH JOURNAL AND F-02

    Dear All,
    Kindly let me know the difference between Cash Journal and F-02
    Best Regards,
    S Balasubramanian
    Moderator: Please, read basic SAP material

    Hi S Balasubramanian,
    Any transactionn which is related directly with Cash is done in Cash journal(Petty Cash).
    Example:Cash withdrawal from Bank,Cash deposit in Bank, Vendor payment in Cash, Customer payment in cash, small expense payment in cash, revenue through cash.
    Using cash journal we can identify the exact cash receipts and cash payment and cash balance.
    Regarding F-02, This transaction is used to do general ledger posting.
    Using this transaction we can do General ledger posting, customer invoice, customer payment, vendor invoice, vendor payment,
    we can post any transaction using F-02  and combination of the posting keys.
    Regards,
    Bhushan

  • Error when Display/Print my expense report,travel request and travel plan

    Hello experts,
    I had configurated the ADS and ESS successfully.We are using ESS and interactive form now.
    And we had developed some interactive form and they work fine .
    In page "My Trips and Expenses   " , there are 4 tabs " All My Trips","  My Travel Requests","  My Travel Plans " and " My Expense Reports " .
    When I selected one row of table and click button " Display/Print" , I got the error :
    com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Failed to  USEPDF
         at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException.<init>(PDFDocumentRuntimeException.java:25)
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:419)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1132)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java:895)
    Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: pdfSource of InteractiveForm UI element should be populated with pdf binary content in USE_PDF mode
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:351)
         ... 48 more
    Is there any guys had met the problem ? Please give me some suggestions .
    Thank you !
    Best Regards,
    Louis

    Louis,
    can yo make sure that you are doing this "pdfSource of InteractiveForm UI element should be populated with pdf binary content in USE_PDF mode"
    check these links
    https://forums.sdn.sap.com/click.jspa?searchID=18701125&messageID=6070514
    https://forums.sdn.sap.com/click.jspa?searchID=18701125&messageID=6426445
    https://forums.sdn.sap.com/click.jspa?searchID=18701125&messageID=6323600
    Thanks
    Bala Duvvuri

  • Cash Inflows and Outflows- company code wise, project wise etc.

    Hi Gurus,
    Client's requirement says they need cash inflows and cash outflows related to a company code, project wise etc. for a specified period.
    What needs to be done for this requirement? Do we have to implement Cash Management and liquidity forecasting module to fulfill this requirement???
    Please revert asap.
    Thank You

    Hi
    You need to setup the cash journal configuration where cash inflows and outflows will be recorded.
    The path is as follows:
    SPRO>Financial Accounting>Bank Accounting>Business Transactions>Cash Journal
    Hope it will solve your problem.
    Regards
    Tapan

  • API to create expense reports

    Are there any apis available in R12 to create expense report in iExpense?
    We are receiving a flat file with employee expenses and we need to import these expenses into oracle and create expense reports, send it for approval, finally create invoices in payables.
    Flow:
    Expenses flat file --> Expense Report creation in iExpense --> Approval --> Audit --> Payables InvoiceThanks in advance!
    Edited by: user641008 on Mar 12, 2013 10:29 AM

    Hi,
    have a look at documentation of tables
    AP_EXPENSE_REPORT_HEADERS
    AP_EXPENSE_REPORT_LINES
    You can populate those tables with information coming from your flat files, maybe you
    must populate some mandatory columns which are not included in your file information.
    Regards

  • Personal Credit Card Transactions(used in expense report) showing unused

    We have an issue here (in Oracle 11.5.10.2) where credit card transactions even though used(tied to an expense report and having final status as PAID/INVOICED) is still coming as UNUSED in the aging outstanding credit card transactions report. This is due to the fact that in the credit card transaction table, the expense amount column for these transaction is zero and hence these gets picked in the report. This is a bug that many users are facing the system and I have found in the metalink that this is a bug and a patch 5080064 needs to be applied. The concerned metalink note is Credit Card Transactions Included in Expense Report and Adjusted to Personal show as Used[ID 414566.1].
    But it states here it is for Oracle Internet Expense 11.5.9 and pre-requsite patch is
    3618125 - Patch 11i.OIE.J
    4341684 - 11I.OIE.J (11i.FIN_PF.G) Rollup #2
    We are at iExpense patch level 4165000 - patch 11i.OIE.K which superseds both the above patches.
    The sql files included in the patch have lower version than we have in our instance. We are skeptical whether applying the patch can resolve our issue. We are sure that this is a bug and we need to know if there is a patch for fixing it or any workaround.

    Hi Priyanka,
    We have had the same issue last month where same VCF4 file has been uploaded twice and duplicate CC records have been created. Actually the application never creats same record again although same VCF4 file been uploaded multiple times but after applying some patch system started creating duplicate CC records. That patch was meant to resolve a different issue on iExpense side but affected VCF4 file uploading program.
    To narrow down the problem you can ask business users not to submit the expense report for the same transactions, if they have already done it and the expense report is not yet approved then they can withdraw it .
    As a permanent solution it's highly recommended to raise an SR with Oracle Support.
    I'm sure this is really painful issue in terms of reconciliation and can't take any decision as the Credit Cards data is more sensitive...
    Wish you all the best...
    Cheers,
    Vara

  • FI Cash in flow and Out flow report

    Hi  Experts,
    How to get a report from BSEG and SKA1 tables based on refrence key and g/L account.
    the user asked a report cash in flow and cash out flow report by joining these two tables.
    Pls suggest how to achive this?
    thanks,
    Anand Reddy

    Hi Reddy,
    0GL_ACCOUNT_ATTR is the datasource for table SKA1.
    0FI_GL_14 is the data source related to table BSEG.
    create an infoset or MP on top of these two and build the report.
    Edited by: prashanthk on Oct 1, 2010 1:18 PM

Maybe you are looking for

  • Making Main Images Links in Photo Gallery

    Hello. I've made an image gallery and it works great. What I want to do is make the main image a link to a certain part of the site. The first link works great, but then I get: TypeError: Error #1009: Cannot access a property or method of a null obje

  • Unable to understand the concept of Primary Key in EJB

    hi, please help me in understanding the concept of Primary Key. For each and every entity bean represents a data base row. i think it is correct. if multiple users are accessing the same data base row, there will be different primary key for each and

  • Customer wise P&L

    Hi to all can we retreive customer wise P&L statement in b1 ?

  • I have internet however the APP store can not connect

    I have internet all the time and I have many problems 1.-The app store showed one message "CAN NOT CONNECT TO THE APP STORE" 2.-I tried to download all the new software available , after some minutes show the computer one message that say "it is impo

  • XQuery Performance in BerkeleyDB

    We are migrating from IPedo to Berkeley DB. IPedo did not support multiple indices in their Xqueries, so we had to concatenate some fields in to one field and index that field, the Xqueries were really fast. Unfortunately the same XQuery does not per