Show TOC

Contact DataLocate this document in the navigation structure

Get information about what UI annotations to use to display contact data on SAP Fiori UIs.

In some cases users of an application need to see contact data, for example, of business partners, customers, or employees.

You can use the following annotation set to inform a client that an entity contains contact information and map the CDS elements to the corresponding address field:
  • @Semantics

    This annotation set contains annotations to inform about telephone numbers, email addresses, names, addresses, and contacts.

    Example The following example contains sub-annotations belonging to the annotation set @Semantics. For a complete list, see section Semantics Annotations linked below.
    Sample Code
    ...
    define view Employees as select from ...
    {
      key EmployeeId, 
      
      @Semantics.name.givenName
      FirstName, 
    
      @Semantics.name.additionalName
      MiddleName, 
    
      @Semantics.name.familyName
      LastName, 
    
      GenderCode, 
    
      @Semantics.telephone.type: [#WORK, #PREF] 
      PhoneNumber, 
    
      @Semantics.telephone.type: [#FAX] 
      FaxNumber, 
    
      @Semantics.telephone.type: [#CELL] 
      MobilePhoneNumber,
    
      @Semantics.eMail.address 
      EmailAddress, 
    
      PreferredLanguage,
    
      @Semantics.contact.birthDate 
      BirthDate
    }