Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to verify that SAP CDS redirect view supports write operations

Shulou Source: shulou.com Published: 2022-06-01 06:19:12 10月14日 Update

In this issue, the editor will bring you about how to verify SAP CDS redirect view support for writing operations. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.

According to this wiki, writing back to the view on CD is not supported:

Only read operations are also defined in the ABAP help. For other operations, such as writes, you must still use the original database table.

Write operation attempt test

I have a CDS view Zp_Mara_Redirect, and its corresponding database view is zmara_CDS.

When I try to insert some entries in the CD view, I get the following error message:

When I tried to insert some entries into the underlying database view of the CDS view, it was still impossible.

Once the database table is redirected to the CDS view, the ABAP code does not support changing the database itself. See the following example:

Insertion failed:

The above is the editor to share with you how to verify that SAP CDS redirect view supports write operations. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Tags: Views support data databases attempts validation content items Analysis original Professional small and medium Code Rich basic that is articles more messages knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Huawei Shulou Tech Info Docker Linux