COMPARE_VALUES SAP Method Compares Cell Values









Below is documentation, parameters and attributes of ABAP Method COMPARE_VALUES 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_VALUES can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method COMPARE_VALUES

.

NameTypeData TypeDescriptionDefault Value
IV_PERID_1ImportingTYPE
/SCMB/TSDM_PERID
Period Sequence Number ID
IV_PERID_2ImportingTYPE
/SCMB/TSDM_PERID
Period Sequence Number ID
IV_SEM_1ImportingTYPE
/SCMB/PRM_SEM
Semantics of Line
IV_SEM_2ImportingTYPE
/SCMB/PRM_SEM
Semantics of Line
EV_DIFFExportingTYPE
XFELD
Indicator: Rows are Different (in Selected Area)
EV_VALUE_1ExportingTYPE
/SCMB/PALG_CELL_VALUE
Value of a Data Matrix Cell
EV_VALUE_2ExportingTYPE
/SCMB/PALG_CELL_VALUE
Value of a Data Matrix Cell



Exceptions of Method COMPARE_VALUES

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO /SCMB/CL_DATAMATRIX.
DATA: lv_EV_DIFF TYPE XFELD,
lv_EV_VALUE_1 TYPE /SCMB/PALG_CELL_VALUE,
lv_EV_VALUE_2 TYPE /SCMB/PALG_CELL_VALUE,
lv_IV_PERID_1 TYPE /SCMB/TSDM_PERID,
lv_IV_PERID_2 TYPE /SCMB/TSDM_PERID,
lv_IV_SEM_1 TYPE /SCMB/PRM_SEM,
lv_IV_SEM_2 TYPE /SCMB/PRM_SEM,
lv_other TYPE c.

CALL METHOD lo_class=>COMPARE_VALUES(
EXPORTING
IV_PERID_1 = lv_IV_PERID_1
IV_PERID_2 = lv_IV_PERID_2
IV_SEM_1 = lv_IV_SEM_1
IV_SEM_2 = lv_IV_SEM_2
IMPORTING
EV_DIFF = lv_EV_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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!