cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Projection CDS provider contract

alikhach
Explorer
10,658

Hello,

I've created projection abap CDS and see warning message: Transactional Provider Contract expected for Projection View XXXX.

Eclipse offers to add a solution from 3 options:

  • provider contract transactional_query
  • provider contract transactional_projected_entity
  • provider contract transactional_extensibility_projection

I've added first and warning disappeared. It is ok.

But I can't find what all this options mean? What is provider contract? And why i have to add it?

BR,

Alex

Accepted Solutions (0)

Answers (1)

Answers (1)

fabianfellhauer
Product and Topic Expert
Product and Topic Expert

Hi Alex,

the addition provider contract is used for defining an intended runtime for your CDS Projection View. Today, most of the CDS Projection Views are used in the context of transactional RAP applications. By that, feature restrictions are applied, to guarantee the successful execution in the transactional runtime.

As there are different runtimes with different capabilities, the data model of an application needs to be prepared for such a runtime. So if you want to create a CDS Projection View for a transactional RAP application in order to create a specific view on your business object, please use the addition provider contract transactional_query.

Further provider contracts will be supported in the near future, to give access to more features in different runtimes.

Best regards

Fabian Fellhauer

getnikhilk
Product and Topic Expert
Product and Topic Expert

nice explaination. Thank you Fabian.

Battousai
Newcomer
0 Kudos
Thanks for post and thanks for explanation.