Skip to content

/AWS1/CL_CUSSORTATTRIBUTE

Defines the characteristics and rules for sorting by a specific attribute.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_name TYPE /AWS1/CUSFIELDNAME /AWS1/CUSFIELDNAME

The name of the attribute to sort by.

iv_order TYPE /AWS1/CUSSEGMENTSORTORDER /AWS1/CUSSEGMENTSORTORDER

The sort order for the attribute (ascending or descending).

Optional arguments:

iv_datatype TYPE /AWS1/CUSSEGMENTSORTDATATYPE /AWS1/CUSSEGMENTSORTDATATYPE

The data type of the sort attribute (e.g., string, number, date).

iv_type TYPE /AWS1/CUSSORTATTRIBUTETYPE /AWS1/CUSSORTATTRIBUTETYPE

The type of attribute (e.g., profile, calculated).


Queryable Attributes

Name

The name of the attribute to sort by.

Accessible with the following methods

Method Description
GET_NAME() Getter for NAME, with configurable default
ASK_NAME() Getter for NAME w/ exceptions if field has no value
HAS_NAME() Determine if NAME has a value

DataType

The data type of the sort attribute (e.g., string, number, date).

Accessible with the following methods

Method Description
GET_DATATYPE() Getter for DATATYPE, with configurable default
ASK_DATATYPE() Getter for DATATYPE w/ exceptions if field has no value
HAS_DATATYPE() Determine if DATATYPE has a value

Order

The sort order for the attribute (ascending or descending).

Accessible with the following methods

Method Description
GET_ORDER() Getter for ORDER, with configurable default
ASK_ORDER() Getter for ORDER w/ exceptions if field has no value
HAS_ORDER() Determine if ORDER has a value

Type

The type of attribute (e.g., profile, calculated).

Accessible with the following methods

Method Description
GET_TYPE() Getter for TYPE, with configurable default
ASK_TYPE() Getter for TYPE w/ exceptions if field has no value
HAS_TYPE() Determine if TYPE has a value

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_SORTATTRIBUTELIST

TYPES TT_SORTATTRIBUTELIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_CUSSORTATTRIBUTE WITH DEFAULT KEY
.