Closing of Company Code

Hi Friends,
Can any one explain me How to close the company code in SAP, what are the steps involved in it.
Thanks in Advance

Go to tcode EC01, and select "delete org. object".
However there are a lot of prerequisite tasks you need to complete to clean out all of the data from the Company Code before you can actually delete it.

Similar Messages

  • Can not close company code in asset accounting for prior year in ECC 6.0

    Hi,
    I have problem with closing one company code in particular for 2007.  I have run through the basic steps, however when I run AJAB.  I am told to restart the posting run.  I restarted the asset posting run ASKB and depreciation rub AFAB.  Both finished without error.  Again AJAB gives me the same message afterwards.  I confirmed with my security team that I have access to close the company code.  I ran a trace on the AJAB transaction for company 7600 and received the following:
    All these errors repeated about 200 times.
    I_ANLN1 incremented to about 215.
    (This is about the same number of unposted assets I have on this company code, which i think might have something to do with this.)
    First error:
    CALL FUNCTION 'VANLA2_READ_RANGE_TRIGGER'
    Table V_ANLA_2
            SELECT * FROM V_ANLA_2
             WHERE BUKRS  = GD_ABRA-BUKRS
               AND ZUJHR  IN R_ZUJHR
               AND ANLN1  IN T_R_ANLN1
               AND ANLN2  IN T_R_ANLN2
               AND     ANEQS >  0                    This is what causes this step to fail
              AND DEAKT = '00000000'
             ORDER BY MANDT BUKRS ANLN1 ANLN2.
    2nd error
    CALL FUNCTION 'VANLA1_READ_RANGE_TRIGGER'
    Table : V_ANLA_1
            SELECT * FROM V_ANLA_1
             WHERE BUKRS  = GD_ABRA-BUKRS
               AND ZUJHR  IN R_ZUJHR
               AND ANLN1  IN T_R_ANLN1
               AND ANLN2  IN T_R_ANLN2
               AND AKTIV =  '00000000'
              AND ZUJHR <> '0000'                    This is what causes this step to fail
              AND ZUJHR <=  '2007'
    ORDER BY MANDT BUKRS ANLN1 ANLN2.
    3rd error
    CALL FUNCTION 'ANEP_READ_MULTIPLE_GJAHR_ALL'
    Table: ANEP
        SELECT *  FROM ANEP  INTO TABLE T_ANEP
          WHERE BUKRS  =  I_BUKRS
            AND ANLN1  =  I_ANLN1   This is what causes this step to fail  (000001000000) does not exist on table
            AND ANLN2  =  I_ANLN2
            AND AFABE  IN R_AFABE
            AND GJAHR  BETWEEN I_GJAHR AND I_BISGJAHR
                               ORDER BY PRIMARY KEY.
    4th error
    FUNCTION GET_NEXT_ANLV.
    My theory is this has something to do with unposted assets, however this has never been an issue with prior version of SAP and is only now emerging with our uprgade to ECC 6.0.
    Please help.
    Allen

    Hello,
    You will get a better response to this type of query in the forum ERP Financials - Asset Accounting.
    SAP ERP Financials  - Asset Accounting
    -Paul

  • OKP1 - period lock on company code level

    Hi all,
    I wonder if anybody can help me with this issue.
    Is there an alternative transaction (or any other way) to OKP1 for locking period only on company code level?
    In standard, OKP1 locks on controlling area level.
    The only way which comes on my mind is to set a new validation rule.
    Thanks a lot
    Regards
    Peter

    Hello Peter,
    we are very interested in this issue.
    For our project we also plan to have an assignment from 7 company codes to one controlling area and we also want to control the closing by company code.
    Now we read your thread about this issue and try to work out how you have designed the validation step (OKC7) to check if one business transaction is only allowed for postings in a single/specific company code at the time.
    We are looking forward to your reply!!
    Kind regards
    Udo

  • Closed company codes - GR/IR clearing issue

    Hello,
    My Client has closed some of the company codes due to not doing businees in the respective areas.
    There are still lot of purchase orders are to be cleared by using GR/IR clearing. The issue is when i am trying to execute GR/IR clearing i am getting "Posting period is not open". This is because of old closed company codes.
    How to overcome from this issue? What is the best way to clear GR/IR accounts for these closed company codes?
    Please suggest suitable solution
    Regards
    Rifaie M

    there is no best way other than opening the periods.
    I asked a smilar question 3 weeks ago at DSAG/SAP archiving meeting. No SAP has nothing to archive "open" businescases from companies that have been sold and do not work anymore in your system.
    You may be able to archive 90% of the data, but the rest will remain forever.

  • Closing company code FI impact

    Hi Guru
    We have two company codes xxx1 and xxx2, business requriement is close xxx2 company code and transfer all the GL balance. customer and vendor open items. we have 7 fixed asset which we need to transfer to xxx1 company code.
    I am new to FI. can you please tell me how can we transfer the GL balance from Company code xxx2 to xxx1?
    I have seen some threads from the community, but still i am confoused. we are not using the SLO migration service for that. SD, MM and WM part is done. Now FI need to transfer all the open items and balances to XXX1 company code. then we have to closed all gl account for posting.
    I know how to lock the GL accounts from FS00 and lock it from there. is there is any way how to lock company code GL accounts in one short? or do we have to lock it one by one. if i lock GL accounts, same GL account numbers are using in other company codes as well? if i lock in one company code can user will post GL entries to other company code?
    Cost center can be lock from KS02? is that right.
    Transaction code for GL open items? is there is any T-Code for transfer GL Account balance to company code xxx2 to Company code.xxx1?
    after every thing how to unactive the company code? any transaction code?
    if some one has any documentation plesae send it to me at deleted
    what are the other steps which need to be consider to close the company code.
    Regards
    Nasir

    Hi Nasir,
    Interesting Qs about co.code transfer. Well, to answer all the Qs one has to take few assumptions about the set up in your instance.
    Please find my reply below in bold;
    I am new to FI. can you please tell me how can we transfer the GL balance from Company code xxx2 to xxx1?I have seen some threads from the community, but still i am confoused. we are not using the SLO migration service for that. SD, MM and WM part is done. Now FI need to transfer all the open items and balances to XXX1 company code. then we have to closed all gl account for posting.
    GL Balance Transfer- You can use FB01/F-02 and use fast entry screen for Dr. and Cr. entries. Provide XL template with the fields that you need to your business users, and they'll get back with respective Dr. and Cr. GL entries from sending and receiving co.code. (You can always simulate before posting). Here's a caveat,
    AR/AP Balance Transfer- Recon. Gls would need a special treatment coz they can't be posted directly. AR/AP balances can also be transferred thru the same t.code where you'll have to select the different posting keys pertaining to vendors/customers Dr. and Cr. In the background, recon. sub-ledger will be posted automatically in sending and receiving co.codes.
    Assets Balance Transfer- It would be tricky part. ABT1N is used for Interco assets transfer. If it does not go well then be ready to adjust the recon. GLs through OSAV. You mentioned there are very few assets to transfer, so if it really gives hard time for asset transfer in SAP, then you can always check with business if they can accommodate through some sort of adjustment across both the co.codes considering small number of assets. Sometimes, it's taken care off that way. (here my assumptions is that your client is flexible)
    I know how to lock the GL accounts from FS00 and lock it from there. is there is any way how to lock company code GL accounts in one short? or do we have to lock it one by one. if i lock GL accounts, same GL account numbers are using in other company codes as well? if i lock in one company code can user will post GL entries to other company code?
    GLs are co.code specific though overlapping across different co.codes. t.code OB_GLACC12 is used to mass change GLs which includes deletion too. This would among your last steps before closing the door for sending co.code! Make sure Trial balance & B/S is ZERO in the sending co.code before running OB_GLACC12. And Yes, users will be able to post entries in other co.code successfully for the same GL.
    Cost center can be lock from KS02? is that right.
    Yes, but make sure you lock only those CC which are assigned to sending co.code. You can also delete them from same t.code, which is recommended. (If you lock, then they'll still appear in a drop down, so why bother users later on?) Remember, Cost center master is created at Co.Area level, so you don't want to accidentally block/delete 'em for good co.code.
    Transaction code for GL open items? is there is any T-Code for transfer GL Account balance to company code xxx2 to Company code.xxx1?
    I mentioned a couple in my first para of reply.Keep it simple!
    after every thing how to unactive the company code? any transaction code?
    Actually, it's a very imp.question. Now, it depends on your client however they want? Do then absolutely want to delete the co.code from system, and not want to see at all in future?
    Well, You will need to de-couple (un-assign) all the stuffs like Posting Period Variant, Fiscal year variant, Credit Control Area, Company, Chart of Accounts, Also remove assignment of the sending co.code from Controlling Area in OKKP. You may want to check the un-assignment to Sales org. and Purchase Org.
    Conclusion- Many of the testings, specially data transfer etc. you can perform in QA client just to get feel, and see the error messages, and their respective resolution. I'm sure during a way, and in de-coupling the co.code config. steps, you'll come across various messages, and hurdles, but they can be passed through patience and persistence.
    Good Luck!
    Thanks,
    Nirav

  • Auto closing of dispute cases--only for some company codes

    Hi
    We have activated dispute management for several company codes in our system. The auto closing of dispute cases also has been activated in status management. Cases are automatically closed by the system (through a batch job) when the last disputed object is cleared.
    Now there is a requirement to deactivate auto closing only for some company codes. They want to close cases manually in these company codes.
    Is this possible and if so how?
    Regards
    Raj.

    You cannot deselect at a company code level.
    Can we go through you proposed process.
    So you have a dispute for $100.
    The customer pays it and the dispute closes.
    Then the customer calls up and says they have an issue with the invoice they paid previously.
    I have seen this happen before but there was a little twist
    1 - The customer raised a debit note against the client for the issue that they had. The original invoice is cleared but a debit note is created and then disputed and processed. So you can close the original dispute and create a new dispute against the debit note
    2 - The customer paid the wrong invoice. The dispute was closed. However to rectify the miss allocation the clearing document will be reversed meaning the dispute is "re-opened" and can be processed.
    I am unaware of any other requirement for a customer to "re-dispute" a paid item in SAP.

  • Closed company codes in report

    Hi All,
    I have a requirement from business says that they are some company codes which has been closed , but in report its still showing data.
    I understand that we can create a condition in query to exclude those company codes so that i wont appear in report.
    But in detail i want to get understand how we can make any logic functionally in sap bi system , by writing a abap code through in flow and check for company codes that is still exist or being closed ? And how do i make a check in R/3 system "?
    Or still something like functionality is already been configured in sap bi system itself to make a checks like that ?
    Thanks,
    Siva

    In addition you can also do a flat file data load on a daily/weekly basis OR ask your functional team if there is any custom/standard table where the company code status is maintained so that it can be pulled in BW. You can also use CMOD code to enable this functionality
    If there are many company codes which are inactive then you can also create a variable that will read only the active company codes from company code IO P/M table and available in F4 for help in variable entry screen
    Thanks
    Abhishek Shanbhogue

  • Blocking the closed Company Codes to postings.

    When companies are sold and you want to close the company and block postings to this company, how can this occur? We have been told the only way is by either creating a Posting Period variant or  block the GL Accounts for posting at company code level. 
    Is there any way such as a checkbox which simply closes company code and no postings to this company are allowed?

    Thank you for your response. We are aware of this, but would like to   block the closed Company Codes to postings in another manner than closing accounts under the company code.

  • Company Code (Fusion) Asset Accounting Legacy Migration

    Hi SAP Experts
    We are going to initiate a project where a company code Y will be fusionated to a company code X
    Therefore only company code X will prevail at the end on the month.
    This migration is made within the fiscal year (april 2015) with a calenda K4 (january to december)
    Some balance migration is planned, however we have the following scenario:
    Company code X has asset accounting component working since 2006
    Company code Y does not have asset accounting component within SAP, posting are made directly to SAP (and depretiation calculation posting are made outside SAP)
    We are planning to "transfer the values" from company code Y -> to the asset acccounting component from company code X
    Due theese assets are not "new assets" but "legacy asset" how it should be the right steps?
    We have identified two options so far:
    a) As a "legacy transfer", (AS91) transaction (create legacy data)
    Some SAP documentation refers to take care about the timing to made this; in our case is within the fiscal year
    Also a "data transfer date" or "take over date" must be defined on table V_T093C_08 in order to identify a value date for the legacy transfer
    IMG > Asset Accounting > Asset Data Transfer > Parameteres for Data Transfer > Date Specification
    There are several prerequisites such as company code status allowed for data transfer, set the above date for data transfer and I think also set a period where the legacy company code finish their posting.
    We suspect this is the second or third time the company code X has transfer legacy data.
    Do you have experience managing this option within SAP?
    What issues must be considered
    We do not want to impact the existing fixed assets values and previous asset transfers values with our new asset transfer within the fiscal year.
    b) As a "acquisition without a vendor" ABZON
    I think this option does not required so much customizing, usign this option I think I should put the last value for the legacy asset accounting and set the initiation date for the new depretiation posting accordingly.
    I suspect the disadvantage here is do not have a historical data, however may these is the secure path.
    I notice using ABZON transaction I need to set an account determination call "Contra account: Acquisition value" that is defined on table V_T095_MASTER or customizing transaction AO90
    For this option we are guessing which type account must be.
    I think it should be a balance account (due no vendor is implied) however we are not sure about this point
    Many thanks for your inputs and ideas
    Fernando Luna

    Hi Fernando Luna
    For my perception, option 1 makes sense because you may need to check historical values as well as depreciation posted in legacy system. As you highlighted, the key point to use AS91 to take over legacy assets are below customizing:
    IMG: Asset Accounting -> Asset Data Transfer -> Parameters for Data Transfer -> Date Specifications ->
    => Specify Transfer Date/Last Closed Fiscal Year
    => Specify Last Period Posted in Prv.System (Transf.During FY)
    Above setting affecting legacy take-over only, it wouldn't affect existing asset including previous taken-over legacy assets. After finishing legacy asset migration, you may need to execute depreciation recalculation at company code level.
    Hope this information is helpful.
    Regards
    George

  • Period open for both the company codes

    Hi All,
    I have a scenario wherein one company code has been made defunct and its marketing activity have been transfered to another company code which hitherto only takes care of manufacturing.  The customers of the defunct company code have been extended to the company code to take care of the marketing activities. Both the company codes are having seperate Posting period variant.
    The posting peirod of the defunct company code is closed. But when we do F-31-Outgoing payment to Customer, the system is giving error 'posting in defunct company code not carried out'.
    When we tested the same transaction in Sandbox by opening the periods of the defunct company code, the system is not giving error. This is bewildering and remain a mystery. We need to close the period of the defunct company code for ever and at the same time system should not give such error.
    Does anybody went through this kind of situation? Please give me your valuable inputs on this.
    Regards,

    No responses and hence closed as answered. Thanks to all those who have gone through the thread.

  • PO created with wrong Company code

    Hi Gurus,
    I have Plant XXXX assigned to Company code 1111 and
             Plant YYYY assigned to Company code 2222
    One of the user has created PO with Plant XXXX and company code wrong as 2222.
    (we have warning message setup & not error message. So, it allowed user to create PO with wrong Company code and save)
    GR & IR both are already posted. I find the accounting document of these GR/IR show correct company code as XXXX-1111 (mostly would have taken correctly based on plant XXXX).
    These are service POs (non stock).
    Now user wants to change the company code in PO to 1111.
    I checked...and system simply allow to change to company code to correct one i.e 1111. It does not give any message.
    Could any one give me some additional info.. if it is right to do so? I am not too convinced at this moment.
    I was suggesting user to reverse GR, IR, delete PO and create new PO. Is that right?
    Thanks n advance for your input.
    Best Regards,
    Mohan

    Dear Mohan,
    U can change the company code in PO as it will not have any impact since the GR and IR is completed.
    Accounts are hit based on the valution area(valuation grouping code).
    Since the PO is already closed u can go ahead the change the same.
    Regards,
    AM Vahanan

  • Posting only possible in periods 2011/11 and 2011/10 in company code 4000

    Hi All Experts,
    I have encountered with this error while doing MIGO.
    Posting only possible in periods 2011/11 and 2011/10 in company code 4000
    Message no. M7053
    Diagnosis
    The posting date entered is not within one of the permitted posting periods (current period/previous period).
    This can be due to one of two reasons:
    The correct current period has not been set in the system.
    For the system, the first of the entered periods is the current period. At the beginning of a new period, your systems administrator must change the current period in the material master record, using the function "Shift periods". This has not yet been done.
    You have entered a wrong date in the field "Posting date".
    Procedure
    Check the posting date and correct it if necessary. If your input is correct, inform your systems administrator that the "period shifting" (period-end closing) process has not yet been completed.
    I have checked OB52, OB29, OB37, MMPV, MMRV. All possible T.codes and threads I tried from SDN itself, still no luck ! In OB52 I have opened 2011 & 2012 year open absolute.
    Would like to share MMRV settings :-
    Current Period : 11 / 2011
    Previous Period : 10 / 2011
    Last period in prev year : 12 / 2010
    We have India based client so fiscal year variant is Apr to March copied from V3.
    Will be very much appreciable experts guidane !
    Regards,
    Sharvari Joshi.

    Hi All Experts,
    I raised the OSS, and here which I got the reply from SAP.
    There is a possibility to run the report RMMMINIT to initialize posting
    periods. Please bear in mind that the valuation data of the previous
    period could get affected.
    If you decide to proceed with the process, please review the
    documentation of program RMMMINIT.
    Please also review attached note 70545 regarding the initialization
    process. Although this note is NOT valid for your release, it provides
    good information on the use of initialization for correction purposes.
    Additionally, please review attached note 369637 in this regard as well.
    PLEASE FIRST PERFORM THIS IN A TEST/DEVELOPMENT SYSTEM PRIOR TO MOVING
    TO PRODUCTION AS YOUR VALUATION DATA FROM PREVIOUS PERIOD WILL BE
    AFFECTED. If you are satisfied with the results, then you can move it
    to production. Please perform this at your own risk as this hotline
    will not support any problems arising out of it.
    Related the error message MM016 please follow the steps from note
    487381:
    To reserve the parameter use transaction SU01 for the user's name who
    executes the RMMMINIT program. The parameter must be set as follows:
    Parameter Value
    MMPI_READ_NOTE YYYYMMDD (for the current date)
    I am not able make out any meaning out of it. Can anyone please understand me this ?
    Help will be appreciated !
    Reagrds,
    Sharvari Joshi.
    P.S : Steps from my side which I performed , I changed the parameters for my ID in SU01 to current date 2011.11.16 (YYYYMMDD) and running MMPI still same error.

  • Restrict PR/PO/GR for a particular company code from particular date

    Hi Experts
    How we can restrict PR/PO/GR for a particular company code from a particular date?
    I know PR is not directly linked with company code
    PO can be restricted by deactivating the assignment between company code & plant
    GR- we can use posting period option.?
    Suggest me the best solution for the above requirment.
    Thanks/karthik

    hi
    Obvoiyusly , you can stop the company code posting by not activating the month end closing of periods (MMPV) in MM and similarly in FI ( OB52).
    By removing the assignment you can stop PO creation for the company code but you need to ensure that all the old, un-finished PO/SA and other related activities are taken care off before that.
    Regards

  • Clarifications on company code merger

    Dear SAP Experts
    We need to merge two company codes i.e XXXX & YYYY into one new entity(Thailand). Legally both entities will be closed by 31st Mar 2011 and merged into newly registered entity on 1st April 2011 (FY V3 - April to March). Their existing VAT Registration is also canceled and taking new VAT Registration number for the new entity which will be active from 1st April 2011.
    The new entity will be using the same name and company code i.e. XXXX (say XXX Company Ltd) iin SAP and company code YYYY closing balances and open items will be Merged into XXXX on 1st April 2011.
    My requirements are:
    1. Can we use the same Production Client post merger as the company code is same (XXXX) before merger and post merger? Is there any legal/statutory obligations with respective to SAP?
    2. How to handle open items & intercompany transactions of company code YYYY?
    Client using ECC 5.0 version and New GL is active.
    Both the company codes are using same Operating Concern, Controlling Area, Chart of Accounts, Chart of Depreciation, Currency & Country.
    Addl Info :
    Valuation area at Plant Level
    Cost of Sales Accounting is active
    Only One ledger is in operation i.e. OL - Leading ledger
    No Non Leading Ledgers are active
    Material ledger is not in use
    The volume of transactions are very less for the company code i.e YYYY hence they are not interested to proceed to create new company code and transfer the balances of both company codes in to new entity and they are interested to transfer the open items/balances to company code XXXX on 1st April 2011.
    We referred previous posts and didn't get the required answers and posted with our requirements with all the details to avoid miscommunication. Even we referred SAP SLO service and kept it is an final step.
    Thanks & Regards
    Veerraju

    Hi Veerraju,
    My suggestions to your requirements:
    1.     Can we use the same Production Client post merger as the company code is same (XXXX) before merger and post merger? Is there any legal/statutory obligations with respective to SAP?
    => You have to create new company code  XXXX after post merger and you can update new VAT and other statutory obligations in the new company code
    2. How to handle open items & intercompany transactions of company code YYYY?
    => Make a final data of all the Master datas, remove duplicate Master data e.g. same customer / vendors. Discuss with each Business Owner and finalize the open item after doing year end closing and posting necessary adjustments and intercompany transaction posting.
    Hope this help you for your smooth merger.
    Regards,
    Santosh

  • Not able to post to asset for the company code 5101 in fiscal year 2011

    Hi,
    I have created a Purchase Requisition(PR) for Account Assignement Cat as A in ME51n. And assigned an Asset number.
    In ME57, with ref to the PR created, I created a PO.
    While trying to do goods receipt for the PO at MIGO_GR,am able to generate the Mat Doc number but there are no subsequent Accoutning Documents available.
    Similarly while performing invoice handling Tcode - MIRO, am getting error message as "You cannot post to asset in company code 5101 fiscal year 2011
    In PO, under Account Assignment Tab,Distribution is: Single Account Assignment and Under Delivery, GR Non Valuated is unticked.
    Your help will be appreciated.
    Thanks,
    Nirmala

    Hi Nirmala
    There are 2 issues
    1. OME9: Account Assignment Category A - You hve ticked GR Non Valuated there
    Hence, accounting doc is not generated @ MIGO.. It is generated at MIRO....
    If you want accounting doc at MIGO, then untick the same in OME9... Also, you would need to untick the same in PO, if available for modification....If not available, then delete the Line item and create a new one
    2. It seems you have not opened FY 2011 for assets...
    Do AJAB to close 2010 and AJRW which would open 2011... You can open 2011 w/o closing 2010, provided 2009 is closed...
    Br, Ajay M

Maybe you are looking for

  • Reg : ALV Grid Refresh - Output not appearing

    Hi All , Am calling a screen 100 at 3 different places. Though i use refresh_table_display , The value in the output table, say i_final changes, but while displaying the output , the whole screen is blank , even the container is not appearing in the

  • Adavance Adapter  Engine Performance Tuning

    Hi all, We are using PI-7.11 .  We are working on an asynchronus scenario that reads JMS queue and  calls  server proxy at the receiver. The interface is configured  to bypass the ABAP stack(Integration server) by  using advance adapter configuration

  • Personal settings resetting on reboot

    I've had my macbook for about a month now, and for the past couple weeks everytime I reboot some sort of setting would get reset to default. At first it was my firefox homepage, then my adium settings, then my dock. All of which, while annoying, were

  • Import and export statements

    I am trying to use import and export statements in two different programs . The control from one program goes to another program with the function modules they have . I dont see the value while importing. export i_field1 to memory id 'bus_ind' import

  • Accepting user input and executing a PL/SQL block using it

    Hi All, I am working on a requirement wherein I have to accept values from the user for the various arguments to be supplied to a PL/SQL block and then execute it using these values. For now, I am using the following logic: PROMPT Enter value for the