DECLARE_PARAM_BY_TABLE_FIELD SAP Method Declare table field as parameter









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

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


Parameters of Method DECLARE_PARAM_BY_TABLE_FIELD

.

NameTypeData TypeDescriptionDefault Value
IM_ALLOW_COMPLEX_SELECTIONImportingTYPE
ABAP_BOOL
IM_FIELDNAMEImportingTYPE
CLIKE
Field Name
IM_RANGE_SELECTIONImportingTYPE
ABAP_BOOL
IM_SHOW_OUTPUT_FLAGImportingTYPE
ABAP_BOOL
IM_TABNAMEImportingTYPE
CLIKE
Table Name



Exceptions of Method DECLARE_PARAM_BY_TABLE_FIELD

CX_SQF_QUERY_ERROR - Query errors

Example ABAP coding


DATA: lo_class TYPE REF TO IF_SQF_QUERY.
DATA: lv_IM_ALLOW_COMPLEX_SELECTION TYPE ABAP_BOOL,
lv_IM_FIELDNAME TYPE CLIKE,
lv_IM_RANGE_SELECTION TYPE ABAP_BOOL,
lv_IM_SHOW_OUTPUT_FLAG TYPE ABAP_BOOL,
lv_IM_TABNAME TYPE CLIKE,
lv_other TYPE c.

CALL METHOD lo_class=>DECLARE_PARAM_BY_TABLE_FIELD(
EXPORTING
IM_ALLOW_COMPLEX_SELECTION = lv_IM_ALLOW_COMPLEX_SELECTION
IM_FIELDNAME = lv_IM_FIELDNAME
IM_RANGE_SELECTION = lv_IM_RANGE_SELECTION
IM_SHOW_OUTPUT_FLAG = lv_IM_SHOW_OUTPUT_FLAG
IM_TABNAME = lv_IM_TABNAME ).

Links to Related Class(s)

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