ABAP Blog Posts
cancel
Showing results for 
Search instead for 
Did you mean: 

Congratulations to everyone who came along with us till the 4th week of the ABAP Developer Challenge. So far we have seen :

  • How to create a OData UI Service from Scratch using Joule Chat
  • How to use Joule - Explain feature to understand a block of code.
  • How to use Joule - RAP Predict Business Logic to create logic for specific tasks.

Let us wrap up with another interesting feature of Joule's ABAP AI Capability - The Joule Predictive Code Completion.

Quick Links

Please use this separate thread to ask your questions and discuss issues

Sample Scenario

We had asked you to create a field of type 'Date' during the RAP application creation.

Now let us use Determination function to calculate the number of years since the value in Date field. You can implement it while creating a new record using the app.

Task1: Create a determination and implement the corresponding method.

  1. Define a determination in the BDEF of the CDS view.Define Determination
  2. Now you can notice a small icon to the left of the determination definition. Click on it to create the implementation method for adding determination logic in the local handler class of the behavior pool of your entity. Save and activate the changes.Implement DeterminationFor additional information on Determinations and its syntax and use you can refer the BDEF ‘/DMO/R_Travel_D’. Alternatively you can also refer https://github.com/SAP-samples/abap-platform-rap100/blob/main/exercises/ex04

Task2: Enhance determination with Joule Code Prediction Capability

Use Joule's Predictive Code Completion feature to complete your code by providing simple prompts for each step in the logic.

Here please note that we should use the Toggle option to disable / enable Joule Code Prediction Capability by pressing sheenamk_0-1772735109647.png button in the toolbar.

Hint: Disable the Joule Code Prediction Capability if you want to give prompts for new steps / once finished to stop Automatic Code Prediction.

Note:- The logic and examples are mentioned just for your reference and to make the purpose of the challenge easy to understand. Please feel free to use your own logic and dataset.

To know how to use Predictive Code Completion follow this tutorial

Please note that the challenge will remain open for another week for anyone who is running late. 

Before we close for this year we would like to thank everyone who participated. We hope all of you enjoyed the challenge. Let us continue to explore how SAP Joule for developers, ABAP AI capabilities can support us with our day-to-day tasks when working with ABAP code, to increase our efficiency and to lower total cost of development.

Happy Jouling!!!

 

175 Comments
Rajani_Pokuri
Explorer

Week 4-Package Name:
ZAC_1959990

Joule Predictive Code Completion:

Rajani_Pokuri_2-1774358409218.png

 

Attempt to create new entry with 'Book Published Date' in the past:

Rajani_Pokuri_0-1774358287518.png

Book Published Date changed to current date based on determination logic:

Rajani_Pokuri_1-1774358342188.png

GowriBR
Discoverer

Completed ZAC_1658393

GowriBR_0-1774360127113.png

 

Swathi_SAP_Philomath
Participant

Completed week -4 task

Package : ZAC_3201019

swathi1910_1-1774363866260.png

swathi1910_2-1774364035815.png

 

Haripriyamopuri
Discoverer

Behavior Definition
Haripriyamopuri_0-1774364489951.png

Behavior Implementation

Haripriyamopuri_1-1774364501489.pngHaripriyamopuri_2-1774364509879.png

 

Haripriyamopuri_3-1774364514087.png

Week - 4 Challenge Completed!!

Aziz_nabli
Newcomer

ZAC_293866 Completed

Aziz_nabli_0-1774363232149.png

 

a_figueredo
Explorer

Completed: ZAC_272227

Paramesh
Discoverer

Week 4 Challenge Completed
Package: ZAC_38873

andretassis
Discoverer

andretassis_0-1774369904579.png



week 4

suvarna3
Explorer

Declared determination 

suvarna3_0-1774373134144.png

written code on behavior class

 

suvarna3_1-1774373184807.pngsuvarna3_2-1774373210636.png

Age getting updated based on published date

Week 4 completed

 

suvarna3_3-1774373338652.png

 

henrique15
Discoverer

Week 4 Completed!

henrique15_0-1774373035947.png

henrique15_3-1774373095505.png

aseemanadkarni
Explorer

Package:  ZAC_776096

Week 4 Challenge:

Step1: Added Determination SetBookingDate on MODIFY:

aseemanadkarni_0-1774373980280.png

Step2: Added the Implementation Method as below:

