how is OData url select option implemented in the backend

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:
how is OData url select option implemented in the backend_第1张图片

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

how is OData url select option implemented in the backend_第2张图片
how is OData url select option implemented in the backend_第3张图片
how is OData url select option implemented in the backend_第4张图片

那么这个selection的filter只能是在gateway上做的:
how is OData url select option implemented in the backend_第5张图片

how is OData url select option implemented in the backend_第6张图片

how is OData url select option implemented in the backend_第7张图片

how is OData url select option implemented in the backend_第8张图片
how is OData url select option implemented in the backend_第9张图片
how is OData url select option implemented in the backend_第10张图片

lo_expand_select包含我们url传入的id和description信息:
how is OData url select option implemented in the backend_第11张图片

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

how is OData url select option implemented in the backend_第12张图片
how is OData url select option implemented in the backend_第13张图片
clipboard14
how is OData url select option implemented in the backend_第14张图片

在这里指定只将id和description这两个property写回http response里:
how is OData url select option implemented in the backend_第15张图片
how is OData url select option implemented in the backend_第16张图片

你可能感兴趣的:(ABAP,Backend,ABAP,Backend)