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?
If this is not possible could you explain how to do it "the other way"?
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:
@UI.Lineitem
add DataFieldWithIntentBasedNavigation
and point it to your field name coming from CDS reportthe only difference from this GIF is that you needn't to specify GUI_NAVIGATE
property
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.