aseemanadkarni_1-1774374030341.png

Step3: Used Joule Prediction Logic to write the Logic:

aseemanadkarni_2-1774374087073.png

aseemanadkarni_3-1774374126324.png

aseemanadkarni_4-1774374140491.png

aseemanadkarni_5-1774374174946.png

Step4: The BookingDate is defaulted to Current Date at Creation:

aseemanadkarni_6-1774374235904.png

aseemanadkarni_7-1774374246269.png

 

Thank you for this challenge

 

 

Sandra_Solis
SAP Champion
SAP Champion

Week 4 Done !!! I loved the challenge, thanks a lot @sheenamk and @Shilpa_Shankar for all your effort !!

Sandra_Solis_0-1774377177631.png

Sandra_Solis_1-1774377197034.png

Sandra_Solis_4-1774377294504.png

Sandra_Solis_2-1774377227070.png

Sandra_Solis_5-1774377510047.png

Sandra_Solis_6-1774377531668.png

 

 

 

 

 

Laco
Participant

Week 4 : Completed
1. determination "calculate_passed_years" added
Laco_0-1774392250178.png

2. implementation created using Joules RAP Prediction
Laco_1-1774392351408.png

3. Result in App (field "Years passed since expense creation")
Laco_3-1774392401627.png

 

jmusagre
Explorer

Week 4: Completed – Package ZAC_1609944

jmusagre_0-1774392729714.png

jmusagre_1-1774392756079.png

jmusagre_2-1774392799309.png

 

jmusagre_3-1774392831046.png

 

 

luis-santos
Explorer

Week # 4:  Completed 
Package: ZAC_1399565

luissantos_0-1774394044990.png

 

Angie2
Explorer

Week 4 - Completed - Package: ZAC_157732

Matej_Pond
Explorer

ZAC_886311

nmirandaghn
Active Participant

Done. I created a setNotes determination. It’s pretty simple, but it meaningfully shows Joule usage.

Package ZAC_14352419

nmirandaghn_0-1774405471971.png

 

sujith_sulochana
Participant

Completed Predictive code completion.

ZAC_575123

sujith_sulochana_0-1774405762464.png

 

SantoshKallem
Active Contributor

Week 4 Challenge Completed. Package ZAC_179678

Task 1:

SantoshKallem_1-1774408540624.png

 

Task 2:

SantoshKallem_0-1774408416868.png

SantoshKallem_2-1774408604141.png

SantoshKallem_3-1774408776596.png

SantoshKallem_4-1774408808509.png

 

 

 

justinta2016
Explorer

Package : ZAC_780676

justinta2016_0-1774409320690.pngjustinta2016_1-1774409343028.pngjustinta2016_2-1774409407761.png

 

vivekprabhu13
Participant

Week 4 - Completed - ZAC_194

vivekprabhu13_0-1774417658484.png

 

vivekprabhu13_0-1774419583303.png

 

vivekprabhu13_2-1774417112852.png

Thanks and regards

     Vivek

 

 

marek_lukuvka
Explorer

Week 4 Completed
Package: ZAC_38763

1.png

 

2.png

 

t-deepak
Explorer

Completed Week 4. (ZAC_1942260)

tdeepak_1-1774426624526.png

tdeepak_0-1774426712775.png

 

 

Jess_ica-98
Explorer

Week 4 - Completed - Package Name: ZCA_1513646

Jainabi_Shaik
Discoverer

Week-4 Completed. Package ZAC_1996531

Jainabi_Shaik_0-1774436846207.pngJainabi_Shaik_1-1774436858474.pngJainabi_Shaik_2-1774436879142.pngJainabi_Shaik_3-1774436892927.png

 

MG25
Discoverer

Week 4 Completed - ZACGE288615

Oshin_Jose32
Explorer

Challenge completed!
Package: ZAC_2222224

Oshin_Jose32_0-1774448025364.png

 

 

GauravModi
Discoverer

Week 4: Completed. Package: ZAC_2139638.

GauravModi_0-1774448739948.png

GauravModi_2-1774448811221.png

 

 

Sanketsethi
Explorer

#challange Week 4: Completed. Package: ZAC_122565

App side:

Initially entered:

Sanketsethi_1-1774443949136.png

Post determination:

PublishedDate is changed to current date.

Sanketsethi_2-1774451372249.png

 

 

Fahri_Donmez_tr
Participant

