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

Sdílet
Vložit
  • čas přidán 10. 09. 2024

Komentáře • 24

  • @the_vitor
    @the_vitor Před 2 měsíci

    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  Před 2 měsíci +1

      Thanks for your feedback and for sharing your findings here.

  • @Srinivassunrise
    @Srinivassunrise Před 17 dny

    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" "

  • @Srinivassunrise
    @Srinivassunrise Před 17 dny

    Hi Followed your steps and created APP from BAS but data not showing

    • @BlueAntoinette
      @BlueAntoinette  Před 17 dny

      Are you actually referring to this video? In this video we use Eclipse, not BAS…

  • @carstenschlegel6975
    @carstenschlegel6975 Před 2 měsíci

    In my app it's not possible to click on the thumbnail in the object page to enlarge the picture. Any idea?

    • @BlueAntoinette
      @BlueAntoinette  Před 2 měsíci

      Did you add the headerinfo annotation as shown in this step? czcams.com/video/BEbztssJlg8/video.html

    • @carstenschlegel6975
      @carstenschlegel6975 Před 2 měsíci

      @@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  Před 2 měsíci

      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 Před 2 měsíci

      @@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  Před 2 měsíci

      Regarding the delete issue, could you provide a reproducible sample? Hard for me to reproduce it otherwise.

  • @carstenschlegel6975
    @carstenschlegel6975 Před 3 měsíci +1

    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  Před 3 měsíci

      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.

  • @fabianha8236
    @fabianha8236 Před 2 měsíci

    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  Před 2 měsíci

      Great question, maybe setting the filtering condition in @ObjectModel.filter.transformedBy: … helps

    • @fabianha8236
      @fabianha8236 Před 2 měsíci

      @@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  Před 2 měsíci

      Well, if it is not depending on a database column, on what information does it get differentiated?

    • @fabianha8236
      @fabianha8236 Před 2 měsíci

      @@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 ☺️

  • @0875179677
    @0875179677 Před měsícem

    Good video.. One question, how to I know properties of annotation? Can I find it?

    • @BlueAntoinette
      @BlueAntoinette  Před měsícem +1

      Have a look at help.sap.com/doc/saphelp_nw75/7.5.5/en-US/f8/af07bb0770414bb38a25cae29a12e9/frameset.htm

    • @0875179677
      @0875179677 Před měsícem

      @@BlueAntoinette thank youu