Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Developer Challenge – Open-Source (Week 3)

Mamikee
Developer Advocate
Developer Advocate
27,795

This discussion thread is to submit your solution for Week 3 of the May 2023 Developer Challenge - Open-Source ABAP 

Week 3 – ABAP Mustache https://github.com/sbcgua/abap_mustache

Mustache is a big deal in the web development world. It's a template syntax that doesn't use logic, letting you whip up a text template, stick some tags in there, and then swap those tags with dynamic content straight from your program – anything from individual values to full lists of values. Mustache is a real champ when it comes to generating bits of HTML (or entire pages), or pretty much any other text you want to template. Plus, the Mustache syntax is used in a huge number of languages.

Community member @atsy has put together an implementation of the mustache processor in ABAP, and named it - you guessed it - ABAP Mustache. So, for your third-week challenge, we're putting the spotlight on the ABAP Mustache project. Your challenge is to simply create an ABAP application which leverages this framework and outputs some data to the console. How you use ABAP Mustache is totally up to you - it's your chance to get creative and show us what you've got. Whether you want to keep it simple or go all out is completely your call. Once you're done, all you need to do is share your working ABAP code and give us a screenshot of the output in the console to prove you've nailed the challenge.

Resources  

 You will get credit for this weeks’ challenge by posting in this discussion thread the working ABAP code (a screen shot of your code, or via a link to your GitHub repo), and showing a screen shot of the output in the console. To give you an idea, here's an example screenshot below.

Mamikee_0-1684924887945.png

Have Fun 🤩

95 REPLIES 95

Patrick-L
Discoverer
9,758

Hi community,

nice challenge again, my code for week 3:

PatrickL_0-1685190116623.png

 

JohnPaulLiberal
Explorer
9,227

Hello all!

Here is my repo for this week's challenge:

https://github.com/JliberalFTC/sap-developer-cc-open-source-cloud/tree/main/src/zabapmustache

Some code screenshots:

JohnPaulLiberal_3-1685228693507.png

 

JohnPaulLiberal_4-1685228693486.png

 

Output:

JohnPaulLiberal_5-1685228693538.png

 

PS: Someone already pulled the ABAP Mustache repository on the trial instance of SAP BTP Cloud where my account is. This caused me a problem because the pulled version was not the one from the cloud branch (Steampunk). In order not to modify the objects for the person who did the pull, I copied some of the classes that were not supported and adapted them afterward. That's why in my repo there are a couple of additional adapted classes.

abozdag
Explorer
9,051

Hello,

Here is my code and result.

abozdag_0-1685234455565.png

 

ecem_yalim
Explorer
9,040

Hello All!
this is my code and result for Week 3 Challenge 🙂

link to GitHub Repository:

EcemYalim/SAPDevelopersCodeChallenge_May23_Week3: SAP Developers Code Challenge May23 Week3 Submissi...

source code:

ecem_yalim_1-1685270606090.pngecem_yalim_2-1685270670734.pngecem_yalim_3-1685270712728.png

output:

ecem_yalim_0-1685270525401.png

 

JerryW
Explorer
9,034

Interesting!

Week 3 

JerryW_0-1685284737199.png

 

abo
Active Contributor
9,033

Here is my screenshot (A4H, HANA1909 onprem)

abo_0-1685286697862.png

and the link to the source code on GH.

 

 

 

this_yash
Participant
9,030

Hi @Mamikee ,

Here's my Week 3 submission:

this_yash_0-1685292323097.pngthis_yash_1-1685292359083.png

 

MioYasutake
Active Contributor
9,025

My submission for week 3.

miyasuta_0-1685305457497.png

 

smuhsb
Participant
9,026

Here's my entry!
smuhsb_0-1685322222516.png

And just like last week, why was I not aware of this amazing repo! This one particular has so many use cases.

Zakir_hussain
Explorer
9,017

Hi ,

I'm facing issue after pulling the moustache package from abapgit.  Its giving error in the define method of class zcl_moustache Macros are not allowed in cuurent ABAP language.  plz suggest what to be done?

Zakir_hussain_0-1685345811503.png

 

0 Kudos
9,006

