Reg. Problem for fetching Opening Balance of an Account

Hello Friends,
In a report i hv to display the data for Opening balance of account according to input date..
so plz tell me the some FM if available for getting data fro Opening balance of an account.
its urgent
Marmik

Hi
U can use the BAPI BAPI_AR_ACC_GETOPENITEMS (for customer account) and BAPI_AP_ACC_GETOPENITEMS (for vendor account).
Anyway you should consider that Opening balance of account according to input date, are:
- The totals of all open item posted before inpu date,
- the totals of all cleared item posted before input date, but cleared after input data.
See also the BAPIs BAPI_GL_GETGLACCBALANCE, BAPI_AR_GETGLACCBALANCE and BAPI_AP_GETGLACCBALANCE.
Max

Similar Messages

  • 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...

  • Bapi for uploading opening balances for AUC

    Hi All experts,
    I want Bapi for uploading opening balances for AUC.
    Please help me its urgent.

    hi ,
    try
    BAPI_GL_GETGLACCBALANCE - closing balance of G/L account for a chosen year.
    BAPI_GL_GETGLACCCURRENTBALANCE - closing balance of G/L account for the current year
    BAPI_GL_GETGLACCPERIODBALANCES - Posting period balances for each G/L account.

  • Regarding Opening balances of GL Account as on date

    hi
    can any body give the tables name  or  FM or Bapi
    for  GLaccount opening balances as on  date or  priod.
    Regards
    Spandana

    hi
    thanks  supriya
    Spandana

  • Difference in closind balance and opening balance of GL account

    Hi,
    There is a difference in Closing balance and opening balance of GL account, which is an realisation account, is there any way to find out the reason of the difference.
    Previous year balance was transfered to this year by T f.16.
    Please support.

    HI Vikas,
    If it is not too late..check the SAP note # 176067.
    Atleast, it might help some one else working on a similar issue.
    Hope this helps.
    -Pradeep

  • Sales Order Revenue Calculation for the opening balance

    Hi
    Using SLA tables I wrote the following function to calculate the opening balance for the given period for gieven sales order. The problem is that is is very slow. How do I achieve the same result using the AR Interface Tables?
    CREATE OR REPLACE FUNCTION APPS.REV_OPENING_BAL(period_in varchar2,so_number_in varchar2)
    RETURN NUMBER IS
    rev_open_bal NUMBER:=0;
    BEGIN
    rev_open_bal:= 0;
    SELECT nvl(sum(xdl.UNROUNDED_ACCOUNTED_dr),0) - nvl(sum(xdl.UNROUNDED_ACCOUNTED_cr),0) into rev_open_bal
    FROM gl_code_Combinations c, xla_events xe, xla.xla_transaction_entities xte,
    xla_distribution_links xdl, XLA_AE_LINES xal, xla_ae_headers xah
    WHERE xah.AE_HEADER_ID = xal.AE_HEADER_ID
    AND xal.AE_HEADER_ID = xdl.ae_header_id
    AND xal.AE_LINE_NUM = xdl.ae_line_num
    AND xdl.event_id = xe.event_id
    AND xe.entity_id = xte.entity_id
    AND xe.application_id = xte.application_id
    AND xte.source_application_id = 222
    AND c.code_combination_id = xal.code_combination_id
    AND to_date( period_name, 'MON-RR' ) <= to_date( period_in, 'MON-RR' )
    AND accounting_class_Code in ('REVENUE','UNEARNED_REVENUE')
    and (SELECT interface_header_attribute1
    FROM ra_customer_trx_all
    WHERE customer_trx_id = source_id_int_1) = so_number_in;
    RETURN rev_open_bal;
    EXCEPTION WHEN NO_DATA_FOUND THEN
    rev_open_bal := 0;
    RETURN rev_open_bal;
    END APPS.REV_OPENING_BAL;
    /

    Did you figure this out?
    I am trying to write a report to reconcile the sub-ledgers to GL as part of a conversion from 11 to R12 and would like to be able to dynamically go against the various sub-ledger tables without writing a new script for each sub-ledger.
    Or some easier way.
    Any thoughts on this?
    Thanks,

  • Bapi for vendor opening balances

    Hi All,
            Can I use the bapi  " BAPI_AP_ACC_GETOPENITEMS "  to get the vendor opening balances?
    Thanks n Regards,
    Murali Krishna T

    hi ,
    try
    BAPI_GL_GETGLACCBALANCE - closing balance of G/L account for a chosen year.
    BAPI_GL_GETGLACCCURRENTBALANCE - closing balance of G/L account for the current year
    BAPI_GL_GETGLACCPERIODBALANCES - Posting period balances for each G/L account.

  • How to change the BP-customer Control Account for entering Opening Balance

    Hi experts,
    I am working on a project where I have used the segmented chart of account and segment is branch.
    Project is under SAP B1 8.8 PL 05.
    Customer has 2 branches. Now both the branch have different control account for debtors. Customer (BP) master is common for both the branches.
    Now at the time of entering BP-Customer opening balance, I do not find the provison to select/change of control account. So all the opening balance entered will go into one control account only, which is set in business partner master for particular customer.
    In SAP B1 8.8 at transaction level like Sales Invoice, there is provision to select the control account. Now I believe entering opening balance is the similar functionality as Sales Invoice and there should be provison for selection of control account to user.
    Anyboady has any Idea / work around ?
    Incase there is no provison then, I believe Product development team should take this in development of SAP B1 8.8.
    BR
    Samir Gandhi

    Hi,
    I suggest you to import BP opening balance by JE template of DWT in which you just put account code as your control segmented account and additional information in "shortname" field with customer/vendor code.
    Hope this helps,
    Son.

  • Page Breaks for Customer Open Balance Letter when printing

    Hi All,
    We are running 'Customer Open Balance Letter' report and printing the output(View Output). Which is printed irrespective of page breaks.
    I mean print is like in a single page two letters got printed, which in not expected.
    Are we missing any thing in print setup or the way of printing.
    Please let me know the possibilites of printing a letter per page or different letters printed in different pages without customization of that report.
    thanks in advance.
    Edited by: 834095 on Jun 1, 2011 2:34 AM
    Edited by: 834095 on Jun 1, 2011 2:34 AM

    What is your application release?
    What is the type of the report (text, postscript)?
    Is the issue with this specific report only? Can you reproduce the issue if you print to another printer?
    What if you download the output file to your desktop and print it, can you reproduce the issue then or it is when you print directly from the application only?
    Please post the details of the printer setup/style/driver.
    Thanks,
    Hussein

  • Template for importing Opening Balances

    How do we import opening balances of Inventory.Which is the template and any specific field which is mandatory

    Use the stocktaking template in oStockTakings folder

  • Posting opening balances to control accounts

    Hi everyone,
    I am entering the opening balances in SAP B1 2007 PL: 42 and I am unable to post the A/R and A/P balances because they are control accounts and there are transactions already posted to these accounts. I can't do a Journal Entry either.  Can anyone give me a suggestion on what i should do?
    Thanks

    Hi,
    Control accounts in Business One is only used for buisness partner transactions. Meaning, any transaction doone on the account is connected to a BP.
    If you with to post on a control account in a manual JE just press Ctrl+Tab when the account field is active in the JE screen, select the relevant BP and make your posting.
    The control account field is not displayed by default in the Je screen so you should use form settings to make it visible and active if need be.
    If the BP has more than one control account you can change from the default one that will be selected by deleting the control account on the JE line and tabing out, a screen will open with all control accounts associated to the BP.
    To post Opening Balances, use the BP option instead of the account option.
    Hope it helps,
    Jesper

  • Clearing problem for vendor open item

    while clearing open item of vendor through T-code F-44 i am facing the problem following problem
    Document splitting :-Item for clearing 1000/100020603/2006/005 not found,
    Daignosis as given in error:-document splittting cannot be performed clearing because it was not possible to find complete splitting information items to be cleared(company code 1000, doc. no.100020603, item 005). procedure as provided by the error massage is that the item  was not posted  with active document splitting. In this case this item or document would have to be migrated

    Dear Sweta,
    I think there is no such a table, as you expect, existing in SAP. As I know here are the
    most popular table about Accounting documents.
        Accounting documents
        BKPF                Accounting documents
        BSEG               item level
        BSID                 Accounting: Secondary index for customers         
        BSIK                 Accounting: Secondary index for vendors           
        BSIM                 Secondary Index, Documents for Material           
        BSIP                 Index for vendor validation of double documents   
        BSIS                 Accounting: Secondary index for G/L accounts
        BSAD               Accounting: Index for customers (cleared items) 
        BSAK                Accounting: Index for vendors (cleared items)   
        BSAS                Accounting: Index for G/L accounts (cleared items)
    If you need information about open line items of a certain day, you have to use ABAP.
    Regards.
    Maxielight.

  • Cache problem for servlet opening new browser window

    Requirement:
    I have JSP page say summary.jsp with link "print account summary"
    When user clicks on this link, new browser open with PDF document of summary.jsp
    This new browser window should not have address bar and toolbar.
    Solution:
    Servlet called PrintSummary which sets contenttype=application/pdf and sends the data to outputstream.
    href of link is
    Java script function is:
    function openWindow(url){
    window.open(url,'blank','toolbar=no')
    Problem:
    Since the URL of this new window is
    http:// host:portnumber/PrintSummary
    Even if I click the "Print summary" link for account2,
    being the same URL (http:// host:portnumber/PrintSummary) it accesses the existing page in the cache which is created for account 1.
    In href if I just use servlet url as
    I get the expected behaviour but then I don't have control on browser appearance and browser window will be with address bar and toolbar.
    The only option I could think of was changing URL as follows:
    <% String url ="javascript:openWindow('PrintSummary? var1="+ Math.random()+"')";
    So that URL is different all the time
    Is there any way to solve this problem?
    Thanks in advance
    M.

    I'd definitely try to use a Flex popup... but the
    flash.net.navigateToURL method is a simple way to open a popup
    window in a new browser. You can pass any data needed by the new
    page using the URLRequest and/or URLVariables. The URL you navigate
    to could, of course, be another Flex application if necessary. I
    use this only when I need to open a popup window on another site,
    or an HTML formatter report or something similar.
    Concerning yourself with the size of the popup window may be
    a bad design choice also. I, for example, have my browser
    configured to open all popups in a new tab regardless of sizing
    constraints imposed by the designer. If it is absolutely necessary
    for you to have control over the size of your popup window, you
    should follow the advice given by others and use a Flex
    popup.

  • Reg : SQL for fetching 10 rows incrementaly

    Hi,
    Version :10.2.0.
    For our development purpose we need to retrive minimum (10) records incrementaly by page wise, from table which have huge volume of data (may be 1 crore).
    I tried using rownum but its not efficient ...
    my query :
    SELECT * FROM (SELECT ROWNUM sno,*.table_name FROM table_name) WHERE sno BETWEEN 10 AND 20
    In the above, the inner query fetches all the records and the records are split based on the between clause and loaded in the grid....
    Is there any other efficient query or method to get this ?
    Plz advice....
    TIA,

    Try something like this:
    select *
    from (
       select t.*
       , rownum rn
       from yourtable t
       where rownum <= 20
    where rn >= 10;cheers,
    Anthony

  • Steps for Excise Opening Balance for RG1

    Hi,
    Can anybody tell me the steps involved in uploading the stock balance involved for RG1 updates.
    Rgds,
    Indrajit

    Dear Indrajit
    The following is the sequence for RG1 updation:
    1. Set the Loose pack Indicator in SE16 Table J_1IRG1BAL to P. You also have to specify the Excise Group, material Number, User Id and Time of Updation. This entry is to be done only once, the very first time.
    2. Update RG1 in J1I5. For the initial entry, specify the Posting Date and the Classification. You need to be extremely careful on the Classification type you use. If the material is coming from MB1C (Initial Stock Upload, possibly because you have uploaded the existing Stocks based on Cutover data), use ROP. If the updation is because of Production, you need to use Classification type: RMA - Receipt from manufacture". There is a rare possibility you may not see any entry for the manufactured quantity. More on this in Point No: 6
    3. Also update the outward movements of finished goods ( IDH for Domestic Sales and IWE for Exports under Bond/ IDE for Exports against payment of Duty).
    4. Extract the RG1 Register using T Code: J2I5. You must get a Green checkmark.
    5.Print the RG1 Register using J2I6.
    6. Sometimes you may not be able to view the manufactured material when you use RMA indicator in J1I5.(MIGO would have been used with movement type 101). Verify, if in Logistics-General --> Tax on Goods Movement --> India --> Business Transactions --> Incoming Excise Invoices --> Specify which movement types involve Excise Invoices, you have maintained 'RG1 Register' against Movement Types 131 and 132.
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • Concat result of a sub-select in a single field

    How can I concat all registers of a sub-select in a single field. like: SELECT DATE_MARK FROM TABLE_A WHERE COD = '123' RESULT: 200601 200605 200607 200507 How can I put that result in a single field? like this: '200601 200605 200607 200507' Thanks.

  • I have doubt in measuring magnitude and phase of a waveform

    I am not sure which block I should use instead of "Frequency Response Function" Attachments: first.vi ‏54 KB

  • Failed to issue COM RESET successfully after 3 attempts. Failing...

    Just in case anyone else has this problem, and wants to claw their eyes out. I upgraded the Hard Disk in my MacBook Pro about four days ago (the new MBP, summer 2009 with SD card). I installed a Hitachi Travelstar 7K320. It worked awesome for about f

  • Not burning 4GB disc to capacity

    Any ideas why my discs stop when half full. A 4 GB disc will only burn about 1.2 GB material. It doesn't matter if I am using iDVD or Toast. Tracy

  • Saving and printing edited projects

    Hi, I purchased Aperture 3 and am new to this software. I have worked on several pictures and got them to the place that I wanted them & have no way to save them. I have tried sending them elsewhere & to my email but the original picture is all that