SAP CDS redirect view支援寫操作嗎,一個實驗來驗證

i042416發表於2019-12-16

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

SAP 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.

SAP 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:


SAP CDS redirect view支援寫操作嗎,一個實驗來驗證

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

SAP 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:

SAP CDS redirect view支援寫操作嗎,一個實驗來驗證

Insertion failed:

SAP CDS redirect view支援寫操作嗎,一個實驗來驗證

要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":

SAP CDS redirect view支援寫操作嗎,一個實驗來驗證


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2668894/,如需轉載,請註明出處,否則將追究法律責任。

相關文章