on 12-11-2013 9:33 AM
Hi,
Right now we are working on a project using SAPUI5 SDKs and facing a challenge. We are trying to consume a OData service from SAPUI5's JSON Model. We are passing a string value with + sign to the OData service url. But + sign by default got interpret as space and we were not able to process further. Later, we tried to encode + with a predefined js function encodeURIComponent() as %2B instead of + but, still we are facing the same challenge.
Please suggest some alternatives to encode + sign in Odata service request url. Thanks.
Sample Request URL - OData Service Request
http://xx.xx.xx.xx/z_sgm_pwh/GoodsReceipt1Tab(GRHUList='SomeStringWith+Sign')
Thanks,
Rajesh
Hi
Any solution for this ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you really need the + sign or can you use another character? %2B is the correct encoding for the plus sign. If it doesn't work maybe SAP itself replaces the + sign in the url with a space?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stephanie,
Thanks for your reply. Yes I need + sign, we are passing material number from mobile to backend. Its system generated number in our industry, we cant replace it just like that. Also we are thinking of raising OSS message to SAP. But before that just wanna check with expertise suggestions as well. Thanks again.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.