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
Vijay_Chauhan63
Discoverer

Week4 Challenge Completed

Vijay_Chauhan63_0-1774625430139.png

Vijay_Chauhan63_1-1774625474881.png

 

 

Week 4 Challenge completed: ZAC_2273787

gowthami_natarajan_3-1774626149722.png

gowthami_natarajan_2-1774626089050.png

gowthami_natarajan_4-1774626477294.png

 

 

 

noely_marques3
Explorer

Package: ZAC_307987

rfernandez
Explorer

Week 4 : Completed. Package : ZAC_827866

Joery
Participant

Challenge completed

Package: ZAC_46923

After adding a check to avoid an endless save loop it works fine 🙂
I did have to instruct Joule exactly how to write the logic because it wanted to use syntax (class methods) that do not exist.
It was a minus point that Joule is not aware of what standard classes and methods actually exist.

Still, In the end the code is there and it is working, while still allowing the user to overrule the determination.

Joery_0-1774642339221.png

 

2001926471
Explorer

Week4 completed - package ZAC_730206

2001926471_0-1774648034816.png

2001926471_1-1774648096627.png

 

Avelinod
Explorer

Week 4 challenge completed: Package: ZAC_1645965

Avelinod_0-1774659593548.pngAvelinod_1-1774659773449.png

Avelinod_2-1774659900031.pngAvelinod_3-1774659947993.png

 

 

Umesh_Navarkar66
Discoverer

Week 4 : Completed. Package : ZAC_2285968.

Umesh_Navarkar66_0-1774695351037.png

 

 

Vitor_Boaratti1
Explorer

Week 4 - Completed package ZAC_2155621

New method:

1. Using QuickFix.png

Code Prediction:

Vitor_Boaratti1_0-1774698584957.png

Result:

Vitor_Boaratti1_1-1774698596130.png

 

 

RAMAKRISHNA_B
Discoverer

Week 4 Challenge Completed. Package: ZAC_1695848.

RAMAKRISHNA_B_0-1774701101256.png

RAMAKRISHNA_B_1-1774701195367.png

 

 

Bruno_deMorais93
Discoverer

Week 4 Completed:

Package ZAC_1886561.

Bruno_deMorais93_0-1774708321734.png

Bruno_deMorais93_1-1774708363819.png

Bruno_deMorais93_2-1774708388506.png

Bruno_deMorais93_3-1774708417626.png

 

 

 

chaouki_akir
Contributor

Package ZAC_160863

Shobana4
Explorer

ZAC_1899362 - completed

Shobana4_0-1774722089387.png

 

Sajal_Garg
Discoverer

Sajal_Garg_0-1774723564986.png

Joule week 4

 

 

Christoph26
Discoverer

Week 4 completed

Package ZAC_1679376

Determination-Method to have no empty stock:

Christoph26_0-1774738670968.png

 

Yash_Kulkarni
Product and Topic Expert
Product and Topic Expert

Week 4 : Completed. Package : ZAC_1654446.
3.pngScreenshot 2026-03-29 012514.pngScreenshot 2026-03-29 012608.png

Khallaoui_kon
Participant

Khallaoui_kon_0-1774754493184.pngKhallaoui_kon_1-1774754585276.png

Package: ZAC_1706565 - Week 4 Task 1 & 2 completed

LuizSouza_cwb
Active Participant

Package: ZAC_1442973

LuizSouza_cwb_0-1774758867707.png

LuizSouza_cwb_2-1774759937310.png

LuizSouza_cwb_3-1774760164210.png

 

 

LuizSouza_cwb_5-1774760393528.png

 

LuizSouza_cwb_6-1774760654431.png

 

 

LuizSouza_cwb_7-1774760784478.png

 

 

 

 

GauravPhadnis
Product and Topic Expert
Product and Topic Expert

ZAC_2095063 Determination added

 

GauravPhadnis_0-1774763410325.png

 

akmal1216
Active Participant

#Challenge Week 4 Completed 

RSwienty32
Explorer

Week 4 done.

Package ZAC_16013

RSwienty32_0-1774771256686.png

 

Jiiva
Explorer

Week 4 Tasks Completed!

Package : ZAC_1584004

Jiiva_0-1774785464358.png

 

Jiiva_1-1774785777671.pngJiiva_2-1774785799253.png

Thanks for the Developer Challenge!

SubaR4
Explorer

The predictive feature based on natural language is great feature, but the syntax used is not up to date. For example , we shouldn't use sy-datum in cloud.

ZAC_16148

