美文网首页SAPSAP 实用篇SAP 修行
SAP CDS redirect view支持写操作吗,一个实验

SAP CDS redirect view支持写操作吗,一个实验

作者: 华山令狐冲 | 来源:发表于2019-12-14 10:16 被阅读0次

According to this wiki, write back on CDS view is not supported:

And also it is defined in ABAP help that only read operation is supported. For other operation like write, you have to still use original database table.

Test on write operation attempt

I have a CDS view Zp_Mara_Redirect and its corresponding database view is zmara_cds.
When I try to insert some entry to CDS view, I get following error message:

When I try to insert some entry to CDS view's underlying database view, still not possible either.

Once the database table is redirected to a CDS view, the database itself is not supported to be changed by ABAP code. See this example below:

Insertion failed:

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


相关文章

网友评论

    本文标题:SAP CDS redirect view支持写操作吗,一个实验

    本文链接:https://www.haomeiwen.com/subject/flrcnctx.html