ABAP Blog Posts
cancel
Showing results for 
Search instead for 
Did you mean: 
sheenamk
Developer Advocate
Developer Advocate
13,354

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 DeterminationDefine 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 DeterminationImplement 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
GuruDuttt_A
Participant

Week 4 - Completed : Challenge Completed : for all the Weeks : Package : ZAC_179312 
Task 1 : 

Screenshot 2026-03-23 at 11.33.26.png
Task 2 : Using Joule for the prediction logic : 
Screenshot 2026-03-23 at 13.41.40.pngScreenshot 2026-03-23 at 11.52.48.png
Determination : 

Screenshot 2026-03-23 at 12.57.43.pngScreenshot 2026-03-23 at 12.57.29.png
Joule 

Preikian
Explorer

Week 4 challenge completed: Package: ZAC_1624622

Ekran görüntüsü 2026-03-23 105054.png

 

Ekran görüntüsü 2026-03-23 105213.png

 

Ekran görüntüsü 2026-03-23 105303.png

 

Greltel
SAP Champion
SAP Champion

Thanks again for the challenge. Package ZAC_37941.

Greltel_0-1774253536045.png

Greltel_1-1774253564917.png

Greltel_0-1774253875894.png

Raj_Patel1302
Explorer

Week 4 - Completed  ( Package: ZAC_1390255 ) 

Task 1 : 

Raj_Patel1302_1-1774254647085.png

Task 2 : 

Raj_Patel1302_2-1774254656026.png

Output : 

Raj_Patel1302_4-1774254786111.png

 

 

 

Ojeswini_Sanaka
Explorer

Hello Sheena,

I have completed 4th week assignment. Please find the below package details and screenshots. 
Package - ZAC_145060

Ojeswini_Sanaka_0-1774256451033.pngOjeswini_Sanaka_1-1774256458277.pngOjeswini_Sanaka_2-1774256461723.png

 

MusGedikli
Participant

Along with all challenges Week 4 is completed. Package: ZAC_178888 .

MusGedikli_0-1774257258584.png

MusGedikli_1-1774257313745.png

Thank you for the challenge. It makes learning more enjoyable : )

Week 4 - Completed - Package: ZAC_10025 
Task1:

AsilbekKilichbekov58_0-1774257933359.png
Task2:

AsilbekKilichbekov58_1-1774257968230.png

Result:

AsilbekKilichbekov58_2-1774257982055.png

 

Rahman_
Explorer

Week 4: Package: ZAC_2014364

image (3).jpeg

 

image (2).jpeg

 

Deepak_003
Participant

Task 1ZR_GE289122ZR_GE289122Task 2ZBP_R_GE289122ZBP_R_GE289122Output on FioriOutput on Fiori
Package : ZAC_148863 

PurviGupta
Explorer

Thank you so much!! Really enjoyed learning this Joule
Completed all the challenges. Package - ZAC_2110902
#Week 4 completed

Task 1 : Add Determination syntax for the Published date field.

PurviGupta_0-1774260755343.png

Task 2 : Use Joule's Predictive Code to build the logic.

PurviGupta_1-1774260881732.png

Determination :  

PurviGupta_2-1774261012055.png

After updating the Published Date Field:

PurviGupta_3-1774261053213.png
Happy Jouling!!! Joule 

 

Barbe98
Explorer

Completed all the challenges. Package: ZAC_2286263
#Week 4 completed

Barbe98_0-1774262627799.pngBarbe98_1-1774262836088.pngBarbe98_2-1774262844877.png

Before Determination:

Barbe98_3-1774262915421.png

 

After Determination:

Barbe98_4-1774262941731.png

 

AnilDasari
Explorer

Week 4: Completed – Package ZAC_12336

Task1: Create a determination and implement the corresponding method.

AnilDasari_0-1774265879749.png

 

 

AnilDasari_1-1774265879777.png

 

AnilDasari_2-1774265879800.png

 

Task2: Enhance determination with Joule Code Prediction Capability

AnilDasari_3-1774265879839.png

 

 

Validated:

Adjust the Expire data from 27 to 25 Mar 2026, expected result from determination logic, should update PlannedCookingDate to same as Expiry Date.

AnilDasari_4-1774265879851.png

 

Result.

AnilDasari_5-1774265879860.png

 

 

 

 

 

 

 

 

umutekinozer
Explorer

Week 4 Completed. Package: ZAC_2257779.

umutekinozer_4-1774266435077.png

umutekinozer_0-1774266377668.pngumutekinozer_1-1774266389453.png

umutekinozer_3-1774266407897.png

 

ram_bandlagc
Participant

Done

ram_bandlagc_0-1774267751299.png

 

Deepthi119
Discoverer

