ABAP CDS On HANA Day 1 - Assignment Solution
ABAP CDS On HANA Day 1 - Assignment Solution
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!! ;)
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
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
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.