Your new RAP service previews, you press Go, but the list report table has no columns, and the object page is empty. Why, and what do you add?
Say your answer out loud first.
Practise another way
Fiori elements builds the screen only from annotations. Without @UI.lineItem there are no default columns, and without facets the object page has nothing to show. I create a metadata extension on the projection view and allow it with @Metadata.allowExtensions: true.
I add lineItem and selectionField for the list. I also add headerInfo, and facets with identification or field groups for the object page. A line item facet covers the child table. Then I refresh the preview.
Why it happens. A Fiori elements app has no screen code: it reads the OData metadata and its UI annotations. SAP's openSAP Fiori elements exercise states it plainly: with no line item annotations, no columns are shown.
The data is there (press Go and the request returns rows); there is just nothing telling the UI what to display.
Fix it in a metadata extension
- On the projection view add
@Metadata.allowExtensions: true. Without it the metadata extension cannot be used. - Right-click the projection view, New Metadata Extension, layer
#CORE. - Annotate:
@Metadata.layer: #CORE
@UI.headerInfo: { typeName: 'Travel', typeNamePlural: 'Travels',
title: { value: 'TravelID' } }
annotate entity ZC_Travel with
{
@UI.facet: [ { id: 'General', purpose: #STANDARD, type: #IDENTIFICATION_REFERENCE,
label: 'General', position: 10 },
{ id: 'Bookings', purpose: #STANDARD, type: #LINEITEM_REFERENCE,
label: 'Bookings', position: 20, targetElement: '_Booking' } ]
@UI.lineItem: [ { position: 10 } ]
@UI.selectionField: [ { position: 10 } ]
@UI.identification: [ { position: 10 } ]
TravelID;
@UI.lineItem: [ { position: 20 } ]
@UI.identification: [ { position: 20 } ]
CustomerID;
}
What each part does
@UI.lineItem= default columns;positionis relative ordering.@UI.selectionField= filter bar fields.@UI.headerInfo= list title and object page title.@UI.facet= object page sections.#IDENTIFICATION_REFERENCEshows fields marked with@UI.identification;#LINEITEM_REFERENCEwithtargetElementshows the child table, using the child's own@UI.lineItem.
Other checks when something still does not show
- The field must be in the projection view's element list; a metadata extension can only annotate elements that exist there.
- The child table needs the composition redirected in the projection and exposed in the service.
- Refresh the preview after activation; the browser can cache metadata.
- Users can still add columns through table settings, but defaults belong in annotations.
Where annotations belong. SAP's RAP guide recommends metadata extensions for UI annotations so the data model stays readable and each layer (#CORE up to #CUSTOMER) can add its own.
Explains that Fiori elements renders only from annotations, writes the metadata extension with lineItem, selectionField, headerInfo and facets, and remembers allowExtensions.
Assumes the data is missing and debugs the database, or edits the generated UI app instead of the CDS annotations.
Confusing 'no columns' with 'no data'. Pressing Go and seeing a row count, or checking the request in the browser, shows the data is fine and only annotations are missing.
- Which annotation makes a field a filter in the list report?
- How do you show the child entity as a table on the object page?
- Why does a metadata extension sometimes have no effect even though it activates?
4 official pages. Confidence: high. Checked 2 Dec 2026.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.