Week 4 Challenge Completed. Package: ZAC_GE290248
Create method in behavior definitionCreate method in behavior definitionLogic auto generated in behavior implementationLogic auto generated in behavior implementationLogic in behavior implementationLogic in behavior implementationDuring creationDuring creationOnce clicked on save the book age is automatically calculatedOnce clicked on save the book age is automatically calculated

LorandMatyas
Explorer

Week 4. Challenge -> Package ZAC_1870325

Task 1.

LorandMatyas_0-1774266776544.png

Task 2.

LorandMatyas_2-1774267690486.png

The Method logic provided by Joule: 

LorandMatyas_3-1774267812437.png

...some adjustments

LorandMatyas_1-1774269746179.png

LorandMatyas_0-1774269525553.png

 

 

Mohak_Madaan
Explorer

Week 4 challenge completed.
Package- ZAC_2227327
Task1:
Mohak_Madaan_0-1774254983388.png

Task 2:

Mohak_Madaan_0-1774271472828.png

 

Determination:

Mohak_Madaan_1-1774271531046.png

 

 

 

Chaimae_Chairi27
Participant

Week 4 of the challenge done, package : ZAC_2178867

Task 1 :

image (17).png

Task 2 :

image (18).png

Results of  updating a record:

image (19).pngimage (20).png

I really enjoy the challenge, Thank you. Looking forward to the next ones.

Nitin_Vankadari
Explorer

Week 4 Completed! All tasks done😀

Package - ZAC_2284643

It's been a great learning of exploring the various features of Joule through this challenge. ðŸ™Œ

Joule 

Screenshot 2026-03-23 184114.pngScreenshot 2026-03-23 185124.pngScreenshot 2026-03-23 185233.pngScreenshot 2026-03-23 185937.png

Saandeep
Discoverer

Week 4 - Done : Completed all challenges for all 4 weeks : Package : ZAC_1606775
Task 1 : 

Saandeep_0-1774274630235.png

Task 2:

Saandeep_1-1774274725193.pngSaandeep_2-1774274785455.png

 

Yilmaz_Kilinc
Explorer

Week 4 Challenge Completed
Package: ZAC_1406269

Simone_Forgia
Discoverer

Week 4 - Completed - Package Name: ZAC_2053389

Jeff
Explorer

Completed.  Package: ZAC_10563

KetanPitrubhakta
Explorer

#Challenge completed for Week - 4image.png
Package name: ZAC_13654
image.pngimage.pngimage.pngimage.png

Challenge 4 completed

yadu_shekhawata8cdc1_0-1774280802003.pngyadu_shekhawata8cdc1_1-1774280842359.pngyadu_shekhawata8cdc1_2-1774280938849.png

 

Week 4 Completed. Package ZAC_2288907 

OanaVladescu
Explorer

Hi,

Here are my results for Week 4:

Task 1:

OanaVladescu_3-1774287749339.png

Task 2:

OanaVladescu_4-1774288063458.png

OanaVladescu_0-1774287596223.png

OanaVladescu_2-1774287680996.png

Thanks & Regards,

Oana

 

 

 

fez-4u_
Explorer

Package: ZAC_2287668 - Week 4 Completed !

Screenshot 2026-03-23 at 9.54.46 PM.pngScreenshot 2026-03-23 at 9.56.42 PM.pngScreenshot 2026-03-23 at 9.54.24 PM.pngScreenshot 2026-03-23 at 9.54.34 PM.png

Sivaiah_Bhiragani
Participant

#Challenge completed for Week - 4, Package : ZAC_1620808
Completed all the challenges. Package - ZAC_1620808

Sivaiah_Bhiragani_0-1774291967200.png

 

Ihor_Haranichev
Participant

Week 4 challenge completed:

Package ZAC_643343

Determination method is implemented:

Ihor_Haranichev_4-1774295819259.png

 

Method is enhanced with Joule Code Prediction:

Ihor_Haranichev_1-1774295079886.png

Ihor_Haranichev_2-1774295674481.pngIhor_Haranichev_3-1774295701059.png

Thanks @sheenamk! That was really insightful! 

 

 

 

FP
Explorer

 Package : ZGE293567

FP_2-1774299807113.png

 

FP_0-1774299761245.pngFP_1-1774299785820.png

 

Bharath369
Explorer

Week 4 - Completed - Package: ZAC_1454977
Task1 and Task 2:

Bharath369_1-1774299951675.png

 

 

#Week-4 Complete

Completed all the challenges. Package: ZAC_2232346

Task 1:

Jatishkumar_Lodhiya_0-1774302824056.png

Task 2:

Jatishkumar_Lodhiya_2-1774302959667.png

 

Test-> Enter future date in Publication Date:

Jatishkumar_Lodhiya_3-1774303029886.png

Result: System date set as Publication Date:

