With URLLocate this document in the navigation structure

Get information about how to provide navigation from SAP Fiori UIs to external web sites, for example.

This type navigation type contains a reference to a URL to navigate to specific web sites, for example.

Figure 1: Example of dataField of type #WITH_URL
You can use the following dataField type to display links to external websites:
  • #WITH_URL
    Example In the following example, CompanyName is displayed as link referring to the CDS element WebsiteUrl.
    Sample Code
    ...
    define view ZExample_SalesOrder as select from sepm_cds_sales_order as so
    {
      key so.sales_order_id as SalesOrder,
      ...
      
      @UI.lineItem: [ { 
        position: 20,
        type: #WITH_URL,
        url: 'WebsiteUrl'	-- Reference to element
      } ]
      so.customer.company_name as CompanyName,
      
      so.customer.web_address as WebsiteUrl,
      ...
    }