How To Fix 881037 - Company code is still used for documents. Cannot delete.


SAP Error Message - Details

  • Message type: E = Error

  • Message class: 881 - Recycling Administration

  • Message number: 037

  • Message text: Company code is still used for documents. Cannot delete.

  • Show details Hide details
  • What causes this issue?

    The company code is still assigned to at least one document.

    System Response

    The company code cannot be deleted.

    How to fix this error?

    Check all of the recycling partner's documents in the detail screen and
    delete the company code from the assignment.
    Instead of deleting, you can also suppress the use of the company code
    by <DS:DE.J_7LRESTAT>deactivating</> it.

    Procedure for System Administrators

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message 881037 - Company code is still used for documents. Cannot delete. ?

    The SAP error message 881037, which states "Company code is still used for documents. Cannot delete," typically occurs when you attempt to delete a company code that is still associated with existing financial documents or transactions in the system. This is a safeguard to prevent the loss of important financial data.

    Cause:

    1. Existing Documents: The company code has financial documents (like invoices, journal entries, etc.) that are still active or have not been archived.
    2. Open Periods: There may be open accounting periods that are still linked to the company code.
    3. Dependencies: Other objects (like cost centers, profit centers, etc.) may still reference the company code.

    Solution:

    To resolve this error and successfully delete the company code, follow these steps:

    1. Identify Existing Documents:

      • Use transaction codes like FB03 (Display Document) or FBL1N (Vendor Line Item Display) to check for any existing documents related to the company code.
      • You can also use the report S_ALR_87012357 (Document Overview) to find documents associated with the company code.
    2. Clear Open Items:

      • If there are open items, you may need to clear them by processing payments, clearing accounts, or reversing transactions.
    3. Close Open Periods:

      • Ensure that all accounting periods are closed. You can check this in the OB52 transaction (Maintain Table T001B) to see if there are any open periods.
    4. Check for Dependencies:

      • Review related objects like cost centers, profit centers, and other master data that may still reference the company code. You may need to delete or change these references before you can delete the company code.
    5. Archiving:

      • If the documents are no longer needed, consider archiving them. This can be done through the archiving process in SAP, which will remove the documents from the active database but keep them accessible for reporting.
    6. Use Transaction OX19:

      • After ensuring that there are no dependencies, you can attempt to delete the company code again using transaction OX19 (Edit Company Code).

    Related Information:

    • Documentation: Refer to SAP Help documentation for detailed steps on managing company codes and financial documents.

    • Transaction Codes: Familiarize yourself with relevant transaction codes such as:

      • OB52: For managing open periods.
      • OX19: For deleting company codes.
      • FB03: For displaying financial documents.
      • S_ALR_87012357: For document overview reports.
    • Consulting SAP Notes: Check SAP Notes for any specific patches or updates related to this error message.

    If you continue to face issues, it may be beneficial to consult with your SAP Basis or Finance team for further assistance.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker