Write back scenario is NOT supported by CDS redirect view

According to SAP help, write back on CDS view is not supported:

Write back scenario is NOT supported by CDS redirect view

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.

Write back scenario is NOT supported by CDS redirect view

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:

Write back scenario is NOT supported by CDS redirect view

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

Write back scenario is NOT supported by CDS redirect view

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:

Write back scenario is NOT supported by CDS redirect view

Insertion failed:

Write back scenario is NOT supported by CDS redirect view

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
Write back scenario is NOT supported by CDS redirect view