COMPARE_LINES SAP Method COmpares Rows (in Selected Area)
Below is documentation, parameters and attributes of ABAP Method COMPARE_LINES within SAP class /SCMB/CL_DATAMATRIX. 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 /SCMB/CL_DATAMATRIX 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_LINES can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method COMPARE_LINES
.| Name | Type | Data Type | Description | Default Value |
| IV_SEM_1 | Importing | TYPE /SCMB/PRM_SEM | Semantics of Line | |
| IV_SEM_2 | Importing | TYPE /SCMB/PRM_SEM | Semantics of Line | |
| IV_START_PERID | Importing | TYPE /SCMB/TSDM_PERID | Period Sequence Number ID | |
| IV_STOP_PERID | Importing | TYPE /SCMB/TSDM_PERID | Period Sequence Number ID | |
| EV_DIFF | Exporting | TYPE XFELD | Indicator: Rows are Different (in Selected Area) | |
| EV_PERID_FIRST_DIFF | Exporting | TYPE /SCMB/TSDM_PERID | First period that is different | |
| EV_VALUE_1 | Exporting | TYPE /SCMB/PALG_CELL_VALUE | Value of a Data Matrix Cell | |
| EV_VALUE_2 | Exporting | TYPE /SCMB/PALG_CELL_VALUE | Value of a Data Matrix Cell |
Exceptions of Method COMPARE_LINES
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO /SCMB/CL_DATAMATRIX.
DATA: lv_EV_DIFF TYPE XFELD,
lv_EV_PERID_FIRST_DIFF TYPE /SCMB/TSDM_PERID,
lv_EV_VALUE_1 TYPE /SCMB/PALG_CELL_VALUE,
lv_EV_VALUE_2 TYPE /SCMB/PALG_CELL_VALUE,
lv_IV_SEM_1 TYPE /SCMB/PRM_SEM,
lv_IV_SEM_2 TYPE /SCMB/PRM_SEM,
lv_IV_START_PERID TYPE /SCMB/TSDM_PERID,
lv_IV_STOP_PERID TYPE /SCMB/TSDM_PERID,
lv_other TYPE c.
CALL METHOD lo_class=>COMPARE_LINES(
EXPORTING
IV_SEM_1 = lv_IV_SEM_1
IV_SEM_2 = lv_IV_SEM_2
IV_START_PERID = lv_IV_START_PERID
IV_STOP_PERID = lv_IV_STOP_PERID
IMPORTING
EV_DIFF = lv_EV_DIFF
EV_PERID_FIRST_DIFF = lv_EV_PERID_FIRST_DIFF
EV_VALUE_1 = lv_EV_VALUE_1
EV_VALUE_2 = lv_EV_VALUE_2 ).
Links to Related Class(s)
/SCMB/CL...Full list of available SAP object classes
Search for further information about these or an SAP related objects