on 03-07-2017 6:41 PM
Hello experts,
I have made an SAPUI5 application that uses an ABAP OData service in order to performs some action over a set of tasks. This set is determined by the user that is currently logged in, i.e. the sy-uname.
Now I want that that application will be initialized with an arbitrary user, known to the SAPUI5 application when it starts.
I want to launch the UI5 app with a parameter PersonnelNumber=xxxxxxx and I want that parameter to be passed with every request made to the OData service in order to make the OData service work with the chosen PersonnelNumber.
I've seen that I could use serviceUrlParams like this:
var oModel =new sap.ui.model.odata.v2.ODataModel({
serviceUrl:"http://services.odata.org/Northwind/Northwind.svc",
serviceUrlParams:{
PersonnelNumber:"27161617"}});
https://sapui5.hana.ondemand.com/#docs/guide/6c47b2b39db9404582994070ec3d57a2.html
But I don't know how to get that number in the ABAP OData service.
Can someone kindly help me?
Thank you.
Pietro
check if this one helps
IO_TECH_REQUEST_CONTEXT->GET_SEARCH_STRING
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
your odata service may be able to receive parameters via filtering on the query string such as:
../service?$filter=COLUMN eq 'value'
please check out the odata filtering syntax for other operations
let us know if this helps you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.