天天看点

Is there dedicated DDIC structure generated for each CDS entity

Xiumei has already made a good analysis on what artifacts will be automatically generated when a CDS view is activated, see her research here:

Is there dedicated DDIC structure generated for each CDS entity

And Xiumei raised a question: is there dedicated DDIC structure generated for each CDS entity during view activation?

Answer is NO. Even if you publish your CDS view into a odata service, there is still not DDIC structure generated for OData metadata model. Instead, transient structure are generated for each entity. You can execute and debug this report ZCDS_GET_METADATA_BY_SRV_NAME in AG3/001 to study yourself:

Is there dedicated DDIC structure generated for each CDS entity

By default I use the Odata service developed for smart template POC this March. You can replace it with your own Odata service.

Execute report, check mt_entities to get a understanding about generated entity type:

Is there dedicated DDIC structure generated for each CDS entity

And for step how to publish your CDS view into OData service, you can simply create a project in SEGW and include your CDS view as a reference.

I just attach the source code of report in case any one is interested in the

Is there dedicated DDIC structure generated for each CDS entity

implementation detail.

Is there dedicated DDIC structure generated for each CDS entity
Is there dedicated DDIC structure generated for each CDS entity
Is there dedicated DDIC structure generated for each CDS entity
Is there dedicated DDIC structure generated for each CDS entity
Is there dedicated DDIC structure generated for each CDS entity
Is there dedicated DDIC structure generated for each CDS entity
Is there dedicated DDIC structure generated for each CDS entity

继续阅读