Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix WJ201 - Database error: additionals could not be deleted


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WJ - Additionals

  • Message number: 201

  • Message text: Database error: additionals could not be deleted

  • Show details Hide details
  • What causes this issue?

    Because of a database error, the data for the
    <GL:additional>additionals</> cannot be deleted.

    How to fix this error?

    INCLUDE ISR_VERWALTUNG

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WJ201 - Database error: additionals could not be deleted ?

    Certainly! Here's a detailed explanation regarding the SAP error message:


    SAP Error Message:

    WJ201 Database error: additionals could not be deleted


    Cause:

    This error typically occurs in SAP when the system tries to delete "additionals" (additional data or records related to a main object, often in the context of workflow, HR infotypes, or other master data) from the database but fails due to one or more of the following reasons:

    1. Database Locking Issues:
      The record or table entries that the system tries to delete are locked by another user or process.

    2. Referential Integrity Constraints:
      There are dependent records in other tables that prevent deletion due to foreign key constraints.

    3. Authorization Issues:
      The user or process attempting the deletion does not have sufficient authorization to delete the records.

    4. Technical Database Issues:
      Problems such as database inconsistencies, missing indexes, or corrupted entries.

    5. Program or Custom Code Errors:
      If the deletion is triggered by a custom program or enhancement, there might be bugs or incorrect logic.


    Solution:

    1. Check Locks:

      • Use transaction SM12 to check for locked entries related to the object you are trying to delete.
      • If locks exist and are stale, release them carefully.
    2. Check Referential Integrity:

      • Identify if there are dependent records preventing deletion.
      • Use SE16/SE16N or appropriate database tools to check related tables for dependent entries.
    3. Check Authorizations:

      • Verify that the user has the necessary authorizations to delete the records.
      • Use transaction SU53 immediately after the error to check authorization failures.
    4. Database Consistency Checks:

      • Run database consistency checks or use transaction DB02 to check for database issues.
      • Consult your Basis team if database corruption is suspected.
    5. Review Custom Code or Enhancements:

      • If the deletion is part of a custom program or user exit, debug the code to identify why deletion fails.
      • Check for proper error handling and database commit logic.
    6. SAP Notes and Support:

      • Search for SAP Notes related to message WJ201 for any known bugs or patches.
      • If unresolved, raise an OSS message with SAP Support including detailed logs and steps to reproduce.

    Related Information:

    • Transaction Codes:

      • SM12 – Lock Entries
      • SE16 / SE16N – Data Browser for table checks
      • SU53 – Authorization Check
      • DB02 – Database Performance and Health
    • Common Tables Involved:
      Depending on the module, tables related to the "additionals" might vary. For example, in HR, infotype tables or cluster tables might be involved.

    • SAP Notes:

      • Check SAP Support Portal for notes referencing WJ201 or related database deletion errors.
    • General Advice:
      Always perform such deletions in a test or development environment first. Backup relevant data before attempting manual deletions or database corrections.


    If you provide more context (module, transaction, or scenario where this error occurs), I can give a more precise solution.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


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 simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant