How To Fix AD213 - Choose name VARKEY for second key field


SAP Error Message - Details

  • Message type: E = Error

  • Message class: AD - Data Dictionary application messages

  • Message number: 213

  • Message text: Choose name VARKEY for second key field

  • Show details Hide details
  • What causes this issue?

    You changed the system proposal for the fields of a physical pool, but
    a physical pool has a fixed structure.
    A pool must have exactly two key fields with the names
    TABNAME (for the name of the logical pooled table) and VARKEY (the
    key fields of the logical pooled table are stored as a string here).

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

    System Response

    How to fix this error?

    Set the definition of the physical pool back to the
    proposed structure.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message AD213 - Choose name VARKEY for second key field ?

    The SAP error message AD213, which states "Choose name VARKEY for second key field," typically occurs in the context of defining a variant for a report or transaction in SAP. This error indicates that the system expects a specific naming convention for the second key field in a variant definition.

    Cause:

    The error arises when you are trying to create or modify a variant for a report, and the second key field does not adhere to the expected naming convention. In this case, the system is specifically looking for the name "VARKEY" for the second key field, which is a requirement for certain reports or transactions.

    Solution:

    To resolve this error, you should follow these steps:

    1. Check the Variant Definition: Go to the transaction where you are defining the variant (e.g., SE38 for ABAP programs or the specific transaction code for the report).

    2. Edit the Variant: If you are creating a new variant or modifying an existing one, ensure that the second key field is named "VARKEY".

    3. Save the Changes: After making the necessary adjustments, save the variant.

    4. Test the Variant: Run the report or transaction again using the modified variant to ensure that the error no longer occurs.

    Related Information:

    • Transaction Codes: Familiarize yourself with the transaction codes related to variant management, such as SE38 (ABAP Editor) or the specific transaction for the report you are working with.
    • Documentation: Refer to SAP documentation or help files for more information on variant management and naming conventions.
    • SAP Notes: Check the SAP Support Portal for any relevant SAP Notes that might address this error or provide additional context.

    If the issue persists after following these steps, consider reaching out to your SAP Basis or development team for further assistance, as there may be underlying configuration issues or specific customizations in your SAP environment.

    • 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
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