CHECK_FOR_KEY_REDUNDANCY SAP Method Test for Redundant Keys in Passed Table Type
Below is documentation, parameters and attributes of ABAP Method CHECK_FOR_KEY_REDUNDANCY within SAP class CL_ABAP_DDIC_UTILITIES. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name CL_ABAP_DDIC_UTILITIES into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Static
This is a Static Method so you can call it directlyThe following technical details of method CHECK_FOR_KEY_REDUNDANCY can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CHECK_FOR_KEY_REDUNDANCY
.| Name | Type | Data Type | Description | Default Value |
| ITAB_TYPE_NAME | Importing | TYPE TTYPENAME | Name of Table Type | |
| IT_KEY_DESCRIPTIONS | Importing | TYPE DD43V_TAB | Descriptions of Keys of Type | |
| IT_KEY_FIELDS | Importing | TYPE DD42V_TAB | All Key Fields of Type | |
| PRIMARY_KEY_DESCRIPTION | Importing | TYPE DD40V | Description of Primary Keys | |
| ET_CHECK_PROTOCOL | Exporting | TYPE SPROT_U_TAB | Log Table |
Exceptions of Method CHECK_FOR_KEY_REDUNDANCY
DDIC_ITAB_TYPE_INCONSISTENCY - Table Type InconsistentExample ABAP coding
DATA: lv_ET_CHECK_PROTOCOL TYPE SPROT_U_TAB,
lv_ITAB_TYPE_NAME TYPE TTYPENAME,
lv_IT_KEY_DESCRIPTIONS TYPE DD43V_TAB,
lv_IT_KEY_FIELDS TYPE DD42V_TAB,
lv_PRIMARY_KEY_DESCRIPTION TYPE DD40V,
lv_other TYPE c.
CALL METHOD CL_ABAP_DDIC_UTILITIES=>CHECK_FOR_KEY_REDUNDANCY(
EXPORTING
ITAB_TYPE_NAME = lv_ITAB_TYPE_NAME
IT_KEY_DESCRIPTIONS = lv_IT_KEY_DESCRIPTIONS
IT_KEY_FIELDS = lv_IT_KEY_FIELDS
PRIMARY_KEY_DESCRIPTION = lv_PRIMARY_KEY_DESCRIPTION
IMPORTING
ET_CHECK_PROTOCOL = lv_ET_CHECK_PROTOCOL ).
Links to Related Class(s)
CL_ABAP_...Full list of available SAP object classes
Search for further information about these or an SAP related objects