Skip to Content

Error: Calculated field in CDS BOPF Draft Based.

Hi Experts,

I have created one CDS View with draft capabilities and able to successfully consume in cloud platform with Fiori Elements.

But If I am trying to add a calculated field in the consumption view, I am getting the error "Calculated field TEST is not allowed. [SADL Draft Runtime]".

To overcome this problem I have added the calculated column as part of my DB table, then it worked fine, but are we not supposed to use calculated fields with draft enabled CDS Views? Should I go for virtual elements?

Please help



snapshot.png (15.8 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Aug 05, 2020 at 07:51 AM

    Hi, I resolved this by myself. I have deleted the draft table and activated the view again it worked .

    One more observation: Previously I have include the calculated field directly in the consumption view.

    Now I have deleted the Draft table and added the calculated field in the direct cds bofp view @VDM.View type: #TRANSACTIONAL.

    If Im adding the calculated field in the direct consumption view, problem is still there. I might be missing something here.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.