How To Fix VK859 - Foreign key cannot be created for the selected field &1-&2


VK859 - Overview

  • Message type: E = Error

  • Message class: VK - Pflege und Bearbeitung von Konditionen

  • Message number: 859

  • Message text: Foreign key cannot be created for the selected field &1-&2

  • Show details Hide details
  • What causes this issue?

    In order to check a field or to display possible entries, the system
    requires a foreign key dependency.
    The system cannot create the foreign key dependency for field &V1&-&V2&
    .
    The system needs other fields to check the above field. However, in
    this case, the required field is missing. A check cannot be carried
    out.

    System Response

    The system allows a missing foreign key dependency but this is
    detrimental to the functionality.

    How to fix this error?

    Please contact your system administrator if you cannot make the
    required settings.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message VK859 - Foreign key cannot be created for the selected field &1-&2 ?
    The SAP error message VK859 indicates that a foreign key relationship cannot be created for the specified fields in the context of a table or data structure. This error typically arises when there is an attempt to establish a foreign key constraint between two fields, but certain conditions are not met.
    Causes of VK859
    
    
    Data Type Mismatch: The fields you are trying to link as foreign keys may have different data types or lengths. For example, one field might be defined as CHAR(10) while the other is CHAR(20).
    
    
    Field Attributes: The attributes of the fields (like whether they are nullable or not) may not be compatible. For instance, if one field is defined as NOT NULL and the other allows NULL values, this can cause issues.
    
    
    Existing Data: If there is existing data in the tables that would violate the foreign key constraint, the system will not allow the creation of the foreign key.
    
    
    Primary

    Already have an account? Login here!




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:
  • VK858 Screen &1 &2 generated
    Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...

  • VK857 Report & generated
    Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...

  • VK860 Screen &1 &2 saved
    Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...

  • VK861 System error: maximum number of tables (&) reached
    What causes this issue? The system could not determine a table number.System Response The system issues an error message and will not allow you to c...

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