Skip to Content
0
Sep 11, 2023 at 10:39 AM

CrossAppNavigation using SAPUI5 to standard app MB90

72 Views

Hello,
I am trying to navigate to MB90 TCode using cross app navigation and passing the parameter as Material Document and setting it to material document. But I after passing the parameter it is not navigating properly. It navigates to the second screen of the tcode and does not filters the document list by parameter, instead I can see all the documents there.
Please suggest me how can I navigate to MB90 using cross app navigation and passing Material Document as default parameter.

Here is the code snippet.

handlePrintGRLabel: function (oEvent) {
var docNo = this._oPostDialog.getModel().getProperty("/SuccessDocuments")[0].DocNo;

sap.ushell.Container.getServiceAsync("CrossApplicationNavigation").then(function (oService) {
oService.hrefForExternalAsync({
target: {
semanticObject: "MaterialMovement",
action: "outputMaterialDocumentsInWebGUI"
},
params: {
"MaterialDocument": docNo

}
}).then(function (sHref) {
oService.toExternal({
target: {
shellHash: sHref
}
});
});
});
},