Message type: E = Error
Message class: SABP_KEY_REDUNDANCY - Superfluous Keys Messages
Message number: 002
Message text: The keys &2 and &1 both have type NON-UNIQUE SORTED
The table keys &V2& and &V1& are of the type NON-UNIQUE SORTED and the
components of &V1& are an initial part of &V2&. Check whether both keys
are required.
Key &V2& has more components than &V1& and is thus more selective. In
the case of all statements where &V1& is used, &V2& could also be used
(exception: READ/DELETE # WITH TABLE KEY#, where all key components must
be supplied exactly).
INCLUDE INCL_MIGRATION_SCENARIO
Check whether only one of the two keys is or could be used consistently
and whether the other key could be removed.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Error message extract from SAP system. Copyright SAP SE.
SABP_KEY_REDUNDANCY002
- The keys &2 and &1 both have type NON-UNIQUE SORTED ?The SAP error message SABP_KEY_REDUNDANCY002 indicates that there is a redundancy issue with the keys defined in a database table or a data structure. Specifically, it states that two keys (identified as &1 and &2) are both defined as NON-UNIQUE SORTED keys, which is not allowed in SAP.
Cause: The error occurs when: You have defined two keys in a table or structure that are both marked as NON-UNIQUE SORTED. This means that both keys can contain duplicate values, which can lead to ambiguity when trying to access records based on these keys.
Solution: To resolve this error, you can take the following steps: Review Key Definitions: Go to the Data Dictionary (SE11) and check the table or structure where the error is occurring. Look at the key definitions and identify the keys that are causing the redundancy. Modify Key Types: Decide whether one of the keys can be changed to a UNIQUE key if it is supposed to have unique
Get instant SAP help. Sign up for our Free Essentials Plan.
SABP_KEY_REDUNDANCY001
Check whether one of the keys can be deleted
What causes this issue? Table keys &V1& and &V2& differ only in their names. Check whether one of the keys can be removed. INCLUDE IN...
SABP_KEY_REDUNDANCY000
The keys &1 and &2 are identical except for their names
What causes this issue? The table keys <(>&<)>V1& and <(>&<)>V2& differ only in their names. Check whether on...
SABP_KEY_REDUNDANCY003
The components of &1 are an initial part of &2
What causes this issue? The table keys &V2& and &V1& are of the type NON-UNIQUE SORTED and the components of &V1& are an init...
SABP_KEY_REDUNDANCY004
Check whether both keys are necessary
What causes this issue? The table keys &V2& and &V1& are of the type NON-UNIQUE SORTED and the components of &V1& are an init...
Click on this link to search all SAP messages.