Regarding    opening Balances  for customer  as   on date

hi
Experts..
  hw  to caluclate the  opening balances for  customers as on date.
  wt is  the procedure &  please    give the  tables names  and send needed stuff.
Thanks & Regards
Spandana

hi..
Use the BAPI 'BAPI_AR_ACC_GETOPENITEMS'.
it will give you opning bal for customer.
example:
DATA: GT_LINE TYPE TABLE OF BAPI3007_2,
      WA TYPE BAPI3007_2.
CALL FUNCTION 'BAPI_AR_ACC_GETOPENITEMS'
      EXPORTING
        COMPANYCODE = bukrs
        CUSTOMER    = kunnr
        KEYDATE     = date
      IMPORTING
        RETURN      = lt_bapireturn1
      TABLES
        LINEITEMS   = gt_line.
table gt_line  will have the details of the open items for the customer.
regards,
Padma

Similar Messages

  • How to find opening balance for customer?

    Hello Abapers,
    I have a requirement as i need to find opening balance for particualr customer in a  company.This is related to FI/CO modules.Please solve my porblem.
    Waiting for your favourable replies
    Regards
    Maruthi

    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

  • Opening Balance for customer and vendor

    Hi All,
    i wana Find the opening balance of a customer and vendor. How do i do it? Shoudl i calculate it or is there any database table for that. PLz do help me.
    I have been recomended few tables like BSID, BSAD, but i dint find any field for opening balance. i didnt even find it in FD10N.
    thanks n regards.
    Santosh Kotra

    Hi,
    Opening balance of Customer means:
    Get the data from BSID and BSAD tables.
    You have to segregate the data based on the Posting date field(BUDAT).
    If you calculate all the open items amount (all DMBTR or WRBTR)  till 31.12.2006,
    then as on 1st January 2007 this amount will become the OPENING BALANCE of that customer.
    Similarly for Vendor calculate all the Open Items from BSIK and BSAK and do the similar exercise using the posting date.
    So this concept of Opening balnce is always with respect to a Date.
    Hope you understood.
    Regards,
    Anji

  • 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

  • How to query opening balance for all customer or Vendor for an speci. date

    Hi,
    How to query opening balance for all customer or Vendor for an specific date?
    Example:
    put any date and query will show all customer/ Vendor  that date opening/current balance.
    Regards,
    Mizan

    Hi mizan700 ,
    Try this
    SELECT T0.[DocNum] As 'Doc No.', T0.[CardCode] As 'Customer Code',
    T0.[CardName] As 'Customer Name',(T0.[DocTotal]-T0.[PaidSys]) As 'O/S Balance'
    FROM OINV T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
    INNER JOIN OCRG T2 on T1.GroupCode = T2.GroupCode
    INNER JOIN INV1 T3 ON T0.DocEntry = T3.DocEntry
    WHERE T0.[DocStatus] ='O'
    AND
    (T0.[DocDate] >='[%0]' AND T0.[DocDate] <='[%1]')
    Regards:
    Balaji.S

  • 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

  • How to calculate Opening balance for a customer?

    Hi Experts,
    How to calculate Opening balance for a customer? I am trying to develop a report where in i have to get opening AR balance,current sales,adjustments etc of a customer. Please let me know how can i do this. I have some tables with me KNC1, BSAD, BSID.
    Thanks in Advance.
    Sharat Chandra.

    Say for example ..
    Get the opening bal for Customer 'K' in CCode 'C1' in 2008 ..
    First get all items from BSEG ..
    Select * from BSEG where KUNNR eq 'K'
                                     and BUKRS eq 'C1'
                                     and GJAHR eq '2008' .
    Sum all the DMBTR values (This is the total value).
    Second get the cleared items form BSAD for the above entries;
    Select * from BSAD for all entries in BSEG where KUNNR and BUKRS and XBLNR eq BSEG-XBLNR.
    Sum all DMBTR values ( this is cleared value).
    Third substract the cleared value from total to get Open value.
    This is a overview .. you should go to the tables and look for fields and etc.. and then define the logic meeeting your requirements .... this is a genric undersatnding ....
    Thanks,
    Aditya. V

  • How to get the opening balances for lessthan selected date in cubes.

    Hi All,
    my task is to get the opening balances for the selected date.
    Ex: If I select date say 31-1-2013, I should get the sum of values which are less than the selected date.
    in sql:
    select sum(balance) from banktrans where banktrans.transdate < 31-1-2013;
    BankTable                            BankTrans
    BankId                               BankId
                                            balance
                                            transdate
    BankTable (records):
    SCB
    BankTrans(records):
    a) SCB, 15000, 10-02-2013
    b) SCB, 20000, 31-01-2014
    c) SCB, 50000, 21-09-2012
    If I select date as 31-01-2014, I should get the value as 65000 
    If I select date as 10-02-2013, I should get the value as 50000
    Date will be dynamic selection from years months days hirearchy ( time dimension)
    How can i achieve this?  
    any help is much appreciated.
    Thanks,
    Rakesh

    Dear David,
    I've tried the below with static date but i'm not getting the values which are sum of less than the given date.
    I've given 1st jan 2013 as static date and I need to get the sum of values which are less than the 1st jan date.
    CREATE
    MEMBER
    CURRENTCUBE.[Measures].[OPENBALANCE]
    AS
    Sum({Null:[Time].[Years
    Quarters Months Weeks Days].[Days].&[2013-01-01T00:00:00]},[Measures].[AmountCur]]),
    FORMAT_STRING
    = "Standard",
    VISIBLE
    = 1
    can you plz check the above once and guide me.
    Thankyou,
    Rakesh

  • Business area wise opening balance of customer.

    Dear Guru's
    How to get the opening balance of Customer account, Business area wise. I have to prepare report on cutomer account balance based on business . I am getting the balance on the basis of company code from KNC1 table.but I am not able to get balance based on business area, can any body help me... it is Urgent
    With Regards
    Mahesh

    Dear Madhuri
    That i know, but i need to prepare a report, customer details based on Business Area for that i need to get a opening balance of customer based on business area.so i needed from which table i will get the balance of customer based on business area.
    Please help me yaar....
    it is urgent.....
    thanks for ur replay
    i am expecting a good solution from You.
    With Regards
    Binoj

  • Opening balance for vendor in debit

    Hi
                                  When I post the opening balances for vendors it is showing the vendor balance as debit.(+) Is this correct or it should show vendor balance in credit and customer balance as debit ?
    Regards
    Sekar

    Hi,
                              This was the JE:
                                                                                    VENDOR                         1000 (Debit)
                                                              OP BAL(Asset)               1000(Credit)
    Remarks: BPartners  Opening Balance       
    Thanks and Regards,
    Sekar
    Edited by: S. Gamaliel Sekar on May 17, 2011 11:38 AM
    Edited by: S. Gamaliel Sekar on May 17, 2011 11:39 AM

  • Regarding opening balance of vendor

    we have a vendor which total balance on the date 03.11.2011 is Rs.15000000. But what is the requirement is now with the same vendor we should have opening balance on dated 01.04.2011 is Rs.100000. is this possible?(to put this amount as opening balance for this fiscal yr.
    Regards
    Abhisekh

    Hi,
    You can check the balance of the vendor, according to the period wise...
    FYI
    Please check with below T-Codes:
    S_ALR_87012077 - Vendor Information System
    S_ALR_87012082 - Vendor Balances in Local Currency
    S_ALR_87012093 - Vendor Business
    S_ALR_87012079 - Transaction Figures: Account Balance
    S_ALR_87012080 - Transaction Figures: Special Sales
    S_ALR_87012081 - Transaction Figures: Sales
    S_ALR_87012078 - Due Date Analysis for Open Items (Check with this, it fulfills ur requirement)
    S_ALR_87012103 - List of Vendor Line Items (Check with this, it fulfills ur requirement)
    S_ALR_87012083 - List of Vendor Open Items for Printing
    S_ALR_87012084 - Open Items - Vendor Due Date Forecast
    S_ALR_87012085 - Vendor Payment History with OI Sorted List
    S_ALR_87012104 - List of Cleared Vendor Items for Printing
    S_ALR_87012105 - List of Down Payments Open On Key Date - Vendors
    Regards,
    GOPI KRISHNA YANDRA

  • HOW TO CARRY FORWARD RG1 CLOSING BALANCE TO OPENING BALANCE FOR NEW FISCAL

    Hi Experts
    How to carry forward the RG1 closing stock at the year end to opening balance of Rg1 for new year.
    Wt are the steps required for closing activity of RG1 and carry forward closing balance of last year to opening balance of  new year.
    Thanks

    Hi Rohan,
    For RG1 and RG23 A Part I and RG23 C Part I
    Go to SE16, here enter Table Name - J_2IRG1BAL and Click on "Create" button in initial screen, it will give the maintenance screen. Here mainatin following;
    For each of these materials, you have maintained the material form in table J_2IRG1BAL as below. Do not make any entries in fields that are not listed below:
    EXGRP - Materialu2019s excise group
    DATUM - Date from which RG1 report is required, normally the date of going live
    MATNR - Material
    FORM - Enter P (Packed) or L (Loose). Do not leave this field blank.
    WERKS - Leave this field blank.
    OP FN UOM, OP BN UOM, CB FN UOM - Leave these fields blank. All quantities in this table are updated in the base unit of measure of the material
    USNAM - User ID of the person filling out the table.
    CPUDT - Date of entry
    CPUTM - Time of entry
    Note: - This is to be done before J1I5, J2I5.
    Also refer link;
    Update of Registers RG 1 and RG 23 (Part I)
    For RG23 A Part II, RG23 C Part II and PLA
    Go to SE16, here enter Table Name - J_2IACCBAL and Click on "Create" button in initial screen, it will give the maintenance screen. And maintain following;
    Excise Group
    Data element for Register names
    Date
    Plant
    Basic duty (OP BAL)
    Basic duty (CL BAL)
    Basic duty (EXAMT)
    Extract Indicator
    User name
    Entry Date
    Entered at
    Note: -
    1. Enter OP BAL, CL BAL and EXAMT all as same as opening balance. For e.g. opening balance for RG23ABED is 1400 then this value is to be entered in all the 3 fields.
    2. You have to enter separate line items for all the accounts;
    RG23ABED
    RG23ASED
    RG23AAED
    RG23CBED
    RG23CSED
    RG23CAED
    PLABED
    PLASED
    PLAAED
    PLACESS
    RG23AECS
    RG23CECS
    PLAECS
    RG23AAT1
    RG23CAT1
    PLAAT1
    3. Enter Date is one day before of the opening. For e.g. if opening date is 01.04.2008 then enter it in 31.03.2008
    Then go for J2I5 - Extract and J2I6 - Print Utility
    use following
    http://help.sap.com/bp_bblibrary/470/Documentation/J33_BPP_32_CHEM_EN_IN.doc
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/18/8e113999724854e10000000a11405a/content.htm
    Reefer this link for complete Excise transactions
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/09/ebf138cdd78a4be10000000a114084/frameset.htm
    Re: Excise -initial upload
    Hopefully this will helpfull to resolve your answer.
    Thanks & regards,
    Pankaj Mahajan

  • Opening Balances for Previous Periods

    Hi Experts,
    There is a client requirement of entering opening balances for GL for previous periods before going live.
    eg it is required to have OB for 2006,2007 and 2008 before live transactions are entered into the system.
    Please enlighten on how to carry out this.
    Regards,
    Asap

    Hi Asap,
    You could only have one OB for one account.  If those OB for different years are for different accounts, it is ok.  Otherwise, you have 2006 OB only. You may create JE to get something like OB for 2007 and 2008.
    Thanks,
    Gordon

  • Problem in getting opening balance for multiple GL Account

    Hi,
    I am working on a  Trail Balance Report in which i am trying to fetch the data for the opening balance for multiple GL Accounts but it is not coming accurate.. Here is the link to the code which i am using currently right now:-
    http://docs.google.com/View?id=dfxswwff_13fgpdcbgt
    here i am showing the logic for the data of previous year only... i.e. data from begining to 1 day less of the date-low.

    Hi,
    It is a tranparent table which is getting data from the 2 other tables,the filling of this table is right. The execution of this query is right in the program but the problem comes when it is trying to calculate the opening balance for the respective GL Account present in the query it is not doing it. i.e. if there are 2 gl account ids having 3 rows of data each it is not calculating the of it in a single row.. i hope it is clear now...

  • How to enter opening balance for GL A/C(Ex. Bank A/C, Cash A/C, Vendor A/C)

    Hi Expert,
    How to enter opening balance for last year to closing balance to this year opening balance explain deeply helpful for me Thanks in advance.
    Example
    All Bank A/C, Cash Book, Vendors, Customers, like that how to enter closing to opening balance.
    With Warm regards,
    Selva

    Dear,
    As per SAP standard there is no need to carry forward the balances as the system will do a virtual carry forward into next year opening without creating any FI documents.
    If your business scenario demands then you can use the transaction code F-02 for posting a carry forward balances, this will not effect any of your balances but only creates a FI document.
    If your R3 version is SAP ECC5 or 6 then use the transaction code FAGLGVTR

Maybe you are looking for

  • Trying to restore Macbook Pro back up from Time Machine.

    Trying to restore MacBook Pro from backup thru Time Machine. Got message asking "Do you want to replace your current copy of "Desktop" with the one your're restoring? "Desktop is required by OS X. When I select REPLACE, get window stating "Operation

  • Oracle E-Business 12.1.3/11.2.0.3 Stats Gathering

    Hi forum I am running schema stats (weekly) using the Gather Schema Stats Conc job. This is done for all schema's as well as the custom schema we use. Should I be running any additional stats gathering for SYS and SYSTEM tables / indexes? Does anyone

  • Have error in my program!

    WHEN I COMPILE THE PROGRAM HAVE THIS MESSAGE: NOTE: Grab.java uses or overrides a deprecated API. Note: Recompile with-depreaction for details. AND I COMPILE AGAIN WITH -depreaction THEN have this message: Grab.java :44 : warning: readLine() in java.

  • Disk Utility won't run with Snow Leopard

    I updated to Snow Leopard 10.6.2 and now when I run Disk Utility.app it says that it is version 11.1 and will not run. I'm not sure why this app didn't update at the same time. Where can I download 11.5 Disk Utility? Thanks!

  • Problem with developer key

    Hi, I am a MiniSAP user. I wanted to write ABAP's programs but I cant change repository objects. I followed the instructions on www.sap.com/minisap with expanding my license and it worked. However as I enter developer key from that site (it is alread