cancel
Showing results for 
Search instead for 
Did you mean: 

SemanticObject related Annotations and their Use.

max_mueller007
Explorer
0 Kudos

I am trying to understand how to use the Semantic Objects to Navigate across the Apps, while using ABAP Cloud CDS while having limited knowledge of Fiori Elements. I went through various posts and portals, but I could not gain complete clarity on the topic.

I came across the following annotation examples on multiple links including Navigation from an App (Outbound Navigation) - Documentation - Demo Kit - SAPUI5 SDK (ondemand.com) :

1.

UI.LineItem: [{ semanticObject: 'EPMProduct', semanticObjectAction: 'manage_st', label: 'IBNWithContext', requiresContext: true, type: #FOR_INTENT_BASED_NAVIGATION }]

2. 

@UI.lineItem: [ { label: 'My Button for navigation', semanticObjectAction: 'manage', type: #FOR_INTENT_BASED_NAVIGATION } ]

@Consumption.semanticObject: 'MySemanticObject'

 

Questions:

1. How does the use case differ between using the SemanticObject property under UI.LineItem and Consumption annotations.

2. I am asked to provide the name of the SemanticObject and SemanticObjectAction while created the application in Business Application Studio. Should I refer to this Semantic Object in my ABAP CDS to navigate to the corresponding app, which I am not sure how it will work, or can Semantic Object and its Action be also specified in the ABAP layer as well? (Most posts online show the creation of Semantic Objects using TCode, which is not feasible on ABAP Cloud)

3. Going deeper into my confusion on the above 2 questions, how do I specify the name of my Semantic Object (if possible within ABAP), and how do I specify the reference to it?

4. Is it possible or i there a use case for specifying multiple Actions for the same Semantic Object, since in every example, I just saw one SemanticObjectAction?

 

It would be really helpful if someone could clear my concept, or help me with the links for the same, as I couldn't find clarity from the available info online.

Thank You.

Accepted Solutions (0)

Answers (1)

Answers (1)

ruchirsaxena
Participant
0 Kudos

Hi,

You cannot create Semantic Objects on Steampunk using ADT, create them in BAS while creating the application from Fiori template, and checking the radio buttons for Fiori Launchpad, and refer them in your ADT, they will work when you deploy your apps.

Provide the created Semantic Object you want to refer under @Consumption.semanticObject. It should work.

 

Best Regards,

Ruchir