SET_SORT_COLUMNS SAP Method Set columns for sorting









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

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


Parameters of Method SET_SORT_COLUMNS

.

NameTypeData TypeDescriptionDefault Value
IV_COLUMN1_DESCImportingTYPE
ABAP_BOOL
Sort first column descending
IV_COLUMN1_IDImportingTYPE
IF_FDT_TYPES=>ID
First sort column
IV_COLUMN2_DESCImportingTYPE
ABAP_BOOL
Sort second column descending
IV_COLUMN2_IDImportingTYPE
IF_FDT_TYPES=>ID
Second sort column
IV_COLUMN3_DESCImportingTYPE
ABAP_BOOL
Sort third column descending
IV_COLUMN3_IDImportingTYPE
IF_FDT_TYPES=>ID
Third sort column
IV_COLUMN4_DESCImportingTYPE
ABAP_BOOL
Sort forth column descending
IV_COLUMN4_IDImportingTYPE
IF_FDT_TYPES=>ID
Fourth sort column
IV_COLUMN5_DESCImportingTYPE
ABAP_BOOL
Sort fifth column descending
IV_COLUMN5_IDImportingTYPE
IF_FDT_TYPES=>ID
Fifth sort column



Exceptions of Method SET_SORT_COLUMNS

CX_FDT_INPUT -

Example ABAP coding


DATA: lo_class TYPE REF TO IF_FDT_TABLE_OPERATION.
DATA: lv_IV_COLUMN1_DESC TYPE ABAP_BOOL,
lv_IV_COLUMN1_ID TYPE IF_FDT_TYPES=>ID,
lv_IV_COLUMN2_DESC TYPE ABAP_BOOL,
lv_IV_COLUMN2_ID TYPE IF_FDT_TYPES=>ID,
lv_IV_COLUMN3_DESC TYPE ABAP_BOOL,
lv_IV_COLUMN3_ID TYPE IF_FDT_TYPES=>ID,
lv_IV_COLUMN4_DESC TYPE ABAP_BOOL,
lv_IV_COLUMN4_ID TYPE IF_FDT_TYPES=>ID,
lv_IV_COLUMN5_DESC TYPE ABAP_BOOL,
lv_IV_COLUMN5_ID TYPE IF_FDT_TYPES=>ID,
lv_other TYPE c.

CALL METHOD lo_class=>SET_SORT_COLUMNS(
EXPORTING
IV_COLUMN1_DESC = lv_IV_COLUMN1_DESC
IV_COLUMN1_ID = lv_IV_COLUMN1_ID
IV_COLUMN2_DESC = lv_IV_COLUMN2_DESC
IV_COLUMN2_ID = lv_IV_COLUMN2_ID
IV_COLUMN3_DESC = lv_IV_COLUMN3_DESC
IV_COLUMN3_ID = lv_IV_COLUMN3_ID
IV_COLUMN4_DESC = lv_IV_COLUMN4_DESC
IV_COLUMN4_ID = lv_IV_COLUMN4_ID
IV_COLUMN5_DESC = lv_IV_COLUMN5_DESC
IV_COLUMN5_ID = lv_IV_COLUMN5_ID ).

Links to Related Class(s)

IF_FDT_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!