Zed FrameOpen workbench

ABAP Class Reference

Explore supported ABAP classes, method signatures, parameters and usage examples in the Zed Frame educational workbench.

CL_SALV_TABLE

Create and display a local table viewer, then access its configuration objects.

FACTORY

Create a local SALV table facade.

IMPORTING r_salv_table; CHANGING t_table
cl_salv_table=>factory(
  IMPORTING r_salv_table = salv
  CHANGING t_table = rows ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

GET_COLUMNS

Get column configuration for the displayed table.

RETURNING columns
columns = salv->get_columns( ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

GET_DISPLAY_SETTINGS

Get title and striped-row settings.

RETURNING display settings
settings = salv->get_display_settings( ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

GET_AGGREGATIONS

Get numeric aggregation settings.

RETURNING aggregations
aggregations = salv->get_aggregations( ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

GET_SORTS

Get row-sort settings.

RETURNING sorts
sorts = salv->get_sorts( ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

GET_FILTERS

Get local row-filter settings.

RETURNING filters
filters = salv->get_filters( ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

GET_SELECTIONS

Get row-selection configuration.

RETURNING selections
selections = salv->get_selections( ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

GET_LAYOUT

Get local layout settings.

RETURNING layout
layout = salv->get_layout( ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

DISPLAY

Render the local table to the SAP List Viewer output.

No parameters
salv->display( ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

REFRESH

Re-render after local table or display settings change.

No parameters
salv->refresh( ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

CL_SALV_COLUMNS_TABLE

Configure column ordering and retrieve columns from a local SALV table.

SET_OPTIMIZE

Use content-based widths in the local viewer.

EXPORTING value TYPE ABAP_BOOL
columns->set_optimize( value = abap_true ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

GET_COLUMN

Retrieve one column by field name.

EXPORTING columnname TYPE STRING; RETURNING column
amount_column = columns->get_column( 'AMOUNT' ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

GET_COLUMN_POSITION

Read the one-based column position.

EXPORTING columnname TYPE STRING; RETURNING position TYPE I
position = columns->get_column_position( 'AMOUNT' ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

SET_COLUMN_POSITION

Move a column to a validated one-based position.

EXPORTING columnname TYPE STRING; position TYPE I
columns->set_column_position( columnname = 'AMOUNT' position = 1 ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

CL_SALV_COLUMN_TABLE

Set visible labels, visibility, numeric formatting, and technical status.

SET_SHORT_TEXT

Set the short column label.

EXPORTING value TYPE STRING
amount_column->set_short_text( value = 'Amt' ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

SET_MEDIUM_TEXT

Set the medium column label.

EXPORTING value TYPE STRING
amount_column->set_medium_text( value = 'Amount' ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

SET_LONG_TEXT

Set the long column label.

EXPORTING value TYPE STRING
amount_column->set_long_text( value = 'Amount' ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

SET_VISIBLE

Show or hide a column.

EXPORTING value TYPE ABAP_BOOL
amount_column->set_visible( value = abap_true ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

SET_TECHNICAL

Mark a column technical so it is omitted from rendered output.

EXPORTING value TYPE ABAP_BOOL
amount_column->set_technical( value = abap_false ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

SET_OUTPUT_LENGTH

Set a bounded column output width.

EXPORTING value TYPE I, 1..512
amount_column->set_output_length( value = 12 ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

SET_DECIMALS

Set display precision for numeric columns.

EXPORTING value TYPE I, 0..14
amount_column->set_decimals( value = 2 ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

CL_SALV_DISPLAY_SETTINGS

Set the local list title and striped-row presentation.

SET_LIST_HEADER

Set the report heading.

EXPORTING value TYPE STRING
settings->set_list_header( value = 'Inventory' ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

GET_LIST_HEADER

Read the current report heading.

RETURNING header TYPE STRING
header = settings->get_list_header( ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

SET_STRIPED_PATTERN

Enable alternating row shading in the viewer.

EXPORTING value TYPE ABAP_BOOL
settings->set_striped_pattern( value = abap_true ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

CL_SALV_AGGREGATIONS

Add, remove, and clear totals on numeric SALV columns.

ADD_AGGREGATION

Add TOTAL, MINIMUM, MAXIMUM, or AVERAGE to a numeric column.

EXPORTING columnname TYPE STRING; aggregation TYPE STRING
aggregations->add_aggregation(
  columnname = 'AMOUNT'
  aggregation = 'TOTAL' ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

REMOVE_AGGREGATION

Remove one local aggregation.

EXPORTING columnname TYPE STRING
aggregations->remove_aggregation( columnname = 'AMOUNT' ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

CLEAR

Remove all aggregation settings.

No parameters
aggregations->clear( ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

CL_SALV_SORTS

Add and clear local sort specifications.

ADD_SORT

Sort a column ascending or descending.

EXPORTING columnname TYPE STRING; sequence TYPE STRING
sorts->add_sort( columnname = 'CATEGORY' sequence = 'SORT_UP' ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

REMOVE_SORT

Remove one sort specification.

EXPORTING columnname TYPE STRING
sorts->remove_sort( columnname = 'CATEGORY' ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

CLEAR

Remove all sort specifications.

No parameters
sorts->clear( ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.