cancel
Showing results for 
Search instead for 
Did you mean: 

How to populate SELECT-OPTIONS field from FIORI application?

former_member611643
Participant
0 Kudos

Hello Gurus,

There is a FIORI app "MyFioriApp" and a transaction "MyTcode".

The "MyTcode" selection-screen has an "Item" field (it is SELECTION-OPTIONS field).

I want to implement the next logic:

In "MyFioriApp", the user selects multiple items (eg 1, 3, 4, 5, 9...) from the SmartTable and then clicks the "MyButton" button. Next, "MyTcode" is launched and the "Item" field should be filled with the values that were selected in "MyFioriApp".

I know how to run "MyTcode" and initialize one item but don't know how to pass multiple unordered items.

I would appreciate any helpful tips/hints/comments.

Thank you.

Code Sample (One item).

var oParam = {"Item": "7"};
var oCrossAppNavigator = sap.ushell.Container.getService("CrossApplicationNavigation");
var oHash = (oCrossAppNavigator && oCrossAppNavigator.hrefForExternal({
    target: {
       semanticObject: SemanticObject,
       action: Action
    },
    params: oParam
})) || "";

oCrossAppNavigator.toExternal({
    target: {
       shellHash: oHash
    }
});

Accepted Solutions (0)

Answers (0)