SAPSAP 实用篇

ABAP gateway里OData url里的select操作

2021-02-27  本文已影响0人  华山令狐冲

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

使用如下url 进行测试:
https://<host>:4080/sap/opu/odata/sap/CRM_OPPORTUNITY/Opportunities?select=Id,Description&top=1
返回结果只包含request的id和description:

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

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

clipboard8

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

在这里插入图片描述

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

image.png 在这里插入图片描述 在这里插入图片描述

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


在这里插入图片描述 clipboard17
上一篇 下一篇

猜你喜欢

热点阅读