sap-gateway

OData call with $filter and $expand simultaneously

Deadly 提交于 2020-01-25 18:03:43
问题 I've been trying to call a entity, but i'm supposed to call the results from its associated entities. I tried to do it with the following URL: /sap/opu/odata/XXXXXXXX/SERVICE_NAME/MatnrGetdetailCollection?$filter=IVendorId eq '1701' and ILanguage eq 'P' and IMaterial eq 'M-05'&$expand=MatnrClassGetdetail I must use the filter because the called function has these mandatory parameters. Am I making any mistake on the URL or the error isn't there? 回答1: In general $filter and $expand can be

OData call with $filter and $expand simultaneously

…衆ロ難τιáo~ 提交于 2020-01-25 18:02:57
问题 I've been trying to call a entity, but i'm supposed to call the results from its associated entities. I tried to do it with the following URL: /sap/opu/odata/XXXXXXXX/SERVICE_NAME/MatnrGetdetailCollection?$filter=IVendorId eq '1701' and ILanguage eq 'P' and IMaterial eq 'M-05'&$expand=MatnrClassGetdetail I must use the filter because the called function has these mandatory parameters. Am I making any mistake on the URL or the error isn't there? 回答1: In general $filter and $expand can be

SAP Gateway OData service with LCHR long string

我是研究僧i 提交于 2020-01-01 19:47:20
问题 I am developing a SAPUI5 application consuming oData services with SAP Gateway, where I have implemented a search functionality which is producing a SQL where condition. One part of the condition looks like follows: ... OR DESCRIPTION LIKE '%searchString%'... . In my database table I have a field DESCRIPTION which is of type LCHR length 32000 . The only problem is that the field DESCRIPTION cannot be in WHERE clause. What would be a correct approach of searching long strings in database table

Failed to load resource while consuming OData service

风流意气都作罢 提交于 2019-12-11 00:07:30
问题 Hello comunnity i need some help, i have my odata service already running and i have an url like this: https://myclient:port/sap/opu/odata/SAP/servicename_SRV/MaterialListSet This is my config, which I suppose is wrong. manifest.json "dataSources": { "invoiceRemote": { "uri": "https://myclient:port/sap/opu/odata/SAP/servicename_SRV/", "type": "OData", "settings": { "odataVersion": "2.0" } } } . . . "models": { ... "invoice": { "dataSource": "invoiceRemote" } } I get these two errors: Failed

SAP Gateway OData service with LCHR long string

坚强是说给别人听的谎言 提交于 2019-12-04 20:23:02
I am developing a SAPUI5 application consuming oData services with SAP Gateway, where I have implemented a search functionality which is producing a SQL where condition. One part of the condition looks like follows: ... OR DESCRIPTION LIKE '%searchString%'... . In my database table I have a field DESCRIPTION which is of type LCHR length 32000 . The only problem is that the field DESCRIPTION cannot be in WHERE clause. What would be a correct approach of searching long strings in database table via oData services? Do I need to hardcode the search functionality or is there some cleaner way? The