SAP CDS redirect view支持写操作吗,一个实验来验证
发布日期:2021-06-30 14:03:30 浏览次数:2 分类:技术文章

本文共 699 字,大约阅读时间需要 2 分钟。

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

clipboard1

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.

clipboard2

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:

clipboard3

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

clipboard4

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:

clipboard5

Insertion failed:

clipboard6

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

公众号截图

转载地址:https://jerry.blog.csdn.net/article/details/103571747 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:SAP技术 - How to create a CDS redirect view for a given database table
下一篇:SAP CDS重定向视图和直接读这两者场景的性能比较

发表评论

最新留言

哈哈,博客排版真的漂亮呢~
[***.90.31.176]2024年04月23日 23时26分01秒