Script Logic to carry forward closing balance to opening balance

Dear BPC expert,
I'm new in BPC. I would like to have a logic script, as below.
2008 -> Dec -> Closing1 = 2009 -> Jan -> Opening1
2008 -> Dec -> Closing2 = 2009 -> Jan -> Opening2
2008 -> Dec -> Closing3 = 2009 -> Jan -> Opening3
2009 -> Jan -> Closing1 = 2009 -> Feb -> Opening1
2009 -> Jan -> Closing2 = 2009 -> Feb -> Opening2
2009 -> Jan -> Closing3 = 2009 -> Feb -> Opening3
2009 -> Feb -> Closing1 = 2009 -> Mar -> Opening1
2009 -> Feb -> Closing2 = 2009 -> Mar -> Opening2
2009 -> Feb -> Closing3 = 2009 -> Mar -> Opening3
Can anyone assis and provide me the code please, as I'm not familiar on logic scripting in BPC.
Thanks.
Regards,
Clarissa Chung

I don't think the carry-forward rules will work for you, for the reason I mentioned earlier. Focus on the account transformation rule.
You don't really need to worry about using a specific package to execute the logic. To test it out in a DEV environment, you can just use the default logic and add in the syntax to execute the account transformation rule:
*RUN_STORED_PROCEDURE=SPRUNCALCACCOUNT([LEGALAPP], [ACTUAL], [USD],
[%SCOPETABLE%], [%LOGTABLE%],[Transformation group],[MAXSTATUS])
If you want to run this as a batch logic, then copy any of the existing packages that run logic (FX Trans is always a good starting point), add it using the Organize Package List, and on the advanced screen, modify the script to point to MyNewLogic.LGF file instead of the FXTrans.lgx.