Week 4 Completed - ZAC_39692

Yuvaraj_S88
Explorer

Week 4 - Challenge Completed. Package: ZAC_160754

Yuvaraj_S88_2-1774461921754.png

Determination: 

 

Yuvaraj_S88_4-1774461972275.png

 

 

Yuvaraj_S88_1-1774461877503.png

Output: 

Yuvaraj_S88_5-1774461996819.pngYuvaraj_S88_6-1774461997133.png

 

Sekharmanda
Explorer

Week 4 - Challenge Completed (Package: ZAC_1293437 for all weeks)

Task -1

Sekharmanda_0-1774466887576.png

Task2 : Using Joule to adopt proposed logic in newly created method

Sekharmanda_1-1774467075209.png

Determination :

Sekharmanda_2-1774467230633.png

 

Javier_Saeta
Explorer

Week 4 Completed! Package: ZAC_1972070.

Javier_Saeta_1-1774479194655.png

 

Javier_Saeta_0-1774479153563.png

Javier_Saeta_2-1774479235304.png

Thank you so much for the Challenge—I've really enjoyed these past four weeks!

ManojKotti
Explorer

Thank you so much for organizing this program !!! I really enjoyed learning Joule capabilities. 

Completed all the challenges.

Package - Z
AC_1585234

Week #4 Challenge:

ManojKotti_0-1774480128558.png

ManojKotti_1-1774480168118.png

Before changing date

ManojKotti_2-1774480598047.png

After updating the date --> Book age redetermined on modify

ManojKotti_3-1774480702412.png

Final Result After Save :

ManojKotti_4-1774480747562.png

 

 

lidavidlee
Explorer

ZAC_147448 Completed:

lidavidlee_0-1774496875491.png

 

BerkSaldir
Explorer

Challenge Week 4 - Completed
Package: ZAC_1463786

BerkSaldir_1-1774508277723.pngBerkSaldir_2-1774508322864.png

 

 

juancarlos_dasilva
Participant

Completed

juancarlos_dasilva_0-1774511326583.pngjuancarlos_dasilva_1-1774511381391.pngjuancarlos_dasilva_2-1774511404091.pngjuancarlos_dasilva_3-1774511423128.png

 

mayko
Discoverer

Package ZAC_161183, week 4 completed 

Week 4 : Completed. Package : ZAC_134870.

rsraj
Explorer

Week 4 completed.

rsraj_0-1774521843487.pngrsraj_1-1774521860123.pngrsraj_2-1774521872244.png

 

Albertovrc7
Discoverer

Week 4 - Completed. Package : ZAC_2010241

Albertovrc7_0-1774527860011.png

 

Albertovrc7_1-1774527925297.png

Albertovrc7_2-1774527952250.png

 

Albertovrc7_3-1774528002158.png

 

Pallava
Explorer

Week 4 : Completed. Package : ZAC_140672 with determination to update book age field.

Pallava_0-1774530317279.png

 

MABM
Explorer

#Challange Completed for Week 4Joule_04.gifJoule_04_02.gif- Package: ZAC_1617102

week 4 completed. Created determination and used Joule's Predictive Code Completion feature to complete code by providing simple prompts

hrushikeshraju_yerram_0-1774592708728.png

hrushikeshraju_yerram_1-1774592823105.png

hrushikeshraju_yerram_2-1774592971511.png

hrushikeshraju_yerram_3-1774593025859.png

 

 

 

 

Anna_Verrua
Discoverer

Week 4 - Completed - Package Name: ZAC_2287364

KeremM
Explorer

Done! Package ZAC_1854565.

 

KeremM_1-1774614684541.png

 

KeremM_0-1774614620878.png

 

Srininagarro
Explorer

Week 4 - Completed

Task -1 :

Srininagarro_0-1774617086577.png

Task-2:

Srininagarro_1-1774617209845.png

Determination:

Srininagarro_2-1774617272250.png

 

 

Week 4 : Completed. Package : ZAC_203095

 

sudarshan_gaikwad3_3-1774621412491.png

 

sudarshan_gaikwad3_2-1774621363397.png

 

sudarshan_gaikwad3_0-1774621215432.png

 

olsathappan
Explorer

Challenge for all 4 weeks completed. Package ZAC_159484

olsathappan_1-1774623009357.png

olsathappan_0-1774622920507.png

 

Labels in this area