GET_SORT_COLUMNS SAP Method Get columns for sorting









Below is documentation, parameters and attributes of ABAP Method GET_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 GET_SORT_COLUMNS can also be found below:

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


Parameters of Method GET_SORT_COLUMNS

.

NameTypeData TypeDescriptionDefault Value
IV_TIMESTAMPImportingTYPE
IF_FDT_TYPES=>TIMESTAMP
Time Stamp (active version)
EV_COLUMN1_DESCExportingTYPE
ABAP_BOOL
Sort first column descending
EV_COLUMN1_IDExportingTYPE
IF_FDT_TYPES=>ID
First sort column
EV_COLUMN2_DESCExportingTYPE
ABAP_BOOL
Sort second column descending
EV_COLUMN2_IDExportingTYPE
IF_FDT_TYPES=>ID
Second sort column
EV_COLUMN3_DESCExportingTYPE
ABAP_BOOL
Sort third column descending
EV_COLUMN3_IDExportingTYPE
IF_FDT_TYPES=>ID
Third sort column
EV_COLUMN4_DESCExportingTYPE
ABAP_BOOL
Sort forth column descending
EV_COLUMN4_IDExportingTYPE
IF_FDT_TYPES=>ID
Fourth sort column
EV_COLUMN5_DESCExportingTYPE
ABAP_BOOL
Sort fifth column descending
EV_COLUMN5_IDExportingTYPE
IF_FDT_TYPES=>ID
Fifth sort column



Exceptions of Method GET_SORT_COLUMNS

CX_FDT_INPUT -

Example ABAP coding


DATA: lo_class TYPE REF TO IF_FDT_TABLE_OPERATION.
DATA: lv_EV_COLUMN1_DESC TYPE ABAP_BOOL,
lv_EV_COLUMN1_ID TYPE IF_FDT_TYPES=>ID,
lv_EV_COLUMN2_DESC TYPE ABAP_BOOL,
lv_EV_COLUMN2_ID TYPE IF_FDT_TYPES=>ID,
lv_EV_COLUMN3_DESC TYPE ABAP_BOOL,
lv_EV_COLUMN3_ID TYPE IF_FDT_TYPES=>ID,
lv_EV_COLUMN4_DESC TYPE ABAP_BOOL,
lv_EV_COLUMN4_ID TYPE IF_FDT_TYPES=>ID,
lv_EV_COLUMN5_DESC TYPE ABAP_BOOL,
lv_EV_COLUMN5_ID TYPE IF_FDT_TYPES=>ID,
lv_IV_TIMESTAMP TYPE IF_FDT_TYPES=>TIMESTAMP,
lv_other TYPE c.

CALL METHOD lo_class=>GET_SORT_COLUMNS(
EXPORTING
IV_TIMESTAMP = lv_IV_TIMESTAMP
IMPORTING
EV_COLUMN1_DESC = lv_EV_COLUMN1_DESC
EV_COLUMN1_ID = lv_EV_COLUMN1_ID
EV_COLUMN2_DESC = lv_EV_COLUMN2_DESC
EV_COLUMN2_ID = lv_EV_COLUMN2_ID
EV_COLUMN3_DESC = lv_EV_COLUMN3_DESC
EV_COLUMN3_ID = lv_EV_COLUMN3_ID
EV_COLUMN4_DESC = lv_EV_COLUMN4_DESC
EV_COLUMN4_ID = lv_EV_COLUMN4_ID
EV_COLUMN5_DESC = lv_EV_COLUMN5_DESC
EV_COLUMN5_ID = lv_EV_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!