Similar Messages

  • Carry forwarding the closing  balance as opening balance

    hi,
    i need  to carry forward the closing balance of the 1 month to the opening balance of the next month. how to do this in the query.?

    Hi Enthu,
    I think, you could use data function of a formula.
    You will have to create a RKF for closing balance of previous month.
    Try the SUMCT<Closing balance of prev per> in the opening balance column of this month.
    You can check the link below for further information
    http://help.sap.com/saphelp_nw70/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    However, determining all opening balances by carrying forward closing balances in the query, I think, is not a good idea, since this would mean that you have to run the query from the timepoint the data was first reported. This means querying and reporting a lot of data. I would rather suggest you to have another Cube may be over this DSO and do the carry forward in modeling.
    Hope it helps,
    Best regards,
    Sunmit.

  • 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

  • Logic for carry forward of previous stock to current period stock.

    Hi Experts,
    Client is using already MC.9 for see the stock analysis report, however as per there requirement we are exploring BOM as well as fetching quantity from table level as well. in my report I am experiencing  difficulty to carry forward previous period closing stock quantity to current period stock quantiy, if there is no received for current period, however the same is happens in MC.9
    Could any one tell me what is the logic behind MC.9 which is do carry forward previous period closing  stock to current period stock quantity in report.
    As per the requirement I am using S031, S032,S033, however unable to get logic for carry forward the previous month stock quantity to current month.
    have a requirement of creating a report of showing material stock period wise for each plant in below mention format.
    Header 1
    Header 2
    Header 3
    Header 4
    LFGJA/LFMON
    ROH (MT)
    HALB (MT)
    FERT (MT)
    11.2013
    100.000
    121.000
    121.00
    12.2013
    50.000
    12.000
    123.00
    01.2014
    23.231
    .23.234
    45.342
    02.2014
    23.231
    34.094
    45.098
    03.2014
    34.098
    98.983
    00.000
    04.2014
    00.000
    69.093
    98.098
    05.2014
    00.000
    89.098
    00.000
    For Example Break up of ROH material plant wise in below mention format.
    LFGJA/LFMON
    WERKS
    MENGE (MT)
    11.2013
    P001
    30.000
    11.2013
    P002
    50.000
    11.2013
    P003
    20.00
    Thanks in advance,
    SKN

    Hi,
       The last period closing stock = current period opening stock. You may get the details from MBEWH and S032 tables. Refer the doc: Material Stock and Valuation History tables - how to read them
    Regards,
    AKPT

  • Mismatch between Closing Balance and Opening balance in FAGLB03

    Hi Guys,
    There is a mismatch for GL account balance between the closing ( 2008 ) and opening balance ( 2009 )
    in the transaction FAGLB03.
    However for the same GL account, the closing balance for year 2008 and opening balance for year 2009 are matching.
    Please suggest why there is a discrepancy.
    Thanks
    Srikanth.

    Hi
    but my question is how is the system showing some amount in the Balance carry forward row.Though the amount is not matching it is showing some amount.
    Where did it pick this amount from?
    Thanks,
    Srikanth.

  • 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

  • Script logic not working for GL account with Zero balance

    Dear Experts,
    I have a scenario where the GL account balance in ECC is 0  and when a script logic runs in BPC the same should capture a closing balance as "1".
    Though I have written the below logic, this is not getting executed and writing back the value as "1".
    Kindly help me on the same.
    *WHEN ENTITY
    *IS "ABC"
    *WHEN ACCOUNT
    *IS "20300000"
    *REC(EXPRESSION = 11, ACCOUNT = 20300000,FLOW = F99, ENTITY = ABC, PROFITCENTER  = 130010 ,  INTERCO = I_NONE , CONSOSCOPE = G_NONE, CURRENCY = LC ,CATEGORY = ACTUAL, AUDITID = INPUT)
    *ENDWHEN
    *ENDWHEN
    *COMMIT
    Regards,
    Shilpa

    Hello Vadim Kalinin,
    Thanks for the very swift help.
    Merger of the client happened in 2007. ECC is using the " 20300000- change in fair value " account to record both pre-acquisition and post-acquisition values.
    Since the treatment of pre-consolidation and post consolidation reserves is different the split of the amount between pre and post-acquisition values has to be done. For the same post acquisition value is reduced from this account using a script logic as below.
    WHEN FLOW
    *IS "F99"
    *WHEN ENTITY
    *IS "ABC"
    *REC(EXPRESSION = ([ACCOUNT].[20300000] -3258603),ACCOUNT = 20300000,FLOW = F99,  INTERCO = I_NONE , CONSOSCOPE = G_NONE ,CURRENCY = LC ,CATEGORY = ACTUAL )
    This logic worked when the account has a figure, but in July 2014 in ECC the account had a transaction and the balance has become Zero. Until this account has a figure this pre acquisition logic is not working.
    For making this work, I am trying to write a new logic to make the balance of this account as "1" in BPC through the script logic.
    Kindly suggest me on the same.
    Regards,
    Shilpa

  • Closing Balance and Opening Balance is difference

    Dear Expret,
    we have post some new Opening entries in last year (In current year) FB01. Document showing post in last year. Problem mentioned belows:-
    1. Without carry-forward the GL Balance in next year. How can it show the next year opening balance.
    2. Only New entry show in next year (Rs. 50000/=). Both entries showing in retained earing accounts also.
    S. No.   GL No.                     Amount
    1.         1000001                  100000/= (Old Enrty)
    2.         1000001                    50000/= (New Entry)
    Please guide me for solve this problem
    (CSB)

    Hi,
    Somes after year end for audit / management adjustment entries postings done with previous year.
    Execute N no of times Balance carry forward T.Code: FAGLGVTR  until you get your closing balances & opening balances are the same. it is not harm to execute again & again.
    up to 4.7EE for balance transfer you can use T.Code:F.16 from ECC 5 / 6 use tcode for balance transfer FAGLGVTR
    Regards,
    Viswa
    Edited by: viswanatha s on Nov 4, 2011 12:54 PM

  • BPC10NW: Error while running Balance Carry Forward

    Hi,
    I am trying to run 'Balance Carry Forward' (COPYOPENING) to copy opening balances from 2010.DEC to 2011.JAN.
    The 'Opening Balances' package fails with "RUN_LOGIC:Cannot find document/directory" error.
    The Copyopening.lgf is available and is been validated successfully.
    We have refered to the below link but still the opening balances is failing with the same error.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70657540-106d-2e10-8393-d702056767a4?QuickLink=index&overridelayout=true
    Any suggestions?
    thanks in advance,
    M.S

    Hi,
    I have found similar issues with business rules in v10.
    Can you just try to include this in Default logic and see if you can get it to run from a sent record. I know that this is not necessarily the nicest approach as you would normally like to run the package from DM, but I could not get certain things to run from DM.
    If (like me) you can get it to run via Default, you could then trigger this by sending a dummy record to a dummy account.
    I know it's not ideal but until this is fixed (I think it may be a bug) then this could be a solution.
    Let me know if this helps at all.
    Tom.

  • Carried forward balance through f.07 and ledger balance are not tallying

    Hi experts,
    When I try to execute F.07 last month (fiscal year April-March), carried forward balance and closing balance as per ledger are not matching for Customers. Could you suggest  the possible reasons?
    Thanks

    Hello,
    Maybe the mentioned SAP note is helpful for you.
    I have had a similar quesition.
    Reasons for variances at year end balance and opening balance at sub ledger account (customer, vendor)?
    all the best
    Erwin

  • Reg balance Carried forward in F.27 Accounting Statement Print

    Hi experts,
    We have generated a SAP Script for Accounting Statement print ( F.27 ) for vendors. We have used structure RF140 for
    the necessary fields. For balance carried forward, SALDO in RF140 structure( balance in document currency ) gives
    me the correct value. But i'm unable to trace whether the balance carried forward is debit or credit. How to check whether
    this balance is debit or credit.
    Thanks in Advance.
    Regards,
    Farhanaz.

    hi ,
    check tcode FK10 might help you.
    regards
    Prabhu

  • Profit center balance carry forward

    Hi,
    If i post any profit center documents after i do the balance carry forward for the profit center balance sheet accounts to the new fiscal year, will the system update the opening balance of the new fiscal year automatically or i have to re-run the balance carry forward again to update the opening balances?

    Hello,
    You can run 2KES any time. Rerun the same before closing the previous year postings in PCA.
    Regards,
    Ravi

  • Carry forward - vendor balances for special GL accounts

    Does any configuration setting exist which will carry forward the special GL transactions balances automatically to your vendor account?
    Pls advise
    thanks
    Shivaji

    Hi,
    you can simply run the SAPF010 and the balances with SL indicator will be carried forward ,  you can also check it on the log and with transaction FK10N.
    BR
    Renata

  • Carry forward balance - Go-live

    Hi,
    Would like to know more about the steps need to be taken for data migration during year end.
    System going live example : Year 2009
    AR, AP, GL, Asset all will be posted with posting date 31.12.2008
    CC and PC is in scope.
    After uploading everything, do we need to perform the below?
    1) Transfer AR/AP open items - 1KEK (This is to transfer to the correct PC, as the correct PC is posted to the migration GL account.
    Eg.
    Dr AR
    Cr Migration account with PC
    2) AR/AP Balance Carry Forward - F.07
    3) GL Balance Carry Forward - F.16
    4) PCA Balance Carry Forward - 2KES
    Any advice is appreciated. Please add on to anything which I've missed out.
    Thanks in advance!

    You may want to lock the prior year as well when ready. Assets cut over is a little more complex in your first year. There is a Transfer Balances function in config to set up the balances as well. There also a startup date. FI GL is posting the ending balances. AR and AP is loading the open items. Then run the year end carry forwards GL. AP,AR,PCA.

  • Balance Carried Forward in BPC10 NW

    Hello All
    I am trying to run the BCF program for BPC10 NW. It works in the development system but not in the QA system which is a direct copy of the config for both masterdata and settings. There is  data to be carried forward so I am at a loss to understand why there is no carryforward. Any ideas guys apart from config??

    Hi,
    As long as both the Document and Local currencies are same, the fields
    "Balance Carried Forward in Document Currency"
    and
    "Balance Carried Forward in Local Currency"
    are same.
    So first check both the currencies are same or different.
    check for the WRBTR field in fi Tables LIKE BSID,BSAD this is the doc currency
    and the field DMBTR is the local currency field.
    reward if useful
    regards,
    Anji

Maybe you are looking for

  • How to use the wah pedal in L9?

    Hi there, In the new pedal board in L9 there is a couple of wah pedals. Does any one know how to use them 'real time'? May be with an expression pedal, so I won't have to automate the whole thing? Basicly I wan't to be able to play my guitar with wah

  • Block Cancellation of GR if the item have been invoice.

    Hi SAP, i would like to know, can we block the GR cancellation (mvt 102) if the item have been Invoice. i have an issue whereby item have been invoice but the user managed to do cancellation of GR. My PO is using Account Assignment F.

  • Application reverts to old form module

    On several occasions when creating an application in Forms 6i, a form module will "revert" to an previous version. Changes are made, compiled and saved and show up on the design/layout canvas, but when the form is run the previous incarnation of the

  • HELP- Connect problems

    I need help! I just bought the WRT54G router. I have everything connected correctly and I still have no internet connection. I have tried usuing the tech. support but I don't think I am doing something right. Any suggestions? Thanks!

  • Using automator as a preflighter

    i've never really used automator - but can anyone tell me if it's possible to use it to check pdf files for any RGB elements and flag these? in other words use it as a very basic preflighter? thanks very much. james b (uk)