cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass only time vale in url

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

JyotiD
Active Participant

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

0 Kudos

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