Message type: E = Error
Message class:  /IWBEP/SBOD -  
Message number: 122
Message text: Principal Key '&1' for referential constraint must be a key property
Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.
To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.
Unfortunately, there isn't any extra information in this error notice.
First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).
Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.
You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.
The SAP error message /IWBEP/SBOD122 indicates that there is an issue with a principal key in a referential constraint within your OData service. Specifically, the error states that the principal key must be a key property, which means that the key you are trying to use in a relationship is not defined as a key in the entity type.
Cause: Missing Key Property: The principal key you are trying to reference in a relationship is not defined as a key property in the entity type. Incorrect Configuration: The entity model may not be correctly configured, leading to a situation where the referential integrity cannot be maintained. Data Model Issues: There may be inconsistencies in the data model where the relationships between entities are not properly defined.
Solution: Check Entity Definition: Ensure that the entity type you are referencing has the correct key properties defined. You can do this by checking the metadata of the OData service. Go
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
/IWBEP/SBOD121 All keys of principal entity should be mapped in referential constraint
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
/IWBEP/SBOD120 Principal Key for Referential Constraint must not be initial
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
/IWBEP/SBOD123 Dependent Property for referential constraint must not be initial
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
/IWBEP/SBOD124 Referential Constraint for principal key '&1' is not unique
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.