on 08-02-2018 11:23 AM
Hi,
How to pass Edm.Time function import parameter in url
i tried like this
/sap/opu/odata/SAP/ZPM_EQUIPMENT_TIME_SHEET_SRV/total_hourse?FromTime=PT18H31M41S&ToTime=PT18H31M41S
it is giving Error : Malformed URI literal syntax
Hi Sai,
For date, time , guid and decimal there are different queries than as expected. Try with below URL.
/sap/opu/odata/SAP/ZPM_EQUIPMENT_TIME_SHEET_SRV/total_hourse?FromTime= time'PT18H31M41S'&ToTime= time'PT18H31M41S'
Regards,
Tarun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello saimadhu
I might be little late for answering the question .
But the correct answer would be adding "time" before the value .
/sap/opu/odata/SAP/ZPM_EQUIPMENT_TIME_SHEET_SRV/total_hourse?FromTime eq time'PT18H31M41S' &ToTime eq time'PT18H31M41S' .
I was facing a similar problem with one of the APIs in API hub .
It is vary similar to the way we add daytime before EDM.dayTime .
Hope this helps.
I have given a link to the issue that I was facing .Few screenshots are attached ,Hope this helps
https://answers.sap.com/questions/13427590/how-to-pass-period-time-parameter-in-odata-url.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.