Jatishkumar_Lodhiya_4-1774303094140.png

 

 

 

 

Package: ZAC_593841

Step 1:

jose_roberto_milan_0-1774306257132.png

 

step 2

jose_roberto_milan_0-1774308451162.png

jose_roberto_milan_1-1774308648444.png

 

athiksha
Explorer

Week 4 - Completed  (Package: ZAC_2263470)

TASK 1

athiksha_0-1774312127416.png

 

TASK 2

athiksha_1-1774307981556.png

Testing:

athiksha_3-1774311913450.png

athiksha_4-1774311948449.png

Thank you!!

Anand-C
Discoverer

Week 4 completed. Thanks!

Package: ZAC_1450486

Task1

AnandC_0-1774316045425.png

Task 2

AnandC_1-1774316131672.png

Testing- Entered future release date

AnandC_2-1774316278454.png

Release date updated with current system date

AnandC_3-1774316345369.png

 

 

 

SWATHY_S22
Discoverer

Challenge completed for Week 4.
Package : ZAC_2074454

SWATHY_S22_0-1774322041141.png     SWATHY_S22_1-1774322108222.png  

SWATHY_S22_2-1774322128760.png

 

 

 

gouthamKumar
Explorer

Package: ZAC_880096.

gouthamKumar_1-1774331988699.png



gouthamKumar_0-1774331927857.png

 

ARMAN_1132
Explorer

Package: ZAC_1555968

Week 4 Challenge has been completed😀.

- Used determination and Joule Code Prediction Capability.

ARMAN_1132_0-1774332580783.png

ARMAN_1132_1-1774332644120.png

- provided prompt as below

ARMAN_1132_2-1774332731504.png

With some minor adjustments( instead of sy-datum , we use cl_abap_context_info=>get_system_date( ) class method)

 

 METHOD get_brew_date.

    READ ENTITIES OF zr_brew_am IN LOCAL MODE
         ENTITY brew
         FIELDS ( brewdate )
         WITH CORRESPONDING #( keys )
         RESULT DATA(entities).

    DATA update_table TYPE TABLE FOR UPDATE zr_brew_am.

    LOOP AT entities ASSIGNING FIELD-SYMBOL(<entity>).
      APPEND VALUE #( %tky = <entity>-%tky
                      brewdate = cl_abap_context_info=>get_system_date( ) - 7 ) TO update_table.
    ENDLOOP.

    MODIFY ENTITIES OF zr_brew_am IN LOCAL MODE
      ENTITY brew
        UPDATE FIELDS ( brewdate )
        WITH CORRESPONDING #( update_table ).
  ENDMETHOD.

 



- The week 4 task was accomplished. 
Determine Brew Date using determination and Joule's Code Prediction Capability

ARMAN_1132_3-1774333272374.png

Brew Date is current date - 7 days ðŸ˜‹

ARMAN_1132_4-1774333291597.png

 

Happy Learning and Jouling 😊!!

AnamikaTyagi
Explorer
0 Likes

Package : ZAC_1872745

Week 4 task completed.

If the published date is in future, change it to current date.

AnamikaTyagi_0-1774334247606.png

AnamikaTyagi_1-1774334270280.png

AnamikaTyagi_2-1774334298660.png

 

frankovic
Participant

ZAC_5792

baris_guler
Discoverer
0 Likes

Hi, week 4 is completed. 

baris_guler_0-1774337634794.png

baris_guler_1-1774337668847.png

 

rdulek
Explorer

Week 4 Completed Package: ZAC_154668

rdulek_0-1774337749333.pngrdulek_1-1774337819124.pngrdulek_2-1774337894327.pngrdulek_3-1774337912117.png

 

walter52abc
Product and Topic Expert
Product and Topic Expert

Package: ZAC339007

Week 4 Challenge has been completed.

walter52abc_0-1774337982549.png

walter52abc_1-1774337987867.png

walter52abc_2-1774337992086.pngwalter52abc_3-1774337997687.pngwalter52abc_4-1774338001458.png

 

 

barisguler
Participant

Hi, week 4 is completed.

barisguler_0-1774338896316.png

barisguler_1-1774338901634.png

 

 

 

koray_ana259
Discoverer

Week 4 completed: ZAC_281492

koray_ana259_0-1774342855163.png

 

koray_ana259_1-1774342868391.png

 

Maciej14
Discoverer

Screenshot 2026-03-24 at 11.16.32.png

 

Week4 challange completed. Package ZAC_1955708. 

 

 

Payal234
Discoverer

Week 4 completed

oguzhang2
Discoverer

Week 4 : Completed. Package : ZAC_1808578.

AlexanderPuestow
Discoverer

ZAC_2124120 completed.

AlexanderPuestow_0-1774355006280.png