0% found this document useful (0 votes)
95 views5 pages

ABAP CDS On HANA Day 1 - Assignment Solution

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
95 views5 pages

ABAP CDS On HANA Day 1 - Assignment Solution

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

1

ABAP CDS on HANA


Day 1 – 5th Oct 2019 8:00 AM IST
Open SQL can use both CDS VIEW ENTITY as well as SQL VIEW to fetch the data. From 7.5, SAP has
made obsolete to fetch from SQL VIEW and recommend using CDS Entity View from open SQL. What
may be the possible reasons for doing the same?

Response 1

⇒ I don’t see a good reason for having a different SQL View name from the CDS View name and
possibly a different DDL Source name (3 different names) for basically the same object. These different
names are simply different views on basically the same object. I think that SAP will simplify things by
moving to a single name for the DDL Source, the CDS view & the SQL view.

This will simplify the naming conventions on CDS Views and it will also eliminate the need for a
mandatory Annotation (got this question wrong on the quiz. If SAP goes in this direction, then I will
become right!! ;)

Please do NOT take the above response seriously.. 😉

Response 2 –

One should use the CDS View Entity as that way you are ensured to access the security layer built in to
CDS. There us a performance benefit

Response 3 –

1. upward compatibility to S/4


2. easy generation of full-fledged OData Services
3. easy use of SAP UI5 Smart Controls and Fiori Elements
4. implicit authorization checks
5. performance boost

Found above answer from https://inui.io/abap-dictionary-views-vs-cds-views/


They have explained why we have to use CDS View Entity rather than SQL View

1
2
ABAP CDS on HANA
1. Create a CDS VIEW using table SPFLI left outer join to SFLIGHT and fetch the fields - CARRID,
CONNID, DISTANCE, DISTID, FLDATE and use WHERE CLAUSE to restrict the data for CARRID 'LH'.
2. Write Label for CONNID before the field
3. Write Label for DISTID after the field
4. Check the DDL Source, SQL View and CDS Entity

5. Look the Transport in SAP GUI and check what object you can see in the transport – T Code SE10

2
3
ABAP CDS on HANA

6. Go to SE11 and see what is saved in table DDLDEPENDENCY

7. Do the Data Preview and see the data in ADT

3
4
ABAP CDS on HANA

8. Go to SE16 and see the data for the SQL View and CDS View. Can you see using both?

8. Go to SE16 and see the data for the SQL View and CDS View. Can you see using both?

4
5
ABAP CDS on HANA

Disclaimer – Answer submitted by participants. Thank you for your time and effort.

You might also like