Skip to Content
0
Nov 19, 2018 at 05:16 PM

How to expose CDS entities in Gateway service builder

999 Views

I create a CDS view and Odata service. The elements I define in the view come up in the browser when I run the Odata service. However I go to gateway service builder (/nsegw). I don't see those fileds in the entity types and I am not able to use them in SAP co pilot. What changes do I need to make?

// the code written in cds view

@UI:{dataPoint:{description:'Sales Document'}}key vbeln as SalesDocument,@Consumption.hidden:false

@UI:{dataPoint:{description:'Date on Which Record Was Created'}} erdat as DateonWhichRecordWasCreated,@Consumption.hidden:false

@UI:{dataPoint:{description:'Entry time'}} erzet as Entrytime