cancel
Showing results for 
Search instead for 
Did you mean: 

Cross app navigation to standard app with startup parameters

DanieleInc
Participant
0 Kudos
1,492

Hi everyone,

I'm trying to cross-app navigate from a custom app where I write this snippet:

	// #AccountingDocument-displayDocument?sap-ui-tech-hint=GUI
			var hrefNotification = (sap.ushell && sap.ushell.Container &&
				sap.ushell.Container.getService("CrossApplicationNavigation").hrefForExternal({
					target: {
						semanticObject: "AccountingDocument",
						action: "displayDocument"
					},
					params: {
						"sap-ui-tech-hint": "GUI"
					}
				})) || "";
			var oCrossAppNavigator = sap.ushell.Container.getService("CrossApplicationNavigation"); // get a handle on the global XAppNav service
			oCrossAppNavigator.toExternal({
				target: {
					shellHash: hrefNotification
				}
			}); // navigate to Supplier application

to FB03 standard app (SAP GUI Application Type).

The requirement is to execute this app with input parameters already filled by the caller custom app :

and executed :

Can anyone help me?

Thanks

TobiT
Participant
0 Kudos

Hi danieleincampo,

what is the error you are facing? Did you try calling the generated link manually?

In addition you can skip the hrefForExternal:

oCrossAppNavigator.toExternal({
  target: {
    semanticObject: "AccountingDocument",
    action: "displayDocument"
  },
  params: {
    "sap-ui-tech-hint": "GUI"
  }
});
View Entire Topic
former_member246153
Active Contributor

Hi Daniele,

You can pass the additional parameters in the params section

Please check this link and also please check the standard app tile for the available parameters.

Regards,

Srinivasan V