Search code examples
abapsap-fiorisap-web-idecds

Navigate from Fiori List Report to standard app like hot-spot?


I have created List Report Fiori App based on CDS view I've created before. Is there any possibility to use some annotations in existing and/or additional CDS view to create a hotspot smart field on Vendor number?

I.e. when I click on that it will navigate me to standard "Business Partner" App for this vendor?

List Report screen shot

If this is not possible could you explain how to do it "the other way"?


Solution

  • What you need is called smart-link with intent-based navigation: a link which navigates to business object details by reading its semantic properties aka semantic object.

    Semantic object can be defined in two ways:

    1. Through template-based approach, via annotation modeler in Web-IDE. Inside @UI.Lineitem add DataFieldWithIntentBasedNavigation and point it to your field name coming from CDS report

    the only difference from this GIF is that you needn't to specify GUI_NAVIGATE property

    1. Through column definition in CDS view

      @Consumption.semanticObject: 'BusinessPartner'
      @UI: {
            identification: [{label: 'Vendor No', position: 10}],
            lineItem:[{
              position: 10,
              semanticObjectAction: 'manage',
              type: #WITH_INTENT_BASED_NAVIGATION
              }],
             selectionField.position: 10
           }
      

    Semantic object are stored in /UI2/SEMOBJ and /UI2/SEMOBJ_SAP tables, check the correct object before developing.