Fiori Elements Object Page Annotations

An object page displays when an end user selects a row in a list report. A basic object page contains a header and a body.

@UI.headerinfo.typeName indicates the type name of the business object

@UI.headerinfo.title.value points to the ID data field

@UI.headerinfo.description.value point to the description data field.

@UI.identification displays in the General Information section and is similar to UI.LineItem.

@AbapCatalog.sqlViewName: 'ZAMARMNFE1'
@UI.headerInfo: {
    typeName: 'Sales Order',
    typeNamePlural: 'Sales Orders',

    title: {
        value: 'CustomerID'
    }
}
@EndUserText.label: 'ZAMARMN_FE1'
@Search.searchable: true
@OData.publish: true
define view ZAMARMN_FE1
  as select from SEPM_I_SalesOrder
{
      @UI.lineItem: [{position: 10 }]
      @UI.identification: [{position: 10 }]
  key SalesOrder                                                    as SalesOrderID,
      @UI.lineItem: [{position: 20 }]
      @UI.identification: [{position: 20 }]
      @UI.selectionField: [{position: 10 }]
      _Customer.BusinessPartner                                     as CustomerID,
      @UI.lineItem: [{position: 30 }]
      @UI.identification: [{position: 30 }]
      @Search: {
          defaultSearchElement: true,
          fuzzinessThreshold: 0.5
      }
      _Customer.CompanyName                                         as CustomerName,
      @UI.lineItem: [{position: 40 }]
      @UI.identification: [{position: 40 }]
      @UI.hidden: true
      @Search: {
          defaultSearchElement: true
      }
      _Customer.EmailAddress                                        as CustomerEmailAddress,
      @UI.lineItem: [{position: 50, importance: #MEDIUM }]
      @UI.identification: [{position: 50 }]
      @UI.hidden: true
      GrossAmountInTransacCurrency                                  as GrossAmount,
      @UI.lineItem: [{position: 60, importance: #MEDIUM }]
      @UI.identification: [{position: 60 }]
      @UI.hidden: true
      NetAmountInTransactionCurrency                                as NetAmount,
      @UI.lineItem: [{position: 70, label: 'Tax Amount', importance: #LOW }]
      @UI.identification: [{position: 70 }]
      @Semantics.amount.currencyCode: 'Currency'
      GrossAmountInTransacCurrency - NetAmountInTransactionCurrency as TaxAmount,
      @Semantics.currencyCode: true
      @UI.identification: [{position: 80 }]
      TransactionCurrency                                           as Currency,
      @UI.identification: [{position: 90 }]
      SalesOrderPaymentMethod                                       as PaymentMethod
}