2024 Aug 14 8:48 AM - last edited on 2024 Aug 23 5:14 PM by thomas_jung
Thanks for the enormous response and showing great enthusiasm in Task 1. Let’s continue the ABAP Developer Challenge by enhancing the CDS view entity.
Task 2 - In this task, we will explore some basic SQL function, CDS Associations and use it to enhance the CDS View entity that is created in Task 1.
Follow the instructions carefully and share with us the screenshots of the items mentioned in the ‘Validation’ section of this discussion.
Please use this separate thread to ask your questions and discuss issues.
Here you go:
Note: For those who do not have data in the status text table, try running the data generator class /dmo/cl_flight_data_generator. This should load that table with initial data.
Validation: Share a screenshot of the following items as a reply to this thread to gain credits:
Note: Do not post the screenshot of the CDS view entity. Just Data preview is sufficient.
Enjoy until we are back with the next task!
2024 Aug 19 10:59 AM
Kindly post your questions related to the task in this discussion: https://community.sap.com/t5/application-development-discussions/questions-re-quot-abap-core-data-se...
The screenshot that you have posted is not related to this task.
2024 Aug 19 11:15 AM
2024 Aug 19 11:32 AM
Hi Team,
Task 2 Completed.
Thanks.
2024 Aug 19 11:46 AM
Created CDS View Entity with added new concatenated field of total price and currency code and Overall status text field using Association.
Result :
Happy Learning! 😊
Thanks
2024 Aug 19 11:57 AM
Hi,
Task 2 is completed.
2024 Aug 19 12:17 PM
2024 Aug 19 12:21 PM
Hello,
Below is the Data Preview of my CDS View Entity.
2024 Aug 19 1:35 PM
Task2 done!
2024 Aug 19 2:41 PM
Hello,
2024 Aug 19 4:04 PM
Thanks for designing the exciting exercises. Here is my outcome for 2nd week
2024 Aug 19 4:53 PM
Week2 completed.
2024 Aug 19 5:35 PM
Done for week2.
2024 Aug 19 7:29 PM
Task- 2:
CDS View Preview:
2024 Aug 19 8:41 PM
Here's My Solution.
2024 Aug 19 9:06 PM
My result:
2024 Aug 19 9:16 PM
Hello,
Here is my second week submission.
2024 Aug 19 9:53 PM
Task 2:
2024 Aug 20 1:01 AM
Hi.
Here is my result preview after adding the two new columns:
Regards, Florian
2024 Aug 20 2:00 AM
Hi,
Data Preview of new created fields
2024 Aug 20 3:47 AM
CDS Preview for Task 2
2024 Aug 20 5:11 AM
Hi, Task 2 completed.
2024 Aug 21 12:41 PM
Hi,
The above screenshot is from another participant. Kindly send the screenshot of your CDS view.
2024 Aug 20 5:11 AM
Here is my Solution:
2024 Aug 20 6:21 AM
Hello ,
Here is the data preview!!
2024 Aug 20 6:33 AM
Hi,
Below is the data preview of Week2 CDS View
Thanks
Ajay
2024 Aug 20 7:07 AM
Task 2 Done...!
2024 Aug 20 10:09 AM
Thanks Shilpa and Sheena for this month challenge.
Task 2 is completed.
2024 Aug 20 10:55 AM
Result for Task 2:
2024 Aug 20 11:13 AM - edited 2024 Aug 20 11:17 AM
2024 Aug 20 11:37 AM
Done!
I get the following warning though for the line _Status._Text.Text as StatusText:
The association "_Text" can modify the cardinality of the result set ZENTITY_SHAL_TRAVEL (Data Definition) /TRL_EN/.adt/ddic/ddlsources/zentity_shal_travel line 17 ABAP Syntax Check Problem
2024 Aug 21 12:37 PM
Yes, the warning comes up as there is a potential for the data to be altered like example if it has translations. To avoid this, you can filter out by specifying the language and add '1' to document the change cardinality. Check this link for more information: https://learning.sap.com/learning-journeys/acquire-core-abap-skills/using-associations-in-path-expre...
2024 Aug 20 12:23 PM - edited 2024 Aug 20 3:37 PM
I initially worked on these exercises in an on-premise system but couldn’t find data in the status text table /dmo/oall_stat. Later, I switched to a cloud environment to execute both Task 1 and Task 2. For Task 2, I executed the class /dmo/cl_flight_data_generator and successfully loaded data into the same status text table, achieving the desired output
1. Only data preview for task 2
2024 Aug 20 2:11 PM
2024 Aug 20 3:39 PM
Thank you @RichHeilman , Your suggestion worked in cloud environment.
2024 Aug 20 1:13 PM
Here is my submission - thanks!
2024 Aug 20 2:02 PM
2024 Aug 20 2:43 PM
Mi Solucion.
Saludos
2024 Aug 20 3:15 PM
Task2 Solution
2024 Aug 20 3:16 PM
Task2 Solution
2024 Aug 20 3:56 PM
Task 2