how is OData url select option implemented in the backend

50 阅读1分钟

Created by Jerry Wang, last modified on Sep 22, 2015

使用如下url 进行测试:
https://:4080/sap/opu/odata/sap/CRM_OPPORTUNITY/Opportunities?KaTeX parse error: Expected 'EOF', got '&' at position 22: …=Id,Description&̲top=1
返回结果只包含request的id和description:

但是在backend返回给gateway的entity response里,包含了整个opp header的所有数据:

那么这个selection的filter只能是在gateway上做的:

lo_expand_select包含我们url传入的id和description信息:

lo_expand_select包含我们url传入的id和description信息:

在这里指定只将id和description这两个property写回http response里:

要获取更多Jerry的原创文章,请关注公众号"汪子熙":