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

Invalid parameter type used at function 'eq' on ODATA execution

Hanumath
Participant
13,558

Hello Community,

I am facing an issue with the ODATA service execution as shown below

I found the issue is with the filter parameter on the Accounting Period/Year (CFISCALYEARPERIO eq '2018010')in the AR report. I have tried with the following API including the filter parameters

https://myXXXXX.sapbydesign.com/sap/byd/odata/ana_businessanalytics_analytics.svc/RPXXXXXXXXXXXXXXXX... eq 'SOB3') and (CCOMPANY_UUID eq 'XXX') and (CFISCALYEARPERIO eq '2018010')&$format=json.

I would like to pass the value of October 2018 to the highlighted field. Being it fiscal accounting year and period, I am passing the values as '2018010'.

Let me know how to resolve this.

Regards

Hanu K

Accepted Solutions (1)

Accepted Solutions (1)

may_thitsaoo
Active Contributor
0 Likes

Hi Hanu,

Please try as CFISCALYEARPERIO eq 102018 (without ' ' ).

Regards,

May

Answers (1)

Answers (1)

former_member226
Employee
Employee

Hi Hanu,

You need to use filter as "CFISCALYEARPERIO gt datetime'2018-10-01T00:00:00'"

You can refer to https://answers.sap.com/questions/10743713/how-to-use-odata-date-filter-query-to-filter-data.html

Thanks
Saurabh

Hanumath
Participant
0 Likes

Thanks, Saurabh. Unfortunately, this didn't work.

This field is not a Date Time field. It is a combination of the Fiscal Year and Accounting Period together.

Date Time conversion will not work on this.

Regards

Hanu K