cancel
Showing results for 
Search instead for 
Did you mean: 

RAP navigation to object page of another app

robson_soares
Participant
0 Kudos

Dear all,

I did a search but didn't find a solution.

I have a RAP app which navigates to another app's list report.

The semantic object was created in transaction /UI2/FLPD_CUST, and in CDS the code is:

@Consumption.semanticObject: 'Z_SEMANTIC_OBJ'
(...)
type: #FOR_INTENT_BASED_NAVIGATION, semanticObjectAction: 'display'

This is working fine, but I need the navigation to be done to an object page passing DetailOrder parameter instead of the list report.

Part of current URL:

https://xyzwdd.clientname.com.br:12345/sap/bc/ui2/flp?sap-client=123&sap-language=PT#Z_SEMANTIC_OBJ-....

The URL wich navigates do the object page:

https://xyzwdd.clientname.com.br:12345/sap/bc/ui2/flp?sap-client=123&sap-language=PT#Z_SEMANTIC_OBJ-display&/DetailOrder('35596')

Is this possible?

Thanks!

View Entire Topic
schwaninger
Explorer
0 Kudos

As far as I know (based on S4 2021 release) it is not possible to do this using FOR_INTEND_BASE_NAVIGATION using RAP. You can try to create a virtual field with an URL or create a field with concatenate.

The content of the field should be #<semacticObject>-<Intent>?<Keyfield>=<Key> for example:

#SalesOrder-display?SalesOrder=1234567890

Then use #WITH_URL to create the link using the URL field (here outboundNavigationURL):

  @UI.lineItem: [{ position: 10, type: #WITH_URL, url: 'outboundNavigationURL' }]
documentNumber;

This will open the object page directly.