QUERY SAP Method Process a Query









Below is documentation, parameters and attributes of ABAP Method QUERY within SAP class CL_AXT_TABLES_MULTI. 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 CL_AXT_TABLES_MULTI 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
IT_KEYImportingTYPE
ANY TABLE
List of keys
IT_SELECTION_PARAMETERSImportingTYPE
AXTT_TABLES_SEL_PARAM
Selection parameters
IV_KEY_NAMEImportingTYPE
FIELDNAME
Name of used key
IV_LAST_KEYImportingTYPE
ANY
Last read key for paging
IV_MAX_ROWSImportingTYPE
I
Max rows to read
ET_KEYExportingTYPE
STANDARD TABLE
Keys fullfilling query condition



Exceptions of Method QUERY

CX_AXT_RUNTIME - Exception class for Extensibility Runtime

Example ABAP coding


DATA: lo_class TYPE REF TO CL_AXT_TABLES_MULTI.
DATA: lv_ET_KEY TYPE STANDARD TABLE,
lv_IT_KEY TYPE ANY TABLE,
lv_IT_SELECTION_PARAMETERS TYPE AXTT_TABLES_SEL_PARAM,
lv_IV_KEY_NAME TYPE FIELDNAME,
lv_IV_LAST_KEY TYPE ANY,
lv_IV_MAX_ROWS TYPE I,
lv_other TYPE c.

CALL METHOD lo_class=>QUERY(
EXPORTING
IT_KEY = lv_IT_KEY
IT_SELECTION_PARAMETERS = lv_IT_SELECTION_PARAMETERS
IV_KEY_NAME = lv_IV_KEY_NAME
IV_LAST_KEY = lv_IV_LAST_KEY
IV_MAX_ROWS = lv_IV_MAX_ROWS
IMPORTING
ET_KEY = lv_ET_KEY ).

Links to Related Class(s)

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