Query for account balance

We need a query for customer balance
Example :if i will give the from date 01.05.11 & to date 31.05.11 and from customer A & to customer E then in report data will display like Customer code ,Name, group,sales employee,last bill amt,last bill date,openning balance(from start to 30.04.11),total debit(from date 01.05.11 & to date 31.05.11 ),total credit(from date 01.05.11 & to date 31.05.11 ),last balance(31.05.11)
Please reply ASAP

Hi,
You have broken few forum rules already:
1. Never say ASAP on the forum. Here is a public forum. no one owe you anything
2. You have never close your threads properly
3. Sound like you are not B1 user. If you are, give your B1 version and PL
4. Even if you are B1 user, report forum is the right forum.
Thanks,
Gordon

Similar Messages

  • 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

  • Query for highest balance for each BP

    I'm working on a query to assist with determining appropriate Credit Limits for our customers.  I have been asked to research if we can develop a query to give what the highest balance has been for each BP all in one report.  The target query will return back all of our current BP's and what their highest balance have been.
    I found the following query by Gordon that will return the highest balance for a specified BP and have been working to use this as a base to create my query, but haven't had any luck so far. 
    SELECT T.SHORTNAME, MAX(T.Balance) Max
    FROM
    (SELECT T0.ShortName, (SELECT SUM(T2.DEBIT-T2.CREDIT) FROM dbo.JDT1 T2 WHERE T2.SHORTNAME = T0.ShortName AND DateDiff(d,T2.DueDate,T0.Duedate) >=0) 'Balance'
    FROM dbo.JDT1 T0
    WHERE T0.ShortName = '[%0]' AND DateDiff(yy,T0.DueDate,GetDate()) = 0) T
    GROUP BY T.SHORTNAME
    Any help would be appreciated.

    Thanks for the help, but this calculates the current outstanding balance which is already available via the OCRD table.  What I'm looking for is the max Cumulative Balance for the BP.  We currently find that value by selecting the arrow for Account Balance from the BP and then finding the highest balance in the Cumaliative Balance (LC) field.  SAP is calculating this somehow and we would like to be able to run a query to return back the max cumulative balance for each BP in our system.  I'm not even sure this can be replicated in a query.  I'm going to look through the refdb.chm help file to see if I can find anything to help out.
    Any insight will be greatly appreciated.

  • Unable to query for GL balances

    Hi All,
    I'm using Oracle EBS R12.1.3. I'm unable to find a gl balance for a specific account. I can see there is information about it into the database but i cannot understand why it is not appearing into the application.
    Here are my steps:
    1. Navigate to GL Manager responsibility
    2. Inquiry > Account
    3. Query for specific code combinition
    4. No results
    I tried with another one and I receive data into the application. I tried to compared them in the database tables - gl_balances, gl_je_headers, gl_je_lines and they looks like similar data (flag, status, etc)
    Any ideas?
    Thanks in advance,
    Stoyanov

    Hi,
    Thanks for your reply.
    I ran the account analysis report and i'm able to see the data. Also - I can see this info in the Journals screen in GL. Any ideas why it's not showing in Inquiry > Account?
    Regards,
    Stoyanov

  • FSI0 - Drill Down Reports for Account Balance Analysis

    Any orientation on this issue will be greatly appreciated.
    These are the steps I did to create a new Drill-Down Report for my customer.
    1. Created and modified a new Form based on the Form for the Financial Statement Analysis 0SAPBLNCE-04 (Periodic Actual vs Actual) using Transaction FSI4 (Create) and FSI5 (Change)
    2. Created and modified a new Report with reference to the Form I just created using transactions FSI1 (Create) and FSI2 (Change)
    3. I select "Expand: Completely" to see all Account Balances
    3. All the totals match between the Original Standard Report and the new report I just created.
    4. On both reports, when I select a Balance and then select the GOTO \ Line Items to get the list of documents I get the following results:
    ==> Most of the cases (I would say probably 80% of the cases) the Account Balance I selected matches with the Total of Line Items that is displayed when I do the GOTO \ Line Items
    ==> In some cases (just a few) the Account Balance does not match at all with the totals of Line Items that is displayed when I do the GOTO \ Line Items
    Can somebody explain why ? Shouldn't the totals match all the time since I am specifically selecting a balance to see all its line items? Where are the missing line items?
    Since these are just a few cases my customer is okay with it but he would like to hear a logic explanation why the Account Balance and its line items do not match on this report.

    Hello,
    There is a possibility that you have activate line item display for some of the accounts at a later stage. Meaning that earlier postings were not be shown for the earlier postings but only totals will be made available. Therefore, obviously there is bound to be difference between line item report and totals report.
    You need to identify which accounts are being changed with line item display at a later stage.
    In case if you forget to keep GL Line item display for an account, but the posting are already made the following steps you would required to get the line item display retrospectively.
    1. Note that you are NOT required to make the balance of that GL account to ZERO. Please do not confuse with Open Item Management.
    2. Put the check box line item display for the account in FS00. Make sure you are entering right company code.
    3. Block the account for posting in COA Segment and Company Code Segment in FS00
    4. Go to SA38 and run program RFSEPA01 (Give correct GL Account and Company Code)
    5. Now, remove the block you kept on the GL Account in FS00.
    This will reset the line item display retrospectively.
    Hope this will solve your problem.
    Regards,
    Ravi

  • Table for account balance per period

    Hello
    Does anyone know if exists a table that shows the account balance for each account per period?, I mean, we are looking for a table similar to the data shown with transaction FAGLB03. We have tried with GLT0, but it shows only the period 16.
    Thank you in advance.
    Regards.

    Walter,
    I tried with the table GLT0 following the procedure described here: GLT0 empty for period 3
    because it was empty, now, it has values, but, only recent data, do you know how could we fill that table with my old values?
    Thank you in advance.

  • FM for account balance

    Dear forum members,
    I need to know a FM to compute the account balance!?!?!? I found the for_all_skc1a and the for_all_skb1a. But for some reason they both don`t work!?
    Any ideas???
    Thank`s in advance
    immersap

    Hi,
    Check the below function modules:-
    BAPI_GL_ACC_GETBALANCE         Closing balance of G/L account for chosen year
    BAPI_GL_ACC_GETCURRENTBALANCE  Closing balance of G/L account for current year
    BAPI_GL_ACC_GETPERIODBALANCES  Posting period balances for each G/L account
    Regards,
    Gaurav

  • Query Active account balance

    Hi Expert,
    Is it possible to get active account balance (by passing parameter using 'create date') thorugh Query.
    If possible post query.
    By,
    Kart

    Hi Gordon Du,
    This query may not correct, actually i need -Chart of accountwise
                                                        Balance
    such as 101010 - capital account = 200000
                 210101 - Bank account  =  100002
    SELECT T1.[AcctName],  T0.[LineMemo] Detail, T0.RefDate 'Posting Date', T0.TransId 'Transaction Number', T2.[AcctName] OffsetAccount, T0.[Debit], T0.[Credit], T0.[Ref1], T0.[Ref2], '0' Balance  FROM JDT1 T0  INNER JOIN OACT T1 ON T0.Account = T1.AcctCode INNER JOIN OACT T2 ON T0.[ContraAct] = T2.AcctCode WHERE (T1.[AcctName]  = '[%1]' or '[%1]' = '') and  (T0.[RefDate] >= '[%0]' or '[%0]' = '') and (T0.RefDate <= '[%2]' or '[%2]' = '')
    by
    kart

  • E52: speed-dial for account balance

    My Service-Provider (blau.de) sends me my account balance if I call the *100#. I've done a link to speed-dial button 9.  After pressing the button 9, I get a short message that an SMS with the account balance information will be send to me. So far, so good. If I close this informational display the quick access keys do not appear. I get only a monochrome background. Neither my background image nor my quick access configuration are to be seen. Pressing the hang up key does not help. I have to press any number on the keyboard and then the hang up key. After that procedure my usual background appears again (image and quick access). If I call the *100# from contact menu everything is fine. It seems that an overlaying windows is not going to be closed by using the speed dial key. This is for me clearly a software (firmware) bug and very annoying. Formerly I used a E51 without such behavior. I updated to the newest firmware (which was a disaster) and the problem still remains.
    Some statements to the firmware update. What the hell is this? I need a whole day to do this successfully. And believe me, I'm a computer scientist and I know what I'm doing. Neither NSU 2.5.4 nor Nokia Ovi Suite 2.1.0.87 are working as firmware updater on Windows 7 (32 and 64 bit! Windows 7 uses Windows Media Player 12 and his mtp driver seems to be incompatible with the E52 as with many other Nokia devices. I tried Windows Vista 32 bit without success. No mtp support for my Nokia. How can this be? The only thing that worked was Windows XP with Windows Media Player 10. Believe me, we have year 2010! It is impossible to do the firmware upgrade with Windows XP in a virtual machine due to some USB reconnections. I had install a new Windows XP native on a hdd, for a simple firmware upgrade. I think this can't be true, especially when the bug still remains. When will Nokia reaches the present?
    So hope you understand my frustration and try to evaluate this bug. Please don't say: go to your dealer. He can't help this is a firmware bug. My actual firmware version is 013.012. If you want I can send you a video of this behavior.
    jarau_de

    Hello,
    I had posted about this error in September itself when i bought the phone. Even after two firmware updates this is not solved.
    Also i had detailed a list of bugs and posted. Even after this update, nothing has been rectified. I dont know what only Nokia is putting in 150MB.
    People first want thier phones to function correctly instead of Internet radio and such stuff.
    I no longer use nokia.
    /t5/Eseries-Devices-and/E52-Product-code-0578077-Defects-still-not-rectified-after/m-p/571707#M52605
    5110->1100->6100->3230->6233->6681->N72->N73->5800->(With E52 I am done with Nokia)

  • Query for Customer Balances and Corressponding Incoming Payments

    Hi all,
    How to get the account balance of a particular customer with corressponding incoming payments.
    Eg: Suppose one Invoice having 5000.00 for which i got 3 incoming payments of 1000.00 2000.00 and 500.00, now i need to give a report as
    CardCode | Balance | Adjusted Amount | Un Adjusted Amount
    xyz | 5000.00 | 1000.00 | 4000.00
    xyz | | 2000.00 | 2000.00
    xyz | | 500.00 | 1500.00
    i have mentioned for one customer similarly i need for all the customers and vendors.
    Waiting for you earliest reply,
    Thanks in Advance.

    Please check this thread:
    Running Total in QLD
    Thanks,
    Gordon

  • Similar report for Account Balance display which could be scheduled in the background

    Hi SAP gurus,
    As we know to display GL Account Balance Display we have std report "FAGL_ACCOUNT_BALANCE" But we can not run this in background as it is ALV report.
    So I would like to know a similar report which could be scheduled in the background.
    Thanks in advance
    Regards,
    -Chetan

    Hi,
    As division is not header field of invoice it is not available in accounting document header as well. Thus it will not be available in any standard reports showning items per account. I'm affraid you need to develop your own report or try to extend existing using user-/customer-exits.
    You can find more information in OSS note 13131.
    Regards,
    Marcin

  • Query for Account

    How many Gounral ledger must be use for Item in the just for starting (In G/L Account determrnation)
    And
    how many value posted for Raw Materials group(Having a numbers of items).and  can we  get this total amount from any Gournal Ladger.

    Hello Sandeep,
    Typically for an Item, you have to define the following G/L Accounts:
    1. Stock Account - stock purchases
    2.  Revenue Account - sales of the stock
    3.  Cost of Sales Account - sales of the stock
    4.  Goods Clearing Account - clearing account used when the stock is entered in a Goods Receipt PO transaction.
    5. Price Difference - difference in the cost of the item between the Goods Receipt PO and AP Invoice.
    6. Exchange Difference - necessary if you purchase from foreign Business Partners
    7. Negative Inventory - necessary if you allow your stock to go negative.
    I hope the above helps.
    Regards,
    Lorna Real

  • SAP B1 query for  trial balance by Locations

    Hi team
    How i can take the trail report by location. or is there any query to take this report.
    Thanks
    Anantha Desai

    Hi,
    Please check this thread:
    http://scn.sap.com/thread/1188738
    Thanks & Regards,
    Nagarajan

  • Report to download impersonal account balances

    Hello together,
    I am currently preparing data migration. I also have to migrate the impersonal account balances.
    I was told to use a standard transaction for account balances (S_ALR_87012277 or S_ALR_87012279 or ...) and then download the selected values into Excel. So far so good.
    My problem is the legacy system. It's a 4.6C and there I only get lists and when you try to download them into excel ......
    it doesn't look good and I would have to delete hundreds of lines and a lot of columns.
    So - does anybody know a better way to download or extract the data a different way?
    Regards
    Heiko

    Solution was a Z-Copy of an SAP standard report with modifications to download the needed data.

  • How to query the opening balance for an specific account for an spec. date

    Hi all,
    for my user query I need to calculate the opening balance for an cash account for an specific date.
    Any ideas, how can I do this?
    Or may be you know a field in an SBO table that already contains information I need...
    Best Regards,
    Inna

    Hi Inna,
    to find the opening balance for an account or a business partner, please see SAP Note [1114253|https://service.sap.com/sap/support/notes/1114253] :
    Symptom
    How to find the opening balance of a business partner or G/L account.
    Other terms
    Account, customer, supplier, vendor, creditor, debitor, start, initial, first, opening balance, business partner, G/L, SAP Business One
    Reason and Prerequisites
    Consulting
    Solution
    There are several possible approaches:
    Approach 1 - Business Partner Opening Balance:
    1. Go to Business Partners -> Business Partner Master Data -> find the Business Partner
    2. Click on the orange link arrow next to the field 'Account Balance' in the header region of the window.
    3. Untick the boxes next to 'Posting date from', 'Display' and 'Display Unreconciled Trans. Only'.
    4. Click on the button 'Refresh'.
    5. Find 'OB' in the column 'Origin', this is the opening balance journal entry.
    Approach 2 - Business Partner Opening Balance:
    1. Go to Business Partners -> Business Partner Master Data.
    2. Click on the orange link arrow next to the field 'Account Balance' in the header region of the window.
    3. Untick the boxes next to 'Posting date from', 'Display' and 'Display Unreconciled Trans. Only'.
    4. Click on the button 'Refresh'.
    5. Double click on the column header 'Posting Date' to find the earliest transaction on the business partner account. This transaction could be opening balance, verify this with the company accountant.
    Approach 3 - G/L Account Opening Balance:
    1. Go to Financials -> Chart of Accounts -> click on the account name once.
    2. Click on the orange link arrow next to the field 'Balance'.
    3. Untick the boxes next to 'Posting date from', 'Display' and 'Display Unreconciled Trans. Only'.
    4. Click on the button 'Refresh'.
    5. Find 'OB' in the column 'Origin', this is the opening balance journal entry.
    Approach 4 - Business Partner and/or G/L Account Opening Balance:
    1. If using SAP Business One 2005 SP01 or earlier, go to Reports -> Query Generator -> click on 'Execute'.
    2. If using SAP Business One 2007 or later, go to Tools -> Queries -> Query Generator -> click on 'Execute'.
    3. Ignore the red system message in the bottom of the screen.
    4. Click on the pencil icon in the top left of the window, the field with 'SELECT *' will change colour to white, then yellow when activated by clicking in the field.
    5. Copy the query below:
               SELECT T0.[TransId], T0.[Debit], T0.[Credit] , T0.[CreatedBy], T0.[TransType] FROM [dbo].[JDT1]  T0 WHERE T0.[TransType] = '-2'  and T0.[ShortName]  = '[%1]'
    6. Click on 'Save' and give the query an appropriate name and select the appropriate category.
    7. Click on 'Execute'.
    8. Click on 'Existing Values'.
    9. Select the G/L account or the Business Partner name from the list and click on 'OK'.
    10. The system message 'Records retrieved by this query #' (# = number of records) will pop up. Click on 'OK'.
    All the best,
    Kerstin

Maybe you are looking for