Let's code ABAP | RESTful Application Programming Model (RAP) | CDS | Virtual Elements

  Рет қаралды 2,013

Blue Antoinette

Blue Antoinette

Күн бұрын

Пікірлер: 24
@the_vitor
@the_vitor 2 ай бұрын
Thank you for the excellent series of videos! I have noticed that most SAP RAP tutorials primarily focus on the "UI service," leaving a gap in coverage/documentation/examples for the "Web APIs" model. This is particularly challenging when working with custom entities, as the APIs created are often not exact mirrors of a CDS. In my opinion, while implementing a simple or even a complex read API in SAP RAP is relatively straightforward, creating or updating (POST/PUT/PATCH/...) is more complicated. While there are restrictions in the SEGW methodology, they are not as extensive as those in RAP.
@BlueAntoinette
@BlueAntoinette 2 ай бұрын
Thanks for your feedback and for sharing your findings here.
@carstenschlegel6975
@carstenschlegel6975 3 ай бұрын
Very nice, thanks a lot. Interesting with the thumbnails. Is it possible to display the URL clickable in the object page (02:02 and 20:45)? It is a pity that the SAP UUIDs are not real UUIDs. UUIDs should always be completely different so that it is not possible to infer other UUIDs from a known UUID. Unfortunately, ABAP only adds the value 2 in the fourth last byte. If I have the UUID of e.g. user 1, I can simply calculate the UUID of user 10. This is exactly what the UUID should prevent in comparison to the ID (integer). This is the case everywhere (JavaScript, PowerShell, Bash, C#, ...) but not in ABAP :-(
@BlueAntoinette
@BlueAntoinette 3 ай бұрын
Regarding the clickable URLs at the object page you can try: @UI.identification: [ { position: 45, type: #WITH_URL, url: 'Url' -- Reference to element } ] Regarding the UUID issue you could try to reach out to SAP directly.
@Srinivassunrise
@Srinivassunrise Ай бұрын
Hi Followed your steps and created APP from BAS but data not showing
@BlueAntoinette
@BlueAntoinette Ай бұрын
Are you actually referring to this video? In this video we use Eclipse, not BAS…
@Srinivassunrise
@Srinivassunrise Ай бұрын
getting error "App could not be opened because the SAP UI5 component of the application could not be loaded. Failed to load UI5 component for navigation intent "#forecast830-tile" "
@BlueAntoinette
@BlueAntoinette Ай бұрын
In which environment did you create the app?
@carstenschlegel6975
@carstenschlegel6975 3 ай бұрын
In my app it's not possible to click on the thumbnail in the object page to enlarge the picture. Any idea?
@BlueAntoinette
@BlueAntoinette 3 ай бұрын
Did you add the headerinfo annotation as shown in this step? kzbin.info/www/bejne/eHbFq6epqK-fnZo
@carstenschlegel6975
@carstenschlegel6975 3 ай бұрын
@@BlueAntoinette Yes, the Thumbnail was displayed in the object page. But it's not clickable. @UI: { headerInfo: { title: { type: #STANDARD, value: 'Title' }, imageUrl: 'Thumbnail' } I've tried it with 2 @UI.headerInfo... annotations too. Same result. Visible Thumbnail, no zoom possible.
@BlueAntoinette
@BlueAntoinette 3 ай бұрын
Hm, I did nothing special to make it clickable. This worked out of the box in my case. Maybe it’s related to a different version of the framework on your hyperscaler, region or account.
@carstenschlegel6975
@carstenschlegel6975 3 ай бұрын
@@BlueAntoinette We probably need to update our UI5 version on the S4 system. Elements will eventually become UI5 and if we have an old version, one or the other functionality will not be available. Thanks for the quick reply anyway. PS: Do you know how to implement an action that deletes a record? After deleting, I always get the object page with a 00000-0000-00000... entry (because the actual one is deleted). If I select >1 entries, I remain in the list view. Maybe you can make a short video if you have the solution. I couldn't find anything on the web. PSPS: It is NOT the implementation of the DELETE functionality in an unmanaged scenario. I need an action with its own label (since the action was DELETED AND somewhere else was UPDATED, the label was "No Hit")
@BlueAntoinette
@BlueAntoinette 3 ай бұрын
Regarding the delete issue, could you provide a reproducible sample? Hard for me to reproduce it otherwise.
@0875179677
@0875179677 2 ай бұрын
Good video.. One question, how to I know properties of annotation? Can I find it?
@BlueAntoinette
@BlueAntoinette 2 ай бұрын
Have a look at help.sap.com/doc/saphelp_nw75/7.5.5/en-US/f8/af07bb0770414bb38a25cae29a12e9/frameset.htm
@0875179677
@0875179677 2 ай бұрын
@@BlueAntoinette thank youu
@fabianha8236
@fabianha8236 3 ай бұрын
Hello, do you have an idea how to filter on the calculated field within the view definition? Example: define root view entity xxxx as projection on yyyyyy { key UUID, @ObjectModel.virtualElementCalculatedBy: 'ABAP:ZCLASS_CALC' virtual Testitest : abap.char( 10 ) } where Testitest = 'ABC' This doesn't work because the column is unknown. And if i try to filter within the class it raises a short dump because ct_calculated_data needs the same amount of entries as the it_original_data
@BlueAntoinette
@BlueAntoinette 3 ай бұрын
Great question, maybe setting the filtering condition in @ObjectModel.filter.transformedBy: … helps
@fabianha8236
@fabianha8236 3 ай бұрын
@@BlueAntoinette yeah i have tried that. But my problem is, that the calculated column is based on a function module and is not depending on any existing database column.
@BlueAntoinette
@BlueAntoinette 3 ай бұрын
Well, if it is not depending on a database column, on what information does it get differentiated?
@fabianha8236
@fabianha8236 3 ай бұрын
@@BlueAntoinette The calculation imports the values of three different columns to traverse a tree. Depending on different combinations a Boolean gets exported and displayed in the application. But nevermind, i am pretty sure that I can’t solve my problem with the filter factory. According to the documentation, I need a real database column and that doesn’t work. Thank you for your input ☺️
She's very CREATIVE💡💦 #camping #survival #bushcraft #outdoors #lifehack
00:26
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
SIDELNIKOVVV
Рет қаралды 3,3 МЛН
The selfish The Joker was taught a lesson by Officer Rabbit. #funny #supersiblings
00:12
connect gcp vm | How to ssh to GCP VM | Virtual Machine
13:28
Learning Light
Рет қаралды 204
ABAP® RAP End-End Getting Started | RESTful ABAP® with S/4 HANA® | ABAP® RESTful
1:03:34
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 198 М.
DHH - Ruby on Rails, 37signals, and the future of web development
1:09:57
🟢 ABAP Cloud for Classic ABAP Developers
1:03:10
SAP Developers
Рет қаралды 12 М.
Are You Accidentally Crippling Your EF Core Queries?
17:18
Milan Jovanović
Рет қаралды 26 М.
"I Hate Agile!" | Allen Holub On Why He Thinks Agile And Scrum Are Broken
8:33
Let's build a SAPUI5 Freestyle App for an OData V4 Service
26:17
Blue Antoinette
Рет қаралды 243