READ_BY_ATTRIBUTES SAP Method Read by alternative keys









Below is documentation, parameters and attributes of ABAP Method READ_BY_ATTRIBUTES within SAP class /SCMTMS/IF_MD_ADAPTER. 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 /SCMTMS/IF_MD_ADAPTER 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 READ_BY_ATTRIBUTES can also be found below:

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


Parameters of Method READ_BY_ATTRIBUTES

.

NameTypeData TypeDescriptionDefault Value
IT_DATAImportingTYPE
INDEX TABLE
Key Data
IV_ALTKEY_NAMEImportingTYPE
/BOBF/OBM_NAME
Name of Alternative Key
IV_BO_NAMEImportingTYPE
/BOBF/OBM_NAME
Name of BO
IV_FILL_DATAImportingTYPE
BOOLE_D
Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
ET_INDEXED_NODE_IDSExportingTYPE
/BOBF/T_FRW_KEYINDEX
Table of Node Ids with explicit index
ET_NODE_IDSExportingTYPE
/SCMTMS/T_BO_NODE_ID
Table of SESF_BO_NODE_ID
OUT_DATAExportingTYPE
/SCMTMS/T_OUT_DATA_ADP
Result Data table definition for the Master Data Adapter



Exceptions of Method READ_BY_ATTRIBUTES

/SCMTMS/CX_MD_ADAPTER - Error in Master Data Adapter

Example ABAP coding


DATA: lo_class TYPE REF TO /SCMTMS/IF_MD_ADAPTER.
DATA: lv_ET_INDEXED_NODE_IDS TYPE /BOBF/T_FRW_KEYINDEX,
lv_ET_NODE_IDS TYPE /SCMTMS/T_BO_NODE_ID,
lv_IT_DATA TYPE INDEX TABLE,
lv_IV_ALTKEY_NAME TYPE /BOBF/OBM_NAME,
lv_IV_BO_NAME TYPE /BOBF/OBM_NAME,
lv_IV_FILL_DATA TYPE BOOLE_D,
lv_OUT_DATA TYPE /SCMTMS/T_OUT_DATA_ADP,
lv_other TYPE c.

CALL METHOD lo_class=>READ_BY_ATTRIBUTES(
EXPORTING
IT_DATA = lv_IT_DATA
IV_ALTKEY_NAME = lv_IV_ALTKEY_NAME
IV_BO_NAME = lv_IV_BO_NAME
IV_FILL_DATA = lv_IV_FILL_DATA
IMPORTING
ET_INDEXED_NODE_IDS = lv_ET_INDEXED_NODE_IDS
ET_NODE_IDS = lv_ET_NODE_IDS
OUT_DATA = lv_OUT_DATA ).

Links to Related Class(s)

/SCMTMS/...
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!