Opening balance differs  with closing balance

Hi
I have a scenario where opening and closing balance (Previous period/year)of g/l accounts are different  (for differernt currencies except company code currencies) .It is a customized report where the system is taking the value of recently maintained  Exchange rate for calcualting opening balance (based on sy- datum ) while closing balance is calculated with the formula (Opening + Debit Amt  - Credit Amt.)
Requirement is that closing balance should be  equal to opening balance of next Period /Year
Kinldly let me know how to solve this problem
Thanks in advance
Regards
Praveen P C

Hi Milind,
Thanks for the valuable reply.
Through debugging I  came to know what you have mentioned. But, in my case, the reason why it fetches the wrong exchange rate, lies with the valid_from field in T_curr table. The dates are stored in a different format(Inverted Date) in the T_Curr table. Is there any way that I can directly bring the closing balance of the previous period/year as the opening balance of the next period ?
Regards,
Praveen P C

Similar Messages

  • Opening Balance differes from closing balance

    Dear Friends,
    Thanks for your mails but i am unabale to open the below sap note
    Please see the SAP Note : 402917.
    How to open the note can anyone guide me ? Please
    Thanks in advance.
    With regards
    Anil

    Hi,
    This SAP Note is not a source code correction, so you don't need an ABAPer's help.  Open the foll. link to see the text of the note (you will need a S user ID and password).
    https://service.sap.com/sap/support/notes/402917

  • QUERY FOR CUSTOMERS FULL DEBIT AND CREDIT WITH CLOSING BALANCE

    Hi Friends,
       I need query for CUSTOMERS FULL DEBIT AND CREDIT WITH CLOSING BALANCE for selection criteria from date and to date.
       I know the Trial Balance Report will sort out this issue... but i need routeday wise report
    1. Business Partner Master Data - i created one UDF field called U_Routeday (MONDAY, TUESDAY, WEDNESDAY,THURSDAY,FRIDAY)
    2. The query should be like selection criteria 
                                  - Routeday [%0]
                                  - Posting Date [%1]                           
                                  - Posting Date [%2]
    CardCode
    Debit
    Credit
    Balance
    D10503
    25031.50
    24711.50
    2962.00
    D10641
    5466.00
    7460.00
    285.00
    D10642
    2866.00
    142.00
    give any helpful query ASAP... Thanks in advance

    Hi,
    Try this query:
    Declare
    @fromdate as datetime
    Declare
    @Todate as datetime
    Declare
    @Code as nvarchar(25)
    set
    @fromdate = ( select min(Ta.[RefDate]) from OJDT ta where
    Ta.[RefDate] >= [%0])
    set
    @Todate = ( select max(Tb.[RefDate]) from OJDT tb where Tb.[RefDate]
    <= [%1])
    set
    @code = (select max(Tc.[ShortName]) from JDT1 tC where Tc.[ShortName]
    = [%2])
    SELECT
    [Name] as AcctName, [Jan]= sum([1]), [Feb]= sum([2]), [Mar]=
    sum([3]), [Apr]= sum([4]),  [May]= sum([5]), [June]= sum([6]),
    [July]= sum([7]), [Aug]= sum([8]), [Sept]= sum([9]), [Oct]=
    sum([10]), [Nov]= sum([11]), [Dec]= sum([12]), total = sum
    (isnull([1],0)+ isnull([2],0) + isnull([3],0) + isnull([4],0) +
    isnull([5],0) + isnull([6],0) + isnull([7],0) + isnull([8],0) +
    isnull([9],0)+ isnull([10],0) + isnull([11],0) + isnull([12],0))
    from
    (SELECT
    T0.[ShortName] as Name, sum(T0.[Debit]-T0.[Credit]) as T,
    month(T2.[RefDate]) as month FROM JDT1 T0  INNER JOIN OACT T1 ON
    T0.Account = T1.AcctCode INNER JOIN OJDT T2 ON T0.TransId =
    T2.TransId WHERE T2.[RefDate] between @fromdate and @todate and
    T0.[ShortName]  = @code  GROUP BY T0.[ShortName],T2.[RefDate] ) S
    Pivot
    (sum(T)
    For  Month IN ([1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12])) P
    group
    by [Name],[1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12]
    Let me know your result.
    Thanks & Regards,
    Nagarajan

  • Recommended configuration for load balanced Portal with load balancer, multiple gateways and multiple servers.

    Does anyone have a recommended network, hardware and software configuration guide for a Portal installation running with multiple gateways load balanced (ie one URL) that talk to multiple servers?

    David,
    We've used Resonate (software) to load balance the gateways. It allows
    you to group all the gateways under 1 virtual URL and load balance the
    incoming connections over each gateway depending on the rules that you
    define in Resonate. Look in the SUN portal whitepapers there is one that
    talks about it specifically.
    As far as load balancing the calls to the portals, the gateways will
    automatically load balance across all the portals that they know about
    using a simple round-robin rotation. You may be able to use Resonate in
    front of the portals but you may need to activate persistance within
    Resonate to ensure that the user always ends up on the portal that he
    established his initial connection on (if you want that), check with Sun
    on this one.
    David Broeren wrote:
    Recommended configuration for load balanced Portal with load balancer,
    multiple gateways and multiple servers.
    Does anyone have a recommended network, hardware and software
    configuration guide for a Portal installation running with multiple
    gateways load balanced (ie one URL) that talk to multiple servers?
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Generation of balance sheet with closing exchange rate

    Hi all
    We have been using INR as the local currency and USD as the functional currency
    all the reports are generated in INR and USD.
    And  as of now monthly average rate is been entered in the exchange rate table master.
    But for audit purpose we need to generate balance sheet with the closing rate. how can we do the same in sap business one
    Regards
    Farheen

    Hi,
    Just use "Conversion Differences" function in Financials Module, this will convert INR into USD by posting adjustment JE.
    This function is relevant for companies whose defined system currency is different from the local currency. SAP Business One recommends making journal entries automatically for differences in system currency. Use the Conversion Differences function to make adjustments between the account/business partner balance in the system currency and the balance in the local currency.
    Hope this helps,
    TVSon

  • SQL statement running balance query with previous balance taken into account

    Hi Guys
    I have a SQL statement which caclulates the running balance
    for a list of transactions in a transactions table. This SQL
    statement is as follows:
    SELECT transID, debit, credit,
    (SELECT SUM(debit-credit)
    FROM transactions as D1
    WHERE D1.transID <= D0.transID) AS balance
    FROM transactions AS D0
    The only problem I'm having is that I have to display
    transactions between a particular date range. I have for eg.
    transID, transDate, debit, credit fields in my db.
    However the problem I'm having is that when the transaction
    records are pulled out for the specified date range the balances
    are only calculated for those records. I need someway of having a
    balance b/f (brought forward) so that the selected records use that
    as a 'starting' balance and then calculate the running balance as
    normal.
    Any easy solutions?
    Many, many thanks for your help in advance.
    All the best
    Wesley

    You'd need to determine the b/f then apply it against the
    transaction records when they are pulled for a date range. So if
    the date range is
    Feb 1st, 2009 -> Feb 28th, 2009
    You'd need to also get the previous balance in a separate
    query, then use it to correctly display the running balance when
    you output the date range.
    I suppose a simpler way involving a little more DB work (and
    possibly lots of coding) is to store the current balance as well
    with each transaction; then when performing a date range you'd have
    the balance as well and not have to calculate it on the fly.

  • How to close open hi-hat with closed hat (Ultrabeat)

    I loaded the 2 samples but can figure out how to mute one sound with the other.....help
    thanks in advance

    hi peter
    the group setting is small and hard to see, and easy to miss. looking at ultrabeat, go all the way to the right of center, you'll see ther name Ultrabeat, below is a round dial and below that is the settings for trigger and group. Put all your hats in the same group and next note cuts off the first, closed hat closes the open hi hat

  • Open Published Project with Closed Search Frame

    Hi there,
    I'm using RH 8 and generating Webhelp Pro.  I have turned off the navigation pane and have created my own TOC.  I created my own window for RH to open in and I only want to use the search feature.  What I'm trying to do is when I open RH in IE, Firefox, or other browsers I want the search frame to be closed and only open when the user clicks the search button.  I'm assuming it is in the JavaScript somewhere but JavaScript is not my strong suit and I would struggle to find the reference to the code.  I have displayed a couple of pictures of what I'm trying to do.
    This is how it opens right now.
    This is how I would like it to open.
    Any help would be greatly appreciated.
    Thank You,
    Ian

    Hey Nick
    Thanks
    I had no idea that the FCP on the new I mac was not in the application folder. So I checked it out, and sure enough it was only on the desktop. So I dragged it to the applications folder and checked for updates. After updating and restarting the Mac, wala Im good to go.
    Jesk!
    That was simple hard.
    Thanks for helping me finnally get it.

  • Intersperse daily totals with opening and closing balance

    Hi All
    Suppose we have a data set (simplified from my query but will suffice)
      select 1 as daynum, 'CR' as trantype, 200 as amount from dual union all
      select 1 as daynum, 'DR' as trantype, -300 as amount from dual union all
      select 2 as daynum, 'CR' as trantype, 800 as amount from dual union all
      select 2 as daynum, 'DR' as trantype, -200 as amount from dual union all
      select 3 as daynum, 'CR' as trantype, 900 as amount from dual union all
      select 3 as daynum, 'DR' as trantype, -500 as amount from dual
    )How would you go about getting a result set that looks like:
    1, Opening Balance, 0
    1, CR, 200
    1, DR, -300
    1, Closing Balance, -100
    2, Opening Balance, -100
    2, CR, 800
    2, DR, -200
    2, Closing Balance, 500
    3, Opening Balance, 500
    3, CR, 900
    3, DR, -500
    3, Closing Balance, 900
    4, Opening Balance, 900
    4, Closing Balance, 900
    I'm thinking:
    generate an arbitrary number of rows for the number of days I want to report over (in this case, 4)
    cross join these with 2 row set of constants "opening" and "closing" balanace
    -> I have now an opening and closing balance row for every day
    union it with my data so that "opening/CLosing balance" is a type too (and nulls in the amount column)
    case when the type is like '%Balance' then sum(amount) over(order by day, orderkind rows unbounded preceding) else amount
    (orderkind is a constant 0 for opening, 1 for all the datarows, 2 for closing)
    Is it right?
    Is there a better way?
    Edited by: charred on Apr 1, 2010 7:03 AM

    Unless I'm missing something, Tom's answer won't work for more than 4 days?
    with t as
        select 1 as daynum, 'CR' as trantype, 200 as amount from dual union all
        select 1 as daynum, 'DR' as trantype, -300 as amount from dual union all
        select 2 as daynum, 'CR' as trantype, 800 as amount from dual union all
        select 2 as daynum, 'DR' as trantype, -200 as amount from dual union all
        select 3 as daynum, 'CR' as trantype, 900 as amount from dual union all
        select 3 as daynum, 'DR' as trantype, -500 as amount from dual union all
        select 4 as daynum, 'CR' as trantype, 900 as amount from dual union all
        select 4 as daynum, 'DR' as trantype, -500 as amount from dual union all
        select 5 as daynum, 'CR' as trantype, 900 as amount from dual union all
        select 5 as daynum, 'DR' as trantype, -500 as amount from dual
      data
      as
      ( select daynum, r
          from (select level daynum from dual connect by level <= 4),
                   (select level r from dual connect by level <= 2 )
      select daynum,
             r,
             ttype,
             amt,
             case when ttype in ( 'close', 'open' )
                  then sum(samt) over (order by daynum, r)
              end theamount
        from (
      select data.daynum,
             data.r,
             case when (nvl(t.trantype,'CR') = 'CR' and data.r = 1 )
                  then 'open'
                  when (nvl(t.trantype,'DR') = 'DR' and data.r = 2)
                  then 'close'
                  else t.trantype
             end ttype,
             case when (t.trantype = 'CR' and r = 2) or (t.trantype = 'DR' and r=1)
                  then t.amount
              end amt,
             case when (t.trantype = 'DR' and r = 2)
                  then sum(case when r=1 then t.amount end) over (partition by data.daynum)
                  else 0
              end samt
      from   t, data
      where data.daynum (+) = t.daynum
      order by daynum, r, decode( ttype, 'open', 1, 'CR', 2, 'DR', 3, 'close', 4 );
        DAYNUM          R TTYPE        AMT  THEAMOUNT
             1          1 open                      0
             1          1 DR          -300          
             1          2 CR           200          
             1          2 close                  -100
             2          1 open                   -100
             2          1 DR          -200          
             2          2 CR           800          
             2          2 close                   500
             3          1 open                    500
             3          1 DR          -500          
             3          2 CR           900          
             3          2 close                   900
             4          1 open                    900
             4          1 DR          -500          
             4          2 CR           900          
             4          2 close                  1300
                          CR                        
                          DR  Here's a solution using partitioned outer join:
    with my_tab as (select 1 as daynum, 'CR' as trantype, 200 as amount from dual union all
                    select 1 as daynum, 'DR' as trantype, -300 as amount from dual union all
                    select 2 as daynum, 'CR' as trantype, 800 as amount from dual union all
                    select 2 as daynum, 'DR' as trantype, -200 as amount from dual union all
                    select 3 as daynum, 'CR' as trantype, 900 as amount from dual union all
                    select 3 as daynum, 'DR' as trantype, -500 as amount from dual union all
                    select 4 as daynum, 'CR' as trantype, 900 as amount from dual union all
                    select 4 as daynum, 'DR' as trantype, -500 as amount from dual union all
                    select 5 as daynum, 'CR' as trantype, 900 as amount from dual union all
                    select 5 as daynum, 'DR' as trantype, -500 as amount from dual),
          dummy as (select 1 id, 'Opening Balance' descr from dual union all
                    select 2 id, 'CR' descr from dual union all
                    select 3 id, 'DR' descr from dual union all
                    select 4 id, 'Closing Balance' descr from dual)
    select mt.daynum,
           d.descr,
           decode(d.id, 1, 0,
                        2, amount,
                        3, amount,
                        4, amount + lag(amount, 2) over (partition by mt.daynum order by d.id)) amount
    from   my_tab mt
           left outer join dummy d partition by (id, descr) on (mt.trantype = d.descr)
    where  (d.id = 1 and mt.trantype = 'CR')
    or     (d.id = 2 and mt.trantype = 'CR')
    or     (d.id = 3 and mt.trantype = 'DR')
    or     (d.id = 4 and mt.trantype = 'DR')
    order by mt.daynum, d.id;
        DAYNUM DESCR               AMOUNT
             1 Opening Balance          0
             1 CR                     200
             1 DR                    -300
             1 Closing Balance       -100
             2 Opening Balance          0
             2 CR                     800
             2 DR                    -200
             2 Closing Balance        600
             3 Opening Balance          0
             3 CR                     900
             3 DR                    -500
             3 Closing Balance        400
             4 Opening Balance          0
             4 CR                     900
             4 DR                    -500
             4 Closing Balance        400
             5 Opening Balance          0
             5 CR                     900
             5 DR                    -500
             5 Closing Balance        400ETA: And, if there can be any number of CR or DR rows:
    with my_tab as (select 1 as daynum, 'CR' as trantype, 200 as amount from dual union all
                    select 1 as daynum, 'DR' as trantype, -300 as amount from dual union all
                    select 1 as daynum, 'CR' as trantype, 400 as amount from dual union all
                    select 1 as daynum, 'DR' as trantype, -500 as amount from dual union all
                    select 2 as daynum, 'CR' as trantype, 800 as amount from dual union all
                    select 2 as daynum, 'DR' as trantype, -200 as amount from dual union all
                    select 3 as daynum, 'CR' as trantype, 900 as amount from dual union all
                    select 3 as daynum, 'DR' as trantype, -500 as amount from dual union all
                    select 4 as daynum, 'CR' as trantype, 900 as amount from dual union all
                    select 5 as daynum, 'CR' as trantype, 900 as amount from dual union all
                    select 5 as daynum, 'CR' as trantype, 200 as amount from dual union all
                    select 5 as daynum, 'DR' as trantype, -500 as amount from dual union all
                    select 6 as daynum, 'DR' as trantype, -200 as amount from dual),
          dummy as (select 1 id, 'Opening Balance' descr from dual union all
                    select 2 id, 'CR' descr from dual union all
                    select 3 id, 'DR' descr from dual union all
                    select 4 id, 'Closing Balance' descr from dual)
    select mt.daynum,
           d.descr,
           mt.trantype,
           decode(d.id, 1, 0,
                        2, amount,
                        3, amount,
                        4, sum(decode(d.id, 1, 0, 4, 0, amount)) over (partition by mt.daynum)) amount
    from   (select mt1.*, row_number() over (partition by mt1.daynum order by mt1.trantype) rn
            from   my_tab mt1) mt
           left outer join dummy d partition by (id, descr) on (mt.trantype = d.descr)
    where  case when d.id = 1 and rn = 1 then 1
                when d.id = 2 and mt.trantype = 'CR' then 1
                when d.id = 3 and mt.trantype = 'DR' then 1
                when d.id = 4 and rn = 1 then 1
                else 0
           end = 1
    order by mt.daynum, d.id;
        DAYNUM DESCR           TRANTYPE     AMOUNT
             1 Opening Balance CR                0
             1 CR              CR              400
             1 CR              CR              200
             1 DR              DR             -300
             1 DR              DR             -500
             1 Closing Balance CR             -200
             2 Opening Balance CR                0
             2 CR              CR              800
             2 DR              DR             -200
             2 Closing Balance CR              600
             3 Opening Balance CR                0
             3 CR              CR              900
             3 DR              DR             -500
             3 Closing Balance CR              400
             4 Opening Balance CR                0
             4 CR              CR              900
             4 Closing Balance CR              900
             5 Opening Balance CR                0
             5 CR              CR              900
             5 CR              CR              200
             5 DR              DR             -500
             5 Closing Balance CR              600
             6 Opening Balance DR                0
             6 DR              DR             -200
             6 Closing Balance DR             -200Edited by: Boneist on 16-Apr-2010 17:10

  • GL Account opening balance & closing balance

    Hi Experts,
    We have loaded the infocube 0figl_c10.
    Our report requirement is as follows:
    Input variables:
    Fiscal year: 2010
    Company code:xxxx
    GL Accoutn: X
    Expected Output
    000.2010 - Opening balance, Debit, Credit, Closing balance
    001.2010 - Opening balance, Debit, Credit, Closing balance
    002.2010 - Opening balance, Debit, Credit, Closing balance
    003.2010 - Opening balance, Debit, Credit, Closing balance
    004.2010 - Opening balance, Debit, Credit, Closing balance
    005.2010 - Opening balance, Debit, Credit, Closing balance
    006.2010 - Opening balance, Debit, Credit, Closing balance
    007.2010 - Opening balance, Debit, Credit, Closing balance
    008.2010 - Opening balance, Debit, Credit, Closing balance
    009.2010 - Opening balance, Debit, Credit, Closing balance
    010.2010 - Opening balance, Debit, Credit, Closing balance
    011.2010 - Opening balance, Debit, Credit, Closing balance
    012.2010 - Opening balance, Debit, Credit, Closing balance
    013.2010 - Opening balance, Debit, Credit, Closing balance
    014.2010 - Opening balance, Debit, Credit, Closing balance
    015.2010 - Opening balance, Debit, Credit, Closing balance
    016.2010 - Opening balance, Debit, Credit, Closing balance
    I tried by keeping offsets but unable to get the exact figure in the output.
    If anyone can share some thoughts it would be helpful.
    Regards,
    Bhadri M.

    Hi Bhadri,
    In your cube you will have a key fig 0BALANCE which is a calculated value. The calculation could be found in the start routine in the flow. The balance in a particular month will be carried forward in the logic. You can do the following....
    I'm not sure about posting periods 000, 013 to 016....what balances needs to be carried forward to these. May be you can check with the functional folks.
    Create 16 RKFs, take key fig and restrict it with 0FISCYEAR (choose user input variable on it) and 0FISCPER3 (posting period).
    For 001.2010:
    Opening balance - Take 0BALANCE key fig and restrict with 012 (0r 016, check with functional. I think it should be 012) for 0FISCPER3 and put offset 0FISCYEAR variable - 1.
    Debit/Credit - Take 0DEBIT/0CREDIT key fig and restrict with 001 for 0FISCPER3 and 0FISCYEAR variable.
    Closing balance - Take 0BALANCE key fig and restrict with 001 for 0FISCPER3 and 0FISCYEAR variable.
    For 002.2010:
    Opening balance - Take 0BALANCE key fig and restrict with 001 for 0FISCPER3 and 0FISCYEAR variable.
    Debit/Credit - Take 0DEBIT/0CREDIT key fig and restrict with 002 for 0FISCPER3 and 0FISCYEAR variable.
    Closing balance - Take 0BALANCE key fig and restrict with 002 for 0FISCPER3 and 0FISCYEAR variable.
    Similarly create other RKFs.

  • About inventory opening balance & closing balance

    hi all,
    i want to opening balace and closing balance date wise in my query.
    how to do it?
    regards,
    chetan.

    Hi jeyakanthan,
    System generated report has diff format.
    Client want diff format thats why i m designing new query in which i want to add this item opening balance and item closing balance along with other details.
    Regards,
    Chetan.

  • Update Next Shift opeing balance with current shift closing balance

    hi,
     I have an aggregation table which have shiftwise, productwise, warehouse wise stock data. i want update the next shift opening balance with current  shift closing balance.
    My table is
    ID          ShiftDate         ShiftNumber   ProductID   OpeningBalance  Inward  Outward  ClosingBalance WarehouseID
    1             2014-07-02         1                  1                  
    0                   50           20                
    30                1
    2             2014-07-02          2                 1                  
    50                   0              0                
    50               1 
    Actually my aggregation is already run and update the table like above. But after that user done a transaction and accounted in the first shift. So i need to reupdate the data after the accountshift. I update the outward and closing balance so the closing
    balance of first shift is correct.
    Now i want update opening balance of second shift needs to be updated based on the corresponding closing balance of the shift 1.
    Please guide me for this. I can pass ShiftData and ShiftNumber as '2014-07-02' and 1 respectively.

    Which is sql server version you'e using? If its sql 2012, you can use PARTITION BY with RANGE BETWEEN for this. 
    Otherwise you need to use a correlated subquery logic using APPLY
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Opening and Closing Balances -SAP

    Hi experts
    please explain me about the Opening and Closing Balance in SAP? and what is the use of Opening and closing Balance?
    regards
    anand

    Hi Ananda
    opening balance : when  ever u run any financial report for example a  ledger profit and loss account then it has a opening balance and a closing balance
    say for example if we see the balance of our cash account in sap at end of the day today then we can consider the balance as x amount as closing balance and when again tomorrow there is some transaction in the same account than this x Amount is considered as the opening balance for tomorrows date
    Hope this would suffice your Concern
    Regards,
    Manish

  • Trial Balence amount is different with query of JDT1 amount

    Hi all,
      I try to get summary from JDT1 for a period, but I find the debit amount is different with Trial Balance. does anybody knows what's happen ? please help.
    the queries is this :
    SELECT  sum(T1.[Debit]), sum(T1.[Credit]) FROM OJDT T0  INNER JOIN JDT1 T1 ON T0.TransId = T1.TransId INNER JOIN OACT T2 ON T1.Account = T2.AcctCode WHERE T2.[FatherNum] = 'A01' and  T0.[DueDate] >= '1/1/09' and  T0.[DueDate] <= '12/31/2009'

    Hi,
    Welcome you post on the forum.
    Try tis:
    SELECT sum(T1.Debit), sum(T1.Credit) FROM OJDT T0 INNER JOIN JDT1 T1 ON T0.TransId = T1.TransId INNER JOIN OACT T2 ON T1.Account = T2.AcctCode WHERE T2.FatherNum = 'A01' and T0.RefDate >= '1/1/09' and T0.RefDate <= '12/31/2009'
    Thanks,
    Gordon

  • EBS Closing balance not matching with opening balance.

    Hi,
    The Scenario: The first file for EBS is uploaded. The Second file opening balance did not match with the first files closing balance.
    As per my understanding the system throws an information message that FB729 that the closing balance did not match with the opening balance. The docuemnts also gets posted
    Question: If the bank sends the corrected file after uploading the first error statement how will we update the corrected account statement with appropriate opening balace.
    Thanks,
    Raja.

    Hi Taro,
                 Thanks for your reply. Infact Initially I was of the same opinion that if there is inconsistency in the closing and opening balance SAP would not process the statement. Thanks for your investigation the sysytem is behaving differently for different formats.
                   The SAP note 947857 only deals with a particular scenario where there is no inconsistency between closing balance and opening balance but the error comes up.
                   I will try to explain why I am asking about a functionality which updates the opening and closing balances of a statement based on our past experiences:
                    If we receive a wrong statement with wrong opening balance from the bank it would take us two weeks to convince the bank  about the wrong opening balance and subsequently bank sending the corrected account statement. If the FB729 message is an error message then there is no option but to wait till two weeks to upload the next statements.
                   So I want SAP  to upload the wrong statement and the subsequent statements as they come form bank. To correct the opening and closing balances i want to check if there is some statndard functionality which can do this. Rather than Table update as you suggested I would prefer a custom program for this functionality if standard does not allow.
                    If the difference between closing and opening balance is due to a missing statement then SAP  has suggested a note "SAP Note 1025077 - Problem with uploading out-of-sequence BAI2 bank statement" which actually allows the out of sequence statements to be uploaded.
                     Finally I would prefer the option of the wrong statements to be uploaded into SAP in the order they have come from the bank and subsequent corrections to the statements as approved by the bank.
    Thanks,
    Raja.

Maybe you are looking for