cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Fiori click link to open new tab to view purchase requisition

jackyhjj_sn28
Explorer
0 Kudos
2,311

Hi,
I am developing a custom app in Fiori.

There will be a table or a popover that show certain number of purchase requisition.
I have a requirement to have a hyperlink of Purchase Requisition Number and when click, it will open a new tab to view the details of the PR (something like ME53N).

Looking the solution in the internet and there is no any similar requirement. Maybe someone out there has ever done this before in Fiori ?
Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

saurabh_vakil
Active Contributor

If you already have a Fiori tile and target mapping created for ME53, just trigger navigation to the same using the semantic object and action for the ME53 target mapping, on clicking the PR number. You can refer to Configuring Navigation which explains how to configure navigation.

jackyhjj
Explorer
0 Kudos

hi thanks for the response saurabh.vakil

Just to clarify,
so if i have a custom app that shows list of PR number,

I can assign click event on the PR number, and will ME53 for the respected PR number in Fiori ?

NooruBohra
Active Participant
0 Kudos

Hi,

to add on what Saurabh already said. You need to perform navigation to the #SemanticObject-Action [for ME53 if there's a Tile already then you should see this in the URL] with a Parameter. You can use below link for code snippet and samples.

Cross Application Navigation between SAPUI5 applic... - SAP Community

Farooq
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Jacky,

You can use an attribute target="_blank" in XML view to open any link in a new tab

Example :

XML View : <Link text="OPEN LINK" href="<URL>" target="_blank" />

Controller :

sap.m.URLHelper.redirect("<URL>", true)

second attribute in above snippet 'true' will open the provided link in new tab.

FYR :

Link: https://sapui5.hana.ondemand.com/#/api/sap.m.Link%23controlProperties

URLHelper: https://sapui5.hana.ondemand.com/#/api/sap.m.URLHelper%23methods/Summary

Hope this helps

Regards,

Farooq

jackyhjj_sn28
Explorer
0 Kudos

Hi farooqkoppal
thanks for the response.

I understand how the hyperlink work, but is there any way to open the link of ME53 ?