SubaR4_0-1774786203592.png

 

SushmitaG98
Participant

Week 4 challenge completed

SushmitaG98_0-1774787509944.pngSushmitaG98_1-1774787535852.pngSushmitaG98_2-1774787662798.png

 

week 4 completed - ZAC_2229067

kshanker1
Explorer

Completed Week 4, package ZAC_1541354

Task1

kshanker1_3-1774798841114.png

Task2

kshanker1_4-1774798866603.png

output (BookAge column calculated)

kshanker1_5-1774798946836.png

 

Anirudhps24
Discoverer

Week 4 completed in Package - ZAC_1605272

Throughout the challenges, created an Expense tracker app, Validation added for non-empty category and determination added to Expense date field with the help of Joule. It was a great learning experience.

Debrup_Roy
Explorer

Week 4 : Package : ZAC_2040871

Task 1 

Debrup_Roy_0-1774811918331.png

Task 2 :

Debrup_Roy_1-1774812035333.png

 

maciej_jekiel
Explorer

Week 4 - challenge completed.
Package: ZAC_696132

mustafa_gunes
Explorer

Hi, Week 4 - Completed, Challenge Completed.

Package: ZAC_154774

mustafa_gunes_0-1774834186516.pngmustafa_gunes_1-1774834196503.png

Thiangwc
Explorer

Week 4 - ZAC_1547244

Thiangwc_0-1774838691067.pngThiangwc_1-1774838701526.png

Thiangwc_0-1774838961712.pngThiangwc_1-1774838978182.png

 

 

guiderus
Explorer

Week 4 completed

Package: ZAC_105

rvinod1982
Contributor

Week 4 challenge completed

Package - ZAC_160545

Updated Book Age field using determination.

rvinod1982_0-1774850144854.png

Regards,

Vinod Iyer

 

NidhiSingh17
Explorer

Week-4 completed for ZAC_2289322

NidhiSingh17_0-1774856775506.png

 

NidhiSingh17_2-1774857221050.png

 

CarlosMarquez
Explorer

Week 4 Completed.
Package: ZAC_161797

DevSap2023_0-1774858315072.pngDevSap2023_1-1774858323284.png

 

TDIRMIKCI
Discoverer

Week 4 Challange is done . Package : ZGE295999

TDIRMIKCI_0-1774859961401.png

 

SriGanesh10
Explorer

Week 4 Tasks Completed 

Task 1:

SriGanesh10_0-1774861819087.png

Task 2: 

SriGanesh10_1-1774861871830.png

 

Ziynatullo
Explorer

Week 4. Challenge is finished!!!

Week 4.1.pngWeek 4.2.png

benedictebner
Explorer

Week 4, Package: ZAC_162369

benedictebner_0-1774873027658.png

 

Ruthiel
Product and Topic Expert
Product and Topic Expert

FInished (ZAC_120859):

Ruthiel_0-1774874085274.png



Ruthiel_1-1774874098261.png

 

ashokyesala
Participant

week 4 completed : package - ZAC_554860

Adnane__S
Discoverer

Challenge completed for Week 4 : Package ZAC_1578975

Gabriele9528
Discoverer

Week Four Completed. Package ZGE290811

syed243_-0571
Explorer

WEEK 4 COMPLETED :  ZAC_2289764

syed243_0571_2-1774896449205.png

 

syed243_0571_1-1774896422306.png

 

 

MounikaKC
Explorer

Week 4: Challenge Completed.

Predictive code completion based on Natural Language

Package: ZAC_1977060

MounikaKC_0-1774900508592.png

MounikaKC_1-1774900540922.png

Output:

MounikaKC_2-1774900612548.png

 

 

miguelmota
Explorer

Week 4 completed - Package : ZAC_40990

abozdag
Explorer

Week 4 Completed

abozdag_0-1774936058786.pngabozdag_1-1774936075631.png

 

Anoop_Kohale
Explorer

Week 4 Task complete:

Added determination for Age field.

Anoop_Kohale_0-1774936406615.png

Implemented it to calculate the days from delivery date.

Anoop_Kohale_1-1774936445990.png

The result is the days are calculated.

Anoop_Kohale_2-1774936480264.png

Thank you for the challenge.

M-K
Active Participant

Week 4 completed. Thank you for the challenge!

Endless loop prevention done the "classic" way 😉

MK_0-1774938469247.png

 

BodaChandana
Explorer

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

BodaChandana_0-1774950370343.png

BodaChandana_1-1774950381629.png

 

Labels in this area