Skip to content

/AWS1/CL_QSTCOLUMNTOUNPIVOT

Specifies a column to be unpivoted, transforming it from a column into rows with associated values.

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_columnname TYPE /AWS1/QSTCOLUMNNAME /AWS1/QSTCOLUMNNAME

The name of the column to unpivot from the source data.

iv_newvalue TYPE /AWS1/QSTCELLVALUE /AWS1/QSTCELLVALUE

The value to assign to this column in the unpivoted result, typically the column name or a descriptive label.


Queryable Attributes

ColumnName

The name of the column to unpivot from the source data.

Accessible with the following methods

Method Description
GET_COLUMNNAME() Getter for COLUMNNAME, with configurable default
ASK_COLUMNNAME() Getter for COLUMNNAME w/ exceptions if field has no value
HAS_COLUMNNAME() Determine if COLUMNNAME has a value

NewValue

The value to assign to this column in the unpivoted result, typically the column name or a descriptive label.

Accessible with the following methods

Method Description
GET_NEWVALUE() Getter for NEWVALUE, with configurable default
ASK_NEWVALUE() Getter for NEWVALUE w/ exceptions if field has no value
HAS_NEWVALUE() Determine if NEWVALUE 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_COLUMNTOUNPIVOTLIST

TYPES TT_COLUMNTOUNPIVOTLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_QSTCOLUMNTOUNPIVOT WITH DEFAULT KEY
.