COMPARE_TABLES_FOR_CHANGES SAP Method compare subentity for changed elements
Below is documentation, parameters and attributes of ABAP Method COMPARE_TABLES_FOR_CHANGES within SAP class /BOBF/CL_CONF_MODEL_ADT_COMP. 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 /BOBF/CL_CONF_MODEL_ADT_COMP into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method COMPARE_TABLES_FOR_CHANGES can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method COMPARE_TABLES_FOR_CHANGES
.| Name | Type | Data Type | Description | Default Value |
| IT_SUBENTITY_CURRENT | Importing | TYPE INDEX TABLE | ||
| IT_SUBENTITY_NEW | Importing | TYPE INDEX TABLE | ||
| IT_UPDATE_REL_ELEMENT | Importing | TYPE STRINGTAB | Elements relevant for update | |
| ET_INDEX_COMP_SUBENTITY_NEW | Exporting | TYPE GTT_INDEX | ||
| ET_INDEX_CREATE_NEW | Exporting | TYPE GTT_INDEX | ||
| ET_INDEX_DELETE_CURRENT | Exporting | TYPE GTT_INDEX | ||
| ET_INDEX_UPDATE_NEW | Exporting | TYPE GTT_INDEX |
Exceptions of Method COMPARE_TABLES_FOR_CHANGES
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO /BOBF/CL_CONF_MODEL_ADT_COMP.
DATA: lv_ET_INDEX_COMP_SUBENTITY_NEW TYPE GTT_INDEX,
lv_ET_INDEX_CREATE_NEW TYPE GTT_INDEX,
lv_ET_INDEX_DELETE_CURRENT TYPE GTT_INDEX,
lv_ET_INDEX_UPDATE_NEW TYPE GTT_INDEX,
lv_IT_SUBENTITY_CURRENT TYPE INDEX TABLE,
lv_IT_SUBENTITY_NEW TYPE INDEX TABLE,
lv_IT_UPDATE_REL_ELEMENT TYPE STRINGTAB,
lv_other TYPE c.
CALL METHOD lo_class=>COMPARE_TABLES_FOR_CHANGES(
EXPORTING
IT_SUBENTITY_CURRENT = lv_IT_SUBENTITY_CURRENT
IT_SUBENTITY_NEW = lv_IT_SUBENTITY_NEW
IT_UPDATE_REL_ELEMENT = lv_IT_UPDATE_REL_ELEMENT
IMPORTING
ET_INDEX_COMP_SUBENTITY_NEW = lv_ET_INDEX_COMP_SUBENTITY_NEW
ET_INDEX_CREATE_NEW = lv_ET_INDEX_CREATE_NEW
ET_INDEX_DELETE_CURRENT = lv_ET_INDEX_DELETE_CURRENT
ET_INDEX_UPDATE_NEW = lv_ET_INDEX_UPDATE_NEW ).
Links to Related Class(s)
/BOBF/CL...Full list of available SAP object classes
Search for further information about these or an SAP related objects