QUERY SAP Method Execute a Query









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

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


Parameters of Method QUERY

.

NameTypeData TypeDescriptionDefault Value
IS_OPTIONSImportingTYPE
/PLMB/S_SPI_QUERY_OPTIONS
Query options
IT_FILTER_NODE_IDImportingTYPE
INDEX TABLE
List of NodeIDs to which result will be restricted
IT_SEL_PARAMImportingTYPE
/PLMB/T_SPI_SELECTION_PARAM
Selection parameters
IV_KEYS_ONLYImportingTYPE
/PLMB/SPI_KEYS_ONLY_IND
Indicator return only keys
ET_MESSAGEExportingTYPE
/PLMB/T_SPI_MSG
Message
ET_NODE_DATAExportingTYPE
INDEX TABLE
Node ID(s) and node data which matches selection parameters
ET_NODE_IDExportingTYPE
INDEX TABLE
Node ID(s) which match the selection parameters
EV_FAILEDExportingTYPE
/PLMB/SPI_FAILED_IND
Failed indicator
EV_SEVERITYExportingTYPE
/PLMB/SPI_MSG_SEVERITY
Severity



Exceptions of Method QUERY

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO IF_VC2OD_DMT_ND_ACCESS.
DATA: lv_ET_MESSAGE TYPE /PLMB/T_SPI_MSG,
lv_ET_NODE_DATA TYPE INDEX TABLE,
lv_ET_NODE_ID TYPE INDEX TABLE,
lv_EV_FAILED TYPE /PLMB/SPI_FAILED_IND,
lv_EV_SEVERITY TYPE /PLMB/SPI_MSG_SEVERITY,
lv_IS_OPTIONS TYPE /PLMB/S_SPI_QUERY_OPTIONS,
lv_IT_FILTER_NODE_ID TYPE INDEX TABLE,
lv_IT_SEL_PARAM TYPE /PLMB/T_SPI_SELECTION_PARAM,
lv_IV_KEYS_ONLY TYPE /PLMB/SPI_KEYS_ONLY_IND,
lv_other TYPE c.

CALL METHOD lo_class=>QUERY(
EXPORTING
IS_OPTIONS = lv_IS_OPTIONS
IT_FILTER_NODE_ID = lv_IT_FILTER_NODE_ID
IT_SEL_PARAM = lv_IT_SEL_PARAM
IV_KEYS_ONLY = lv_IV_KEYS_ONLY
IMPORTING
ET_MESSAGE = lv_ET_MESSAGE
ET_NODE_DATA = lv_ET_NODE_DATA
ET_NODE_ID = lv_ET_NODE_ID
EV_FAILED = lv_EV_FAILED
EV_SEVERITY = lv_EV_SEVERITY ).

Links to Related Class(s)

IF_VC2OD...
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!