admin管理员组

文章数量:1290778

Fairly new to SAPUI5 and OData.

As a proof of concept exercise, I have created an SAPUI5 application via vscode that is calling an OData service (OData 2.0) from a SAP backend

The OData service has three different (unrelated) entity sets that use vendor number to retireve data from some database tables and present this data back to the application. Each of these entities has its own function module to handle the GetEntity read and GetEntitySet query.

As a test I have the vendor number hardcoded in each of the three function modules in order to get the required data from the DB tables. Vendor number (LIFNR) is also defined as an optional import parameter on each of these FMs .

The SAPUI5 app is working fine at the moment and I'm seeing all the data as expected.

However, the next step is to remove the hardcoded vendor value and create a form or similar on the app which will allow the user to input the vendor number and this will then be passed back to the OData service to get the data and my question is how do I do that?

Will I need multiple controllers and views (for the inital form and then the data display) and how do I pass the user input back to the OData (and the function modules) BEFORE any data is sent back to the front end?

Any and all help greaatly appreciated.

本文标签: SAPUI5 and OData Passing user input value to import parameter of Function moduleStack Overflow