Hello, check Thomas Jung previous answer about two version of the library available on github.

8,854

Thanks for sharing about the steampunk version.

HI @Mamikee .Now its done.

Zakir_hussain_0-1685439494787.png

Mustache_week_3_submission 

tobiasz_h
Active Participant
9,015

Hello!
Here is my screenshot:
ice_screenshot_20230529-104116.png

vignesh_narayan
Product and Topic Expert
Product and Topic Expert
9,011

Hi Mamikee, Here is my submission for Week-3.

vignesh_narayan_0-1685356064049.png

 

simonegaffurini
Participant
8,958

Here's my excercise

simonegaffurini_0-1685376253753.png

 

LaRudat
Explorer
8,969

Link

Atleast within BTP I couldn't get abap-mustache to work with NUMC values from /DMO/ model tables.
therefore worked around that.

LaRudat_1-1685390004336.png

 

LaRudat_0-1685389980270.png

 

Fianni
Explorer
8,990

Hi,

this is mine:

Vrum_1-1685390979247.png

It was nice to get to know it 🙂

Tammie
Participant

IsmailFatih
Explorer

Nigill
Discoverer
8,955

Hello,

This is my submission of week 3 challenge!

Screenshot 2023-05-30 115432.png

 

 

former_member144140
Discoverer
8,942

Hi All,
This is my submission of Week 3 challenge.

rahulchowdary10_0-1685439196971.png

 

SingireddySunil
Explorer
8,927

Hi Mamikee,

Here is my repo link for week 3 challenge https://github.com/SSingiredd/ABAP_REPOSITORY.git

SingireddySunil_0-1685442187159.png

SingireddySunil_1-1685442192124.png

 

ManojKumarVarma
Explorer
8,905

Hi Mamikee, Here is my Week 3 challenge.

ManojKumarVarma_0-1685450301617.png

Thanks.

aoyang
Contributor
8,900

Here is my w3 submission. GitRepo

As an alternative to console output,  using ABAP HTTP service can output HTML features(like table).

ABAP W3.jpg

kwinzig
Explorer
8,877

Hi @Mamikee ,

here is my submission for Week 3.
You can find my Git-Repo here .

My example ouputs html;

Code + Console OutputCode + Console Output

Which can be displayed using ABAP HTTP Service.

ServiceService

anagabichaves
Explorer
8,875

Hello ABAP Developers!

Here's my repository link and console print for the week 2 challenge.

https://github.com/anachavesrs/Code-Challenge-Open-Source-ABAP

 

anagabichaves_0-1685469179901.png

 

ravishgarg
Participant
8,869

Hello

Here's my submission:

ravishgarg_0-1685497034500.png

 

Sathees_P
Participant
8,830

Hi @Mamikee,
Here is my submission

Sathees_Kumar_P_0-1685510824244.png

 

fyagubova
Participant

LilianRaissa
Discoverer
0 Kudos
8,783

Here is my submission:

Week 3 p1.jpgWeek 3 p2.jpg

OneShivam
Product and Topic Expert
Product and Topic Expert
0 Kudos
8,777

My solution to Week 3 challenge

OneShivam_0-1685539904314.png

OneShivam_1-1685539919840.png

 

 

JMoutreux
Explorer
0 Kudos
8,753

Hello my code this week

my_repo repo_challenge 

abap_challenge_week3.png

Saranya06
Explorer
0 Kudos
8,732

sheenamk
Developer Advocate
Developer Advocate
0 Kudos
8,721

Hello Mamikee,

  Please find below my submission   https://github.com/sheenamk/sh_abapgit/tree/main/src/zabapmustache .

2023-06-01_16-17-51.png

 Thanks & Regards

     Sheena.

sairanjan223
Explorer
0 Kudos
8,589

Hi Mamikee,

Here id my submission for week 3.

sairanjan223_0-1685687538695.png

 

 

sairanjan223
Explorer
0 Kudos
8,589

Hi Mamikee,

Here is my submission for week 3.

sairanjan223_0-1685687814325.png

 

 

0 Kudos
8,583

Hi Mamikee,

Here is my week-3 Submission

Prathyusha_0-1685694450287.png