Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting all fields from tables in a CDS view

raveeshsaurabh3
Active Participant
0 Kudos

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

0 REPLIES 0