cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unable to query/filter LastChangeDateTime in S/4 !

das_sappo
Participant
0 Likes
722

Dear Experts,

I am trying to perform a GET call through HTTP adapter or POSTMAN based on LastChangeDateTime value and the query is as below but getting 400 error. with out the below query parameter I am able to fetch records even select fields

https://<host>/sap/opu/odata4/sap/api_purchaseorder_2/srvd_a2x/sap/purchaseorder/0001/PurchaseOrder?$filter=LastChangeDateTime ge datetimeoffset'2024-01-01T00:00:00.000000Z'

And the records look like below

das_sappo_0-1725267194680.png

Please suggest what could be the issue here

 

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Dinu
Active Contributor
0 Likes

I suppose this is an oData V4 service. Data types (for time) and their literal representations in URls are different for oData 4 from oData V2. The following should work.

$filter=LastChangeDateTime ge 2024-01-01T00:00:00.000000Z

das_sappo
Participant
0 Likes
Thanks Dinu. It worked

Answers (0)

Ask a Question