Skip to Content
avatar image
Former Member

Selecting all fields from tables in a CDS view

Hi Gurus,

We have created CDS views for our S4H implementation project, and consuming them in our ABAP code by selecting data from them. Currently, they contain only those fields in the projection list which are required by the ABAP objects as of now.

We have been given a suggestion to include all the fields of the tables being used in the CDS view so that these unused fields can be re-used later if required in select queries.

But this looks like an equivalent to SELECT * to me to include all of the fields in projection list, although we will use only a few of them in the actual select query.

Is this approach well where we include all of the table fields in the CDS view, but use only a few of them while making a select query on that CDS view? Or this may cause performance problems?

Thanks in advance!

Raveesh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers