Updated: July 29, 2024

Table Features

Intro

The SAP Fiori elements templates support the features and settings for a table detailed below.

For design information see the table guidelines, starting with Table Overview, and the links within this article.

Feature Availability

 

Table Settings

 

Availability

Column Header Labels You set these.
Asterisk in Labels for Mandatory Fields In the object page, by default, a red asterisk (*) displays in the column header label for mandatory table fields with SAP Fiori elements for OData V4.
Tooltips on Column Headers Default
Clear All The Clear All  checkbox is displayed by default in both the list report and object page when the selection of multiple rows is enabled for:

  • Grid tables
  • Analytical tables
  • Tree tables

You can change the default.

Select All The Select All  checkbox is displayed by default when the selection of multiple rows is enabled for a responsive table.

You can change the default.

Sticky Column Header Behavior Default, you can turn it off.
Column Width The default width depends on the column contents. You can change it.
Column Importance In a responsive table, by default, all columns have an importance of none, except for list report columns for key fields. These have high importance.

You can change the level of importance.

 Freezing Columns

Available in analytical tables, grid tables, and tree tables for the number of columns that you decide.

Labels for Multiple Fields in a Column Available in responsive tables with SAP Fiori elements for OData V4
Ascending Sort Order on a Column Default, you can change it.
Quick Sort on a Column Available
Grouping Available in responsive and analytical tables, not in grid tables
Grouped Totals in Analytical Tables For now, an asterisk (*) is displayed instead of a figure for grouped totals of items with different units of measure in the same group.
Number of Table Rows Displayed at Once Work with the development team to find the best compromise between optimal user experience and optimal technical performance.
No Data Found Text Default, replace the generic placeholder text with text that’s meaningful to the user.
Message Strip above the Table You can display a custom message above the table in the:

  • List report, object page, and analytical page with SAP Fiori elements for OData V2
  • List report with SAP Fiori elements for OData V4

In the object page, by default, a message strip is displayed when there are errors in the table.

When there are multiple messages, the one with the highest severity is displayed.

Generic Context Menu Activated by default for:

  • All table types with SAP Fiori elements for OData V2
  • All table types except the tree table, with SAP Fiori elements for OData V4
 

List Report and Analytical Page Only

 

Availability

Number of Table Levels Expanded at Initial Load Default, you can change the number for the tree table and analytical table.
 

List Report Only

 

Availability

Copy Available
 

Object Page Only

 

Availability

Message Strip for Rows with Errors Default
Rows Displayed in a Grid Table Depends on the table height, which adjusts to the available onscreen space for an object page with:

  • Anchor bar navigation and a single section that contains only a grid table
  • Tab bar navigation and a current tab that contains only a grid table

Table Settings


Tooltips on Column Headers

On desktop applications, all table columns display tooltips, based on the text in:

  • Common.QuickInfo, when it’s visible
  • The column label, in all other cases

Tooltips are available only in desktop applications because users must hover their mouse on the column header to see them.


Clear All / Select All

When the selection of multiple rows is enabled for a table in the list report and object page, the Clear All checkbox is displayed by default in the selection column header for all tables, but the responsive table. You can change the default.

Information
To select a range of items when the Clear All checkbox is displayed, users can select an item, press Shift, and select others.

 Table Type

Selection Default

Users Can Select

Grid table

Analytical table

Tree table

Clear All   Up to 200 rows by default

We recommend you consult the application development team on how changes to the limit would impact performance.

Responsive table Select All   All the rows displayed on the interface, not all the rows in the table.

A message informs users that “Only the first n of the items you selected were added to the selection,” where “n” equals the number of items loaded on the interface.

Warning
For grid tables, analytical tables, and tree tables, changing the default Clear All checkbox to the Select All  checkbox can lead to performance issues because Select All   loads all the table rows to the frontend.

Always ask the application development team about the impact on performance before you consider such a change.

Guidelines
When the object page is in tab bar mode, we recommend enabling the Clear All action when the selection of multiple rows is enabled.

Column Width

The default column width varies according to the column contents:

  • Text: can range from 3 to 20 rem
  • Image: 5 rem
  • Rating or progress indicator: 6.875 rem
  • Chart: 20 rem

