Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Filter table in sapui5: Internal server error

Hi Experts,

I can get the data from SAP tables and show them in the SAP UI5 table.

Although, when I try to filter the data in table.bindRows , the system gives the HTTP internal server error.

oTable.bindRows({

  path: '/RFCdataSet',

  filters:  [new sap.ui.model.Filter({

                path: 'RfcDesc',

                operator: sap.ui.model.FilterOperator.EQ,

                value1: "Test1"

           })]

  });

I have attached the files.

Could anyone let me know the cause of the error?

Regards,

Amruta

err2.png (106067 B)
err1.png (25269 B)
Tags:
Former Member
Former Member replied

I could resolve this issue. Apparently, GET_ENTITYSET method needs to pass another parameter for filtering. I am using a function module which is mapped to GET_ENTITYSET method.

My key and the filter parameter were the same. So I had to create a dummy search parameter which acts as an input parameter for the function module.

Since, the result is mapped to the parameter "RfcDesc" (in the 3rd row) , I can not use it as input parameter for my funciton module.

Thus, I created another parameter "SearchRfcDesc" which is then passed to the function module.

Function module code snippet:


This resolved the issue and I then get the below result:

Regards,

Amruta

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question