HOW TO ROLLBACK ENCUMBRANCE BALANCE

제품 : FIN_GL
작성날짜 : 2003-11-24
HOW TO ROLLBACK ENCUMBRANCE BALANCE
===================================
PURPOSE
balance table의 data 에 corrput 가 발생했을 경우 예산 가집행에 대한 rollback script를 제공한다.
Explanation
1. 관련 data를 모두 backup 받아 놓는다.
2. data가 corrupt 된 기간을 확인한다.
3. gl_balance table에서 corrupt 된 data를 delete한다.
delete from GL_BALANCES
where set_of_books_id = <set of books id which has the corruption >
and actual_flag = 'E'
and encumbrance_type_id = <Encumbrance type id of the corrupt balances>
and period_year >= <Fiscal year which has the corruption >
4. GL_SETS_OF_BOOKS table 을 update 한다.
Update gl_sets_of_books
set latest_encumbrance_year = <last correct encumbrance year>
where set_of_books_id = <set of books id>
5. Encumbrance Year 를 재오픈한다.
Period 화면에서 해당 encumbrance year를 재오픈한다.
6. Journal Status를 update 한다.
update GL_JE_BATCHES set status = 'U', status_verified = 'N'
where default_period_name in <List of periods in the
corrupt fiscal year starting with the first period in that year
up to the latest open for that encumberance type>
and actual_flag = 'E'
and set_of_books_id = <set of books id which has the corruption>
and je_batch_id in
(SELECT je_batch_id
from GL_JE_HEADERS
where encumbrance_type_id = <Corrupt encumbrance type id>
and actual_flag = 'E'
and set_of_books_id = <Corrupt Set of books Id>
and period_name in <List of corrupt periods starting
with the first period in the corrupt fiscal year
up to the latest open for that encumbrance type>
update GL_JE_HEADERS set status = 'U'
where period_name IN <List of periods in the corrupt fiscal year
starting with the first period in that year up to the latest
open for that encumbrance>
and actual_flag = 'E'
and encumberance_type_id = <Corrupt encumbrance type id>
and set_of_books_id = <Corrupt set of books id>
update GL_JE_LINES
set status = 'U'
where period_name IN <<List of periods in the corrupt fiscal year
starting with the first period in that year up to the latest
open for that encumbrance>
and set_of_books_id = <Corrupt set of books id>
and je_header_id IN
(select je_header_id
from GL_JE_HEADERS
where period_name in <List of periods in the corrupt fiscal
starting with the first period in that year up to the latest
open for that encumbrance>
and actual_flag = 'E'
and encumberance_type_id = <Corrupt Encumbrance Type Id>
and set_of_books_id = <Corrupt Set of Books Id>
7. encumbrance journal 들을 repost 한다.
Example
Reference Documents
Note 99415.1

If you want to load balances at the time of go live.
Create a clearing account like data take over A/c
MM will upload material balances using tcode MB1C and movement type 561
it will generate the following accounting entry
Finished goods stock a/c          Debit
Semi-Finished goods stock a/c Debit
Raw Material stock a/c             Debit
Packing Material stock a/c        Debit
Stores and spares a/c              Debit
Data take over                          Credit
Customer a/c (not recon G/l) Debit
Data takeover a/c                  Credit
Data takeover a/c                Debit
Vendor a/c (not recon GL) Credit
For Asset - tcode OASV
Plant and Machinery a/c          Dr
Accumulated depreciation a/c Credit
Data takeover a/c                    Credit
Cash balance through FBCJ
G/L Tcode F-02,
Data takeover a/c     Debit  (Balancing figure)
Bank a/c                    Debit
Advances                 Debit
Share capital a/c       Credit
Short term Loan a/c   Credit
Long term loan a/c     Credit

Similar Messages

  • HOW TO ROLLBACK BUDGET BALANCE

    제품 : FIN_GL
    작성날짜 : 2005-05-10
    HOW TO ROLLBACK BUDGET BALANCE
    ==============================
    PURPOSE
    GL Budget Balance 의 Period 설정이 잘 못 되었거나 Budget Balance 가 잘 못 지정되었을 경우에 아래와 같은 step으로 Budget Balance 를 Roll back 한다.
    Problem Description
    고객이 Budget 화면에서 End Date 설정을 잘 못 하여 Period 가 잘못 지정되었는데 Budget Journal이 생성된 후에 End Date 설정을 강제로 변경 하고자 할 경우나 Budget Balance 자체에 문제가 있을 때 아래와 같은 Step 으로 Rollback 한다.
    Solution Description
    Step 1. 관련 데이타는 미리 Back up 받아 놓는다.
    Step 2. Delete 할 Period를 결정한다.
    Step 3. GL_BALANCES table에서 해당 period 의 budget balance 를 Delete 한다.
    DELETE from GL_BALANCES
    where set_of_books_id = <set of books id which has the corruption >
    and actual_flag = 'B'
    and budget_version_id = <Budget version id of the corrupt budget >
    and period_year >= <Fiscal year which has the corruption >
    Step 4. Journal Statuses 를 Update 한다.
    UPDATE GL_JE_BATCHES set status = 'U', status_verified = 'N'
    where default_period_name in <List of periods in the
    corrupt fiscal year starting with the first period in that year
    up to the latest open for that budget>
    and actual_flag = 'B'
    and set_of_books_id = <set of books id which has the corruption>
    and je_batch_id in
    (SELECT je_batch_id
    from GL_JE_HEADERS
    where budget_version_id = <Corrupt budget version id>
    and actual_flag = 'B'
    and set_of_books_id = <Corrupt Set of books Id>
    and period_name in <List of corrupt periods starting
    with the first period in the corrupt fiscal year
    up to the latest open for that budget>
    UPDATE GL_JE_HEADERS set status = 'U'
    where period_name IN <List of periods in the corrupt fiscal year
    starting with the first period in that year up to the latest
    open for that budget>
    and actual_flag = 'B'
    and budget_version_id = <Corrupt budget version id>
    and set_of_books_id = <Corrupt set of books id>;
    update GL_JE_LINES set status = 'U'
    where period_name IN <<List of periods in the corrupt fiscal year
    starting with the first period in that year up to the latest
    open for that budget>
    and set_of_books_id = <Corrupt set of books id>
    and je_header_id IN
    (select je_header_id
    from GL_JE_HEADERS
    where period_name in <List of periods in the corrupt fiscal
    starting with the first period in that year up to the latest
    open for that budget>
    and actual_flag = 'B'
    and budget_version_id = <Corrupt budget version Id>
    and set_of_books_id = <Corrupt Set of Books Id>
    Step 5. Latest Open Budget Period 를 update 한다.
    UPDATE GL_BUDGETS
    set latest_opened_year = <Year prior to the corrupt fiscal year>,
    last_valid_period_name = <last period for the year prior to the
    corrupt fiscal year>
    where budget_name = <Budget name of the corrupt budget>
    and budget_type = 'standard'
    and set_of_books_id = <Corrupt set of books id>;
    DELETE from GL_BUDGET_PERIOD_RANGES
    where budget_version_id = <Corrupt budget version id>
    and period_year = <Corrupt budget fiscal year >;
    Step 6. Budget Year 를 Reopen한다.
    GL Responsibility 로 Applications에 접속하여 Budget Year를 Open
    Step 7. Budget Journals 을 Repost 한다.
    해당 Budget Journals 를 Repost 처리 한다.

    If you want to load balances at the time of go live.
    Create a clearing account like data take over A/c
    MM will upload material balances using tcode MB1C and movement type 561
    it will generate the following accounting entry
    Finished goods stock a/c          Debit
    Semi-Finished goods stock a/c Debit
    Raw Material stock a/c             Debit
    Packing Material stock a/c        Debit
    Stores and spares a/c              Debit
    Data take over                          Credit
    Customer a/c (not recon G/l) Debit
    Data takeover a/c                  Credit
    Data takeover a/c                Debit
    Vendor a/c (not recon GL) Credit
    For Asset - tcode OASV
    Plant and Machinery a/c          Dr
    Accumulated depreciation a/c Credit
    Data takeover a/c                    Credit
    Cash balance through FBCJ
    G/L Tcode F-02,
    Data takeover a/c     Debit  (Balancing figure)
    Bank a/c                    Debit
    Advances                 Debit
    Share capital a/c       Credit
    Short term Loan a/c   Credit
    Long term loan a/c     Credit

  • How to Upload Closing balances of ECS and SHECS

    Hi Experts ,
    Please let me know how to upload closing balances of Education cess and Higher Secondary Education cess of Excise duties
    Thanks in advance
    GMR

    hi
    Through Table J2_IACCBAL (OPENING/CLOSING ACC.BALANCE TABLE)

  • How to Calculate Opening balance

    Hi BW Gurus,
    How to calculate Opening balance for previous period using variables in Reports using debit and credit.
    Example:
    Opening balance is the balance for an account for the previous period. In other words, if the user is running a report for Period 1, 2006, the opening balance is actually the ending balance from Period 12, 2005 (December 31st, 2005).
    Thanks in advance
    DJ

    Hi Friend,
    If Your Prob is solve then tell me how to find perticular month balance amount.
    i m create cash book report for perticuler GL Account , i use BKPF + BSEG for this
    i found all entries,
    But at last i want to Opening Balance for perticuler date.
    like     01/05/2007 opening balance = 10000 as per tcode FS10N
    and in 26/05/2007 ??????
    how to find exact date opening balance is there any function for same
    or any procedure..
    Thanks
    From
    Gaurav

  • How to get loan balance

    Dear Friends,
    How to get loan balance in HR module.
    any help higly appricated.
    Regards,
    Malik

    Hi,
    Use the Function Module "PYXX_READ_PAYROLL_RESULT".
    Check Tables PA0045 & PA0078 (If loan amount is more than Salary).
    Cheers,
    Sunil B.

  • How to update RG23D balance.

    Dear all,
    how to update RG23D balance for a depot. Its a new depot.
    i am getting error "no balance in RG23D"

    Dear Jeevan,
    please mention the Complete Scenario for a solution.
    Thanks & Regards,
    SAP FC

  • HOW TO CALCULATE OPENNING BALANCE

    HI Experts..
    How to calculate Opening balance for previous period using variables in Reports using debit and credit.
    Example:
    Opening balance is the balance for an account for the previous period. In other words, if the user is running a report for Period 1, 2006, the opening balance is actually the ending balance from Period 12, 2005 (December 31st, 2005).
    I am Using 0FIAR_O03 ODS ..
    Very Urgent Issue..
    If Possible Stp by Step..
    Cheers
    Purushottam
    09891683828
    [email protected]

    Hi Saloni,
    to get the debit and credit you would be using a variable 0I_FPER(Fiscal year / period), which is a user entry interval variable.
    now to get the opening balance you will have to create a customer exit valiable and the low value of 0I_FPER will have to popuplated by writied the code for the customer exit valiable. you will have to restrict the key figure DEB_CRE_LC for this customer exit variable with the operand as less than(< Fiscal Year /Period from 0I_FPER)).
    If the above was useful please assign reward points.
    Regards
    Venkata Devaraj

  • How to load beginning balance

    Hi :
    How to load beginning balance to repective g/l account in SAP?

    If you want to load balances at the time of go live.
    Create a clearing account like data take over A/c
    MM will upload material balances using tcode MB1C and movement type 561
    it will generate the following accounting entry
    Finished goods stock a/c          Debit
    Semi-Finished goods stock a/c Debit
    Raw Material stock a/c             Debit
    Packing Material stock a/c        Debit
    Stores and spares a/c              Debit
    Data take over                          Credit
    Customer a/c (not recon G/l) Debit
    Data takeover a/c                  Credit
    Data takeover a/c                Debit
    Vendor a/c (not recon GL) Credit
    For Asset - tcode OASV
    Plant and Machinery a/c          Dr
    Accumulated depreciation a/c Credit
    Data takeover a/c                    Credit
    Cash balance through FBCJ
    G/L Tcode F-02,
    Data takeover a/c     Debit  (Balancing figure)
    Bank a/c                    Debit
    Advances                 Debit
    Share capital a/c       Credit
    Short term Loan a/c   Credit
    Long term loan a/c     Credit

  • How to get aggregate balance?

    Hi,
    i have a requirement need to calculate % of total amont for each level.
    ex:
    product dimension have have 4 level, product level 1,product level 2, product level 3, product level 4.
    if i drill to product level 4, i need have a calculate column to calcuate percentage
    product level 4' balance / sum(product level 3' balance)
    how to get aggregate balance sum(product level 3' balance)?

    Hi,
    Use the Function Module "PYXX_READ_PAYROLL_RESULT".
    Check Tables PA0045 & PA0078 (If loan amount is more than Salary).
    Cheers,
    Sunil B.

  • How to see the balance under different balance if special ledgers exist???

    Some of the company using special ledgers. I need to teach user how to see the balance under different balance.
    I will focus on
    1. display voucher
    2. check GL balance
    Anyone have idea (detailed flow)/template (preferred) on these issues?
    Thanks a lot for your help in advance

    hi,
    /n----
    > acccounting -
    >financial accounting -
    >GL acccounts -
    > information system -
    > gl reports
    here in this path u can get all the gl list and gl balances list ....
    u can check what ever reports u want.....
    if useful assign points...
    regards,
    santosh kumar

  • How to calcualte opening balance of supplier for given period

    Hi all,
    i have to develoed suppler ledger report.please help me how to calculate opening balance of supplier.
    Thanks and regards,

    Hi,
    Are you looking out for the outstanding balances for the Supplier.
    If in this case, if you are particular to know the opening balance of the supplier then you can run the report
    called ' Supplier Open Balance Letter', wherein you can get the opening balance of the supplier.

  • How to see Trial Balance for a Segment

    Hi Experts,
    Does anybody has idea on how to see Triala Balance for a Segment ?
    In Standard Reports for Balance Sheet and Profit & Loss, SAP B1 has provided option for filtering on Segment, but the same is not true for Trial Balance.
    BR
    Samir Gandhi

    Hi Samir,
    yes it is possible to display Trial Balance in Segment format.
    open Trial Balance Report, in the Upper right hand of the of the window next to G/L Accounts you can find the "FIND" button, click that one then the Find G/L Account window opens. from this window you cans Select Segmentation accounts.
    regards,
    Fidel

  • How to revalue  Vendor balance Amount in FC on a balance sheet date

    Hi,
         Can somebody help me for, How to revalue  Vendor balance Amount in FC on a balance sheet date and to make respective posting to supplier and exchange rate differnces account..
    thanks

    Hi,
          Vendor currency USD and local currency INR
    thanks

  • How to get Open Balance for the year and Total Ending Balance?

    For a given account, how to get Open Balance for the year (Cumulative Ending Balance) and Total Ending Balance (Cumulative Ending Balance)?
    Is there any function module available? or should I read from some tables? Please advice.

    Hello Paul,
    You could try calling one of the following BAPIs - see which one meets your requirement. They are documented well so shouldn't be a problem finding out the correct one for your requirements.
    BAPI_GL_GETGLACCBALANCE      
    BAPI_GL_GETGLACCCURRENTBALANCE
    BAPI_GL_ACC_GETBALANCE      
    BAPI_GL_ACC_GETCURRENTBALANCE
    BAPI_GL_ACC_GETPERIODBALANCES
    BAPI_COND_VAL_DECRE_BALANCES
    You might have to put in some of your own logic after the BAPI call to get what you want.
    Hope this helps,
    Cheers,
    Sougata.
    p.s. Also look at FM FAGL_GET_ACCOUNT_BALANCE
    Edited by: Sougata Chatterjee on May 7, 2008 11:47 AM

  • How to transfer itunes balance to ipod

    I want to know how to transfer itunes balance to ipod touch??

    You don't transfer balances to devices as the balance is on your account, not the device.
    Sign into your account.

Maybe you are looking for

  • Ipod Classic does not show up in iTunes and will not sync

    My ipod classic does not show up as a device in iTunes. It was working just a week or so ago, but each time I plug it in the screen says connected, then switches to Ejected, you can now disconnect, then says OK to disconnect and then goes to the home

  • Can't get Single selection to work in jtable using Netbeans

    I used the GUI editor to create a jTable to play around and I can't get the single selection to work as it should I have it set like this: jTable1.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);The table still selection the rows as

  • I cant register my "No Problem Guarantee" - Satellite C50-a-179

    I have a Satellite C50-a-179 and i have free No Problem Guarantee for my region (Czech Republic). When I want to register my laptop on www.noproblemguarantee.com this page redirected me on www.nomatterwhatguarantee.com - which is not Guarantee for my

  • Ichat screen share: a way to limit to screen watching, not control?

    hi - using Snow Leopard 10.6.8 on Workstations; is there a way to limit the screen share option so invited chat members can only observe the live screen of another member, as opposed to also having control of the other member's desktop?

  • Adding tv tuner card to AIO Touchsmart

    Recently purchased an AIO TouchSmart desktop.  I would like to add a TV tuner card and use Media Center.  Would also like to add recovery manager.  Is any of this possible? B. Armstrong