Skip to Content

Questions about actuality SAPUI5 + CDS applications

Hi Everybody! I have started to learn SAPUI5 and CDS for ABAP, and I have some questions to you. Could you answer it, if it possible. All questions is only my opinion.

1. In the different sources, I readed that SAPUI5 is a consistention of best UI practice. But in the official demos and my samples that was generated from CDS , I did not found very useful possabilities. For example, I tryed copypast, but I can not copy some interval of values in the column of table (all data from all columns was selected and copied, becouse it is a HTML text), also tables has no functions for data analises.

Question - how do you see, is the SAPUI5 real convinient for user in ABAP NetViewer environment?

2. The question of security. As SAPUI5 application is a JavaScript code, any user can open the debugger in the brouser and see all logic of the application, all data (that maybe should be hided on the screen), all oData sources (this sources user can use outside of application and can download hided data also change DB data with incorrect) . Also user can rewrite JavaScript code in debugger and avoid some security moments.

Question - how do you the security approatch for SAPUI applications, how you validate data in CRUD CDS ? Most interest the practice of SAPUI5 and CDS .

3. The question about actuality of SAPUI5 . The classic SAPGUI application gives me some couple of benefites: a. I can start transaction in SAPGUI b. I can start transaction in HTML GUI c. I can start transaction in job d. I can use application like a module (submit, batch input). With SAPUI5 - I can use application in brouser only.

Question - how do you see the actuality of SAPUI5 applications in ABAP NetViewer environment?

4. Currently, the CDS + autogenerated Odata + autogenerated SAPUI5 is the best practices for application development . But practically, it is difficult to prepare the data for application with only one CDS, usually we needs postprocess of data with FM or some methods.

Question - how do you create difficult data models with only one CDS ?

5. The question about speed performance. As SAPUI5 is a stateless application and hase no trabsaction in the backend, it means that application do request and response to backend wery often. And all time backend read data from scratch. Maybe for HANA it is OK, but we can use CDS and SAPUI5 with old Oracle DB or MSSQL (also file or slow webservices), for that environments it can be a problem, ond classic approatch (read to internal tables and use it from memory) geves more benefites. Is it means that SAPUI5 + CDS - only for HANA ?

Question - Did you fou found any problems with SAPUI5 speed performances ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Oct 28, 2019 at 07:27 AM


    I might not be completely right but will try to answer per my knowledge.

    1. I didn't understand this point completely can you rephrase it?

    Also, some features like copy paste which are available in sap GUI are not available in UI5 directly, but with some javascript code it is possible(manual effort). But I saw some video where SAP fiori element template supports copy paste of data automatically!! Couldn't find that link to share with you.

    You can also create cds views with analytical capabilites and fiori elements template apps shows all the charts with little to no coding effort.

    2. In any modern web application that uses html and javascript has this issue. So how to solve this? You need to implement checks in the backend as well whether the correct data is passed to the backend or not.

    For e.g., Maybe one field is mandatory for input and mandatory check is shown in the frontend via the frontend code. So this check has to be implement in backend as well so even if user overrides that error by js code manipulation it will check in the backend.

    When it comes to fiori elements apps(template based) all the checks will be done in the backend by asynchronous calls. So no checks happen in the UI, all comes from the backend.

    3. Ofcourse there are some benefits with sap gui and even more benefits with the Fiori apps. For your scenario there are concepts like Reuse library, component reuse and stuff available in ui5.

    There are benefits with SAP GUI like pessimistic locking and stuff, for UI5 it doesn't have that, but there are ways to do it like soft state and the latest Durable locks that works with drafts.

    But If you see ui5, there is theming option, custom controls, light weight(fast), light weight on application server as well as no session is maintained!!! only when the requests are sent session are opened!. and much more.

    But batch input is too old!!, now we have BAPIs for that and there is RPA(robotic process automation)

    4. Yeah that is the best practice but not the mandatory practice ;)

    Initially to understand and getting used to it kind of difficult like any other new language. Once you get used to it, it's become a lot easier. My suggestion is go and check the standard apps like Business partner (supplier) or other apps. That's how I learned :).

    and One CDS view is the root cds view and using associations, you can join multiple CDS view ( which are available as associations) You have actions, determinations and stuff to write you abap code. The Latest ABAP Restful programming model even supports FM call as an entity and much more is coming soon. meanwhile if you want to try check the ABAP Programming model for fiori with Draft features for custom tables without GUID hacks are available.

    5. Agree with you on this. With HANA CDS view search helps, fiori reports become more faster. This is the selling point for SAP for customers to move to S4hana.

    Apart from that SAP UI5 speed remains the same, it all depends on the code we write and the backend logic! For improving loading times or performance of ui5 apps there are a lot of blogs and standard documentation available.

    With every release UI5 is also becoming more faster as recently they changed a lot in the UI5 core.

    Hope this helps!


    Add a comment
    10|10000 characters needed characters exceeded


      For eservices may be you are right.. But for internal applications you probably don't need to write double validations and If we write some smart code we can completely avoid validations in UI except some mandatory checks and stuff (for which some ui5 open source libraries are there), it will be less effort.

      Agree, going which UI5 will be definitely costs the time and effort. and there are many UI5 devs out there, but from my experience very few only delivery with the right coding standards and stuff.

      That is the main reason why SAP is going with Fiori elements templates(very Less ui5 code) but best features(Draft and other stuff) are available with the latest versions only

      Also I didn't check the video completely, will surely check again.. But even in the description the OP says that most of the issues applies to older version. Now I am pretty sure UI5 team is fixing if any security issues are found. So better to be on the latest version.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.