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

Close

How To Fix WTADDI404 - Current line &1 already exists in line &2: duplicated key


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WTADDI - Additionals: Messages

  • Message number: 404

  • Message text: Current line &1 already exists in line &2: duplicated key

  • Show details Hide details
  • What causes this issue?

    You are presently creating <GL:additional>additionals</>. While doing
    so, you have entered data in line &V1& that already appears as a
    <ZH>key</> in line &V2&.
    No single combination of sales unit,
    <DS:GLOS.3526B516AFAB52B9E10000009B38F974>class type</>,
    <DS:GLOS.3526B515AFAB52B9E10000009B38F974>class</>, and additional may
    appear more than once in the table. This combination forms the
    (primary) key for accessing the database. The key must always be
    unique.

    How to fix this error?

    Check your entries in the current line for:
    Sales unit
    Class type
    Class
    Additional
    &hints&
    It is not possible to affix an additional to merchandise for a
    combination of sales unit, class type, and class with two different
    <DS:GLOS.Anbringungsmethode>procedures for additionals</>

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WTADDI404 - Current line &1 already exists in line &2: duplicated key ?

    The SAP error message:

    WTADDI404 Current line &1 already exists in line &2: duplicated key

    typically occurs in the context of Warehouse Management (WM) or Extended Warehouse Management (EWM) when dealing with transfer orders, transfer requirements, or related warehouse documents.


    Cause

    • The error indicates that there is an attempt to add or create a line item in a warehouse document (e.g., transfer order, transfer requirement) that already exists.
    • Specifically, the system detects a duplicate key for a line item, meaning the same line (with the same key fields such as material, storage bin, batch, etc.) is being added twice.
    • This can happen due to:
      • Incorrect or duplicate data entry.
      • A program or user trying to create or update a warehouse document with the same line twice.
      • Custom code or enhancements that do not properly check for existing lines before adding new ones.
      • Integration or interface issues where the same data is sent multiple times.

    Solution

    1. Check the Document Lines:

      • Review the warehouse document (transfer order, transfer requirement) to identify if the line &1 (line number) is already present.
      • Compare the line &1 and &2 mentioned in the error to understand which lines are conflicting.
    2. Avoid Duplicate Entries:

      • Ensure that the process or program creating or updating the document does not add the same line twice.
      • If using custom code, add logic to check if the line already exists before adding a new one.
    3. Data Correction:

      • If the document is created via a user interface, correct the entries to avoid duplicates.
      • If the document is created via an interface or batch job, check the source data for duplicates.
    4. Debugging:

      • Use transaction SE91 to look up the message class WTADDI and message number 404 for more details.
      • Debug the program or function module where the error occurs to identify why the duplicate line is being added.
    5. SAP Notes and Support:

      • Search for SAP Notes related to message WTADDI404 for any known issues or patches.
      • Example SAP Note: Sometimes SAP provides notes for specific scenarios causing this error.

    Related Information

    • Message Class: WTADDI (Warehouse Transfer Additions)
    • Common Context: Transfer Orders, Transfer Requirements, Warehouse Tasks
    • Transactions to Check:
      • LT21 (Display Transfer Order)
      • LT22 (Change Transfer Order)
      • /SCWM/PRDO (EWM Production Order)
    • Debugging Tools:
      • SE91 (Message Maintenance)
      • ST22 (Dump Analysis if applicable)
      • SMQ1/SMQ2 (IDoc queues if interface involved)

    Summary

    Aspect Details
    Cause Attempt to add a duplicate line item in a warehouse document (duplicate key conflict).
    Solution Check and remove duplicate lines, correct data entry, add validation in custom code.
    Related WM/EWM transfer orders, transfer requirements, message class WTADDI, SAP Notes for fixes.

    If you provide more context (transaction, process, or custom code involved), I can help with a more specific 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
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author