You can can change the width.

You can also ask the application developers to ensure the column width takes into account the contents of both the column and the column header.

Developer Hint
For more information, refer the development team to Setting the Default Column Width.

Column Importance in Responsive Tables

By default:

  • Key fields have high importance in list reports.
  • Other columns have the importance of none and are handled like columns assigned medium importance.

You can change the level of importance.

The importance assigned to a column determines whether or not the table displays its values onscreen when screen space is limited:

  • The values from high importance columns are always displayed onscreen — as columns or in the pop-in area, depending on the screen size.
  • The values in columns with low importance are first to be hidden.

When at least one column is hidden, the table toolbar displays the Show Details button so users can view the previously hidden columns in the table pop-in area. After the user clicks Show Details to display the column, the action changes to Hide Details.

You can also assign an importance to custom columns.

For more information, see:


Freezing Columns

You can freeze the first columns of an analytical table, grid table, or tree table so that they always remain visible when the users scroll the table horizontally. You specify the number of columns.

Developer Hint
For more information, refer application developers to Tables.

Labels for Multiple Fields in a Column

By default, with SAP Fiori elements for OData V4, when a column contains a field group with more than one field, the labels for those fields are not displayed.

You can enable the display of a label for each field. The field group label then is displayed as the column title in the header.


Sort Order

By default, the sort order for a column is ascending.

You can:

  • Set the default sort order to descending.
  • Define other, customized sort orders.

For more information, see the sort guidelines according to table type:


Quick Sort on a Column

Available for any sortable column.

When a column contains a combination of fields, such an ID and a description or a field group, the users can specify a sort and sort order for each field in the column with the quick sort.


Number of Table Rows Displayed at Once

By default, a responsive table loads the following number of rows at once:

  • 20 rows in a list report.
  • 10 rows in an object page with multiple sections.

When more rows exist, the users can click the More button at the end of the table to view additional rows.

With SAP Fiori elements for OData V2, you can change the default number.

For an object page that includes one section and one subsection, the responsive table loads 20 rows and the user can scroll to view additional ones.

Guidelines
Work with the development team to find the best compromise between optimal user experience and optimal technical performance.

Grouping

Grouping is available in responsive and analytical tables.

You can define the format of the grouping headers.

For more information, see:



No Data Found Text

By default, the following text is displayed when no data is found.

  • When the user has not applied filters, the text is “No data found.”
  • When the user has applied filters from the personalization dialog, the text is: “No data found. Try adjusting the search or filter parameters.”
Guidelines
Replace the generic text with text that’s meaningful to the user.


Generic Context Menu

By default, on desktop and mobile applications, a generic context menu is activated and cannot be deactivated for:

  • All table types but the tree table with SAP Fiori elements for OData V4
  • All table types with SAP Fiori elements for OData V2

The generic context menu generally behaves like the standard context menu described in the corresponding table articles, linked below.

The context of the generic context menu can be either a single row or multiple selected rows.

The following action types are available on the generic context menu:

  • All toolbar actions that become active only if rows are selected

Developers call them “bounded toolbar actions” or “context-dependent actions.”

  • The “Open in New Tab or Window” action

It allows up to 10 items to be opened in separate tabs or windows depending on the user’s browser settings.

Similar to the standard context menu, if a control inside a row is the “click target”, and the control also provides a context menu, the control menu “wins”.

Single row context - a non-selected row is the
Single row context - a non-selected row is the "click target" so the context menu applies to the non-selected row
Multiple row context - one or more selected rows are the
Multiple row context - one or more selected rows are the "click target " so the context menu applies to all the selected rows

List Report and Analytical Page Only

Initial Expansion of Table Levels

By default, on initial load, the following expandable tables are expanded to this number of levels:

  • Responsive table: 1 level
  • Tree table: 1 level
  • Analytical table: 0 levels

You can change the default value for the tree table and analytical tables.

Developer Hint
For more information, refer the development team to Initial Expansion Level for Tables in List Reports & Analytical List Pages.

Object Page Only

Message Strip for Rows with Errors

When table rows contain errors, a message strip is displayed above the table. It contains a Filter Items link that lets users see only the rows with errors. After the users click the link, a Clear Filter link replaces it.


Related Links