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

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.

SAP CDS redirect view支持写操作吗,一个实验来验证_第1张图片

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:

SAP CDS redirect view支持写操作吗,一个实验来验证_第2张图片

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

SAP CDS redirect view支持写操作吗,一个实验来验证_第3张图片

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:

SAP CDS redirect view支持写操作吗,一个实验来验证_第4张图片

Insertion failed:

SAP CDS redirect view支持写操作吗,一个实验来验证_第5张图片

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
SAP CDS redirect view支持写操作吗,一个实验来验证_第6张图片

你可能感兴趣的:(SAP CDS redirect view支持写操作吗,一个实验来验证)