下面的文章,首先介绍了如何登录并使用 SAP Business Accelerator Hub 来查询并试用包括 SAP S/4HANA Cloud 在内的 SAP OData 服务,接着以 SAP S/4HANA Cloud 的 Purchase Order OData 为例,介绍了如何针对 Edm.Date 和 Edm.DateTime 字段进行 filter 操作的语法. 汪子熙 185 次咨询 5.0 电子科技大学 计算机系...
而 $filter 操作的返回数据,包含在一个数组里。 换言之,通过 Key 值读取数据,暗含的语义是该操作会返回 0 或者 1 条数据。而 $filter 的语义是会返回 0 或者多条数据。 其实通过阅读和调试 SAP Gateway 框架源代码,也能得知二者的语义差异。 通过Key 值读取,最后实现的方法是 get_entity, 这个方法的返回参...
下面回答第二个问题:通过 Key 值和通过 $filter 操作读取数据,二者有何区别? 从使用方法和结果来看,二者都是指定输入值,然后得到符合条件的输出。 但是从返回结果的格式看,二者还是存在细微差别。 根据book_id 进行 $filter 操作的 HTTP Url 实例: https://{{host}}:{{port}}/sap/opu/odata/sap/ZBOOK_MAN...
在完整同步處理、增量同步或隨選佈建期間,佈建服務遇到預先雇用記錄時,會將下列 OData 查詢傳送至 SuccessFactors,並將「asOfDate」篩選條件設定為使用者的 startDate (例如 OfDate=2023-06-01)。 複製 https://[SuccessFactorsAPIEndpoint]/odata/v2/PerPerson?$format=json&$ filter=(personIdExternal in '1234...
该OData服务包括销售中的定价记录,定价条件有效期,定价等级和定价补充。 定价数据集成场景配置 为了激活上述的OData服务,用户必须创建并激活通信场景SAP_COM_0294。 OData服务列表 OData服务操作 读取服务: 读取服务支持绝大部分的查询操作,包括format, value, top, skip, count, inlinecount, orderby, select, filter...
如果我想用Postman调用OData服务创建Lead,像这种类型的参数,应该如何维护输入值? 如果请求正文的格式是json,则使用如下的格式维护类型为Edm.DateTime的输入参数: 这种JavaScript里的Date对象,使用toString方法可以获得实际日期: 成功创建的Lead,在C4C UI上显示如下图:...
query指定自訂 OData 查詢來讀取資料。No httpRequestTimeout用來取得回應的 HTTP 要求會有的逾時值 (TimeSpan值)。 此值是取得回應的逾時值,而非讀取回應資料的逾時值。 如果未指定,則預設值是00:30:00(30 分鐘)。No 取得特定日之資料的範例查詢:"query": "$filter=CreatedOn ge datetimeoffset'2017-07-31...
Query Option: $select=MessageGuid,CorrelationId,ApplicationMessageId,ApplicationMessageType,LogStart,LogEnd,Sender,Receiver,IntegrationFlowName,Status,AlternateWebLink,IntegrationArtifact,LogLevel,CustomStatus,TransactionId,PreviousComponentName&$filter=LogStart ge datetime'${property.LogStartDate}' and LogEnd le...
lv_filter_str = |OrderDate ge datetime'1996-07-04T00:00:00' and OrderDate le datetime'1996-07-25T00:00:00'|. ls_tree = /iwcor/cl_odata_expr_parser=>parse_filter_expression( iv_expression = lv_filter_str ). *--- the top node of tree should have two child nodes ASSIGN ls_tree...
In summary, it's not so easy to combine something that's natively OData (CAP) with other services that are pure REST (or even worse: SOAP). This is a totally different story when you have your entire services ecosystem fully working on top of OData, hence creating on...