Show TOC

Based on IntentLocate this document in the navigation structure

Get information about how to provide navigation related on actions that are executed on SAP Fiori UIs.

This navigation type contains an action that is related to a semantic object. This combination of action and semantic object is an intent. The annotation @Consumption.semanticObject is required for navigation based on intent. The client decides how to react when this navigation is triggered.

Figure 1: Example of dataField of type #FOR_INTENT_BASED_NAVIGATION
You can use the following dataField type to expose the intent to navigate without specifying how this navigation is to be resolved:
  • #FOR_INTENT_BASED_NAVIGATION
    Example In the following example, the intent 'Show' (action) 'BusinessPartner' (semantic object) is expressed. The client can, for example, open a separate application to display the details of the corresponding business partner.
    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,
        label: 'Show customer-details',
        type: #FOR_INTENT_BASED_NAVIGATION,
        semanticObjectAction: 'Show'				-- Action
      } ]
      @Consumption.semanticObject: 'BusinessPartner'	-- Semantic Object
      so.customer.company_name as CompanyName,
      ...
    }