cancel
Showing results for 
Search instead for 
Did you mean: 

Release custom CDS

dan0104-
Explorer
0 Kudos
9,227

Dear Gurus,

i would like to know how release a CDS created by eclipse , in order to have it available on Custom CDS View.

Thanks a lot

Daniele

Accepted Solutions (0)

Answers (2)

Answers (2)

YeeTeng
Explorer
0 Kudos

Hi Daniele,

You can release the CDS by clicking on the CDS, then file > Properties.

Click on the 'API State' tab > 'Add Release Contract', use System-Internally (Contract C1) > Next > mark indicator for 'Use in Cloud Development' and 'Use in Key User App' > Next > Next > Choose a TR and click 'Finish.

You will need to wait a while for the status to be updated to release. Try refreshing the window if it still doesn't work after a few mins.

Warm regards,
Yee Teng

udhagirid
Discoverer
0 Kudos

Hi Yee Chua

Thanks a lot for detailed steps to set Custom CDS view to released status,

Appreciate your help.

Gahan_Narayan
Explorer
0 Kudos
Hello Daniele, is it also possible to use the std custom CDS views created using the custom CDS views on public cloud in Eclipse directly?
Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Daniele,

this is not possible.

Custom CDS Views that are to be maintained using the Key User Tools have to be created using the Key User Tools.

I am however wondering what your use case is.

Why would you want a CDS view that has been developed using ABAP in Eclipse to show up in the Custom CDS View Key User App?

Best Regards,

Andre

dan0104-
Explorer
0 Kudos

Dear Andre,

my problem is the following:

I would like to have a CDS about production data (PP module) , but unfortunately or there isn't avalaible standard CDS in view browser , or there are CDS but with several information missing.

So i need to create my basic or composite CDS and i would like to know if user side there is a way to link two or more CDS without use ecplise (for example i thought Custom CDS App or other specific app / tool).

To sum up : there is a way to link two or more standard or (ecplise) basic CDS without use Ecplise to arrive to get consumable CDS usable in query browser or drill down or APF app.

Thanks a lot for your help.

Daniele Pistilli

gregorw
SAP Mentor
SAP Mentor
0 Kudos

Hi dan0104-,

I would suggest that you create a support incident asking for a released CDS view so that you can implement your requirement. And maybe already in parallel create an Idea in SAP S/4HANA Cloud Extensibility influencing campaign.

Best reards
Gregor

gregorw
SAP Mentor
SAP Mentor

Hi Andre,

today I've created a custom CDS View using ABAP in Eclipse and set it's Visibility to "Use in Key user Apps":

And I can use this View now without any issues in the Custom Logic:

I've replaced the sample coding from the Custom Logic Samples.

Best regards
Gregor

AndreasRiehl
Product and Topic Expert
Product and Topic Expert

Hello Gregor,

My answer is probably way too late, but anyhow ...

Technically, you can do this (as you proved). Nevertheless, it is not recommended.
When SAP does set (VDM CDS) views to "released for the usage in key user tools", these views have to meet a bunch of contracts and guidelines. Also, their changes over time are limited to compatible changes. All this is safeguarded by quite some checks which are not available to customers, as far as I know. Therefore it is not recommended to do what you did as it might break the extensibility artefacts that you build on top (at least when you change your view at a later point in time).

Examples for the contract are: No fields shall be removed or renamed, no parameters shall be added, the view shall not expose associations to non released views, association conditions shall not be changed, only released data elements shall be used, etc. (the complete rule set is quite complex).

Best Regards,
Andreas

gregorw
SAP Mentor
SAP Mentor
0 Kudos
Dear Andreas,thank you for joining the discussion with your comment / explanations. Who would be able to give some guidance regarding the checks that are done when SAP releases VDM CDS for customers? It would be great if we would not only have to rely on organisational measures to keep the released views stable.Best regards
Gregor
AndreasRiehl
Product and Topic Expert
Product and Topic Expert

Hello gregorw,

this is about the so called stability contract. There are 3 different types: C0, C1 and C2. The one that is relevant for the usage in key user tools is C1. There is some docu about the contracts available on SAP Help. Unfortunately, it does not talk about the specific requirements. I will check with the experts if there are more details available.

Best Regards,
Andreas

Update: At least parts of the checks are being performed when you do release a CDS View for the C1 contract in ADT as described in the help. The help article also describes the responsibilities of the developer for the C1 release.

0 Kudos

Hi Andre

I need exact that requirement (to add a CDS created in ADT on Custom CDS View Key User App). Is it possible to be done?

Reason for that is because I need to use this data source on my business object as an association, so that I can use it as a custom search help for a custom field.

Regards

Pierre

0 Kudos

Hi Did you find any solution for this . i am struggling with similar issue .