2023 May 17 12:03 PM - edited 2023 Jun 07 2:11 PM
This discussion thread is to submit your solution for Week 2 of the May 2023 Developer Challenge - Open-Source ABAP .
Week 2 – ABAP2UI5 https://github.com/oblomov-dev/abap2UI5
ABAP2IU5 is a fairly new project which helps ABAP developers create SAPUI5 applications without ever having to code a line of JavaScript, expose an OData service, or work with Fiori Elements or the ABAP RESTful Application Programming model (RAP). This project allows you to create applications having a simple interface like a report selection screen, and display the output in a table, like an ALV Grid. All with just a few lines of code.
For this weeks’ challenge, install the ABAP2IU5 project in your system, and create a program using ABAP2UI5, which throws an input screen with two fields (User and Date), and a button. When the post button is clicked it should send the values to the server.
Resources:
❗You will get credit for this weeks’ challenge by providing a screenshot of the result with the server providing a message back as shown in the example screenshot below.
Have Fun 🤩
2023 May 17 1:14 PM
2023 May 17 1:58 PM
2023 May 17 2:32 PM
Ok, I can confirm that ABAP2UI5 is installed on the trial instance https://c75f608d-4148-434a-88e1-64b75d24911a.abap-web.us10.hana.ondemand.com/ So if you are on that trial instance, you need not install it, just use the ABAP2UI5 framework to create your app as outlined above.
2023 May 17 6:29 PM
2023 May 17 2:13 PM - edited 2023 May 17 2:13 PM
if you are up for a bit more challenging setup, then https://github.com/larshp/abap2ui5-web runs on https://nodejs.org/en on localhost ie. without a traditional ABAP stack, much like https://blogs.sap.com/2021/02/16/running-some-abap-on-a-raspberry-pi-zero/
2023 May 18 7:34 AM
Hi Lars
This is fantastic. I just gave it a try and it worked on the first go!! Serverless here we go 🙌
2023 May 17 2:42 PM
Hi Florian,
abap2UI5 sources are compatible with on-prem and Cloud ABAP environment as well. My-self installed abap2UI5 on my trail account which is on Region: 🇺🇸 US East (VA), same may be valid for you if your account also exists in same region.
abap2UI5 on ABAP Trial Account (on AWS Region US East (VA))
Try this link with your user credential.
2023 May 17 1:48 PM
2023 May 17 2:12 PM
2023 May 17 3:56 PM - edited 2023 May 17 3:57 PM
2023 May 17 4:00 PM
2023 May 17 5:27 PM
2023 May 17 6:19 PM
2023 May 17 7:08 PM
2023 May 17 9:21 PM
2023 May 17 9:59 PM
2023 May 18 9:42 AM
2023 May 18 10:25 AM
2023 May 18 10:43 AM
Hi,
whew, this was bigger challenge for me. Because (of course 😐) my company does not allow to import open source code. At least not easily... Thanks a lot for nice SAP Tutorials. They really helped me!
2023 May 18 12:41 PM
2023 May 18 2:44 PM
2023 May 18 4:58 PM
2023 May 18 5:37 PM
Hi,
I used trial instance for this challenge. I've pulled in the ABAP2UI5 program, I'm unable to execute the demo application program as the interface if_oo_adt_classrun must implement. But, the standard ABAP2UI5 doesn't have this interface, if so I did added, but how to implement the if_abap2ui5 interface to classrun.
Does anyone have come across this kind of challenges?
2023 May 19 5:38 AM
Follow the instructions to install in this blog. You would need to create a new HTTP service and then use it to "run" the class.
https://blogs.sap.com/2023/04/14/abap2ui5-6-7-installation-configuration-debugging/
2023 May 19 6:24 AM
It took me some time to figure it out as well. Here a video tutorial for the same.
Part #2 Develop UI5 application using pure ABAP #sap #abap2ui5 #abap #ui5 #newsyntax - YouTube
Hope it helps.
2023 May 18 5:44 PM
2023 May 19 5:04 AM
2023 May 19 5:16 AM
2023 May 19 6:20 AM
2023 May 19 7:58 AM
2023 May 19 10:55 AM
2023 May 19 1:30 PM
2023 May 19 1:51 PM
Hi there, here is my solution:
https://github.com/lars-sawyer/abap-code-challenge/blob/main/src/zz_cl_ui5_app.clas.abap
2023 May 19 6:37 PM - edited 2023 May 19 6:49 PM
2023 May 19 6:42 PM
2023 May 19 6:46 PM
2023 May 19 8:51 PM
After the SICF struggle (hint: don't specify user & password in the service definition) I could get to the enjoyable part of creating my first UI5 application. I had not thought I would do that by writing ABAP code!
2023 May 20 8:52 PM
2023 May 20 11:14 PM