on 10-12-2015 12:15 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Im trying to do filter in server side itself! is that ok. I got value to be filtered, send request to backend values get filtered and gets return. Table gets refreshed after updating backend value.
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also, when i test the oData service independently, using url
http://wfgteides01.wfg.local:8000/sap/opu/odata/sap/Z_ONLINE_EFC_SRV/RFCdataSet?$filter=RfcDesc eq Test1
I get the below error
Could anyone please let me know the cause behind this? Or where to look for the error?
Regards,
Amruta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check for ABAP runtime errors in the back-end SAP system using transaction ST22.
Regards,
Scott
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
Put an external breakpoint in your backend gateway services and debug. I think this is due to runtime errors in the backend.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.