COMPARE_SC_FIELDS SAP Method Compare old fields with new fields of a Search Connector
Below is documentation, parameters and attributes of ABAP Method COMPARE_SC_FIELDS within SAP class /BCV/CL_CFG_CENTER_ASSISTANCE. 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 /BCV/CL_CFG_CENTER_ASSISTANCE 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_SC_FIELDS can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method COMPARE_SC_FIELDS
.| Name | Type | Data Type | Description | Default Value |
| IT_INPUTFIELDS_NEW | Importing | TYPE /BCV/T_FND_IMPORT_PARAMETER | Import Parameter | |
| IT_INPUTFIELDS_OLD | Importing | TYPE /BCV/T_CFG_SCONN_INPAR | Search Import Parameter Table in BCV Configuration Center | |
| IT_OUTPUTFIELDS_NEW | Importing | TYPE /BCV/T_FND_EXPORT_PARAMETER | Export Parameter | |
| IT_OUTPUTFIELDS_OLD | Importing | TYPE /BCV/T_CFG_SCONN_EXPAR | Search Export Parameter Table in BCV Configuration Center | |
| IV_DTEL_PROVIDED | Importing | TYPE BOOLE_D | Data Provider provides Data Element Information | |
| ET_DEVIATION | Exporting | TYPE TY_T_COMPARE_FIELD | Table with Deviations | |
| EV_DEVIATION | Exporting | TYPE XFELD | 'X' Deviation exists, ' ' No deviation |
Exceptions of Method COMPARE_SC_FIELDS
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO /BCV/CL_CFG_CENTER_ASSISTANCE.
DATA: lv_ET_DEVIATION TYPE TY_T_COMPARE_FIELD,
lv_EV_DEVIATION TYPE XFELD,
lv_IT_INPUTFIELDS_NEW TYPE /BCV/T_FND_IMPORT_PARAMETER,
lv_IT_INPUTFIELDS_OLD TYPE /BCV/T_CFG_SCONN_INPAR,
lv_IT_OUTPUTFIELDS_NEW TYPE /BCV/T_FND_EXPORT_PARAMETER,
lv_IT_OUTPUTFIELDS_OLD TYPE /BCV/T_CFG_SCONN_EXPAR,
lv_IV_DTEL_PROVIDED TYPE BOOLE_D,
lv_other TYPE c.
CALL METHOD lo_class=>COMPARE_SC_FIELDS(
EXPORTING
IT_INPUTFIELDS_NEW = lv_IT_INPUTFIELDS_NEW
IT_INPUTFIELDS_OLD = lv_IT_INPUTFIELDS_OLD
IT_OUTPUTFIELDS_NEW = lv_IT_OUTPUTFIELDS_NEW
IT_OUTPUTFIELDS_OLD = lv_IT_OUTPUTFIELDS_OLD
IV_DTEL_PROVIDED = lv_IV_DTEL_PROVIDED
IMPORTING
ET_DEVIATION = lv_ET_DEVIATION
EV_DEVIATION = lv_EV_DEVIATION ).
Links to Related Class(s)
/BCV/CL_...Full list of available SAP object classes
Search for further information about these or an SAP related objects