• USA : +1 973 910 5725
  • INDIA: +91 905 291 3388
  • info@tekslate.com
  • Login

SAPUI5 Interview Questions

What is SAPUI5?

Just like any other HTML5 client-side rendering library SAPUI5 is also one. SAPUI5 strictly follows RIA (Rich Internet Application) standards. It is based on JavaScript which provides a lightweight programming model for desktop as well as mobile applications.

Why SAPUI5?

As HTML5 world is the new age front technology across all aspect of internet applications SAP was kind of trailing in this age because SAP was using age old Web Dynpro for building SAP Web Applications which lacks in rich and user friendly UI. SAP identified this and came up with its own custom HTML5 library i.e. SAPUI5.

Explain Navigation concept in SAPUI5.

SAPUI5 uses two mechanism for navigation in applications those are EventBus and Routing where latter supersedes since SAPUI5 1.16.sap.ui.core.routing is the class used for the routing.
We define routing in components metadata in “routing” key.

What is Component?

Component or Component.js is the first point of our application or we can say bthat it serves as index which encapsulates all our applications details i.e. view names, routing details, main view, applications type(Fullscreen or SplitApp), application service configuration etc.

What is the difference between HTML5 and SAPUI5?

HTML5 is a markup language, It doesn’t have programming capabilities but SAPUI5 is a framework which is based on MVC approach to build web applications. HTML5 is mainly for the purpose of creating simple webpage without formatting and logic but UI5 provides standard style and components to build rich UIs.

What is MVC?

MVC stands for model view controller; it’s an architecture to design UI based applications to achieve maximum reusability and extensibility of the application for future changes. Model is the representation of data in form of object, View defines the UI and Controller contains all the logic to drive as well connects view with model.

When and How to use formatter in SAPUI5?

We need to use formatter when we need to perform some changes on the back end property data on the front end.
we can use formatter while data  binding to a property like as follows:
oControl = new sap.ui.commons.TextField({
value : {path : “/path”, formatter : function(oEvent){
return “Value:”+oEvent;
}}});

What all design patterns are recommended/available in SAPUI5?

SAP recommends following application design patterns keeping in mind design consistency of the applications:

Master – Detail

Master-Master-Detail

Fullscreen

Fullscreen-Fullscreen-Master Detail (Multi Flow)

What all types of views are available in SAPUI5?

There are following predefined three types of view available in SAPUI5:

JSON view

JavaScript View(JS View)

HTML View

What is formatter in SAPUI5 and how to use it?

We need to use formatter when we need to perform some changes on the back end property data on the front end.
we can use formatter while data  binding to a property like as follows:
oControl = new sap.ui.commons.TextField({
value : {path : “/path”, formatter : function(oEvent){
return “Value:”+oEvent;
}}});

Interested in mastering SAPUI5 Training? Enroll now for FREE demo on
 SAPUI5 Training Online.

What all types of data models available in SAPUI5?

As SAPUI5 follows MVC(Model-View-Controller) there model plays crucial role in the framwork. SAPUI5 has following predefined four data models available:

-JSON Model – Client-side model, supports two way binding.

XML Model – Client-side model and intended for small data sets this is very rarely used model.

-Resource Model – This is also client side model used to maintain resource bundles, specially texts.

-ODATA Model – This is most important model of the four provided. This is server side model, supports two way binding ODATA model currently supports ODATA version 2.0.

What are the Lifecycle methods of SAPUI5 views controller?

There 4 four Lifecycle methods available in every SAPUI5 views controller.

These are

onInit()

onExit()

onAfterRendering()

onBeforeRendering()

onInit is called when a view is instantiated and its controls (if available) have already been created;

onExit is called when the view is destroyed, used to free resources and finalize activities;

onAfterRendering when the view has been rendered and therefore its HTML is part of the document;

onBeforeRendering is called before the controller view is re-rendered and not before the first rendering.

What is the main difference between OData Model and JSON Model?

The JSON model is a client-side model and, therefore, intended for small datasets, which are completely available on the client.The OData model is a server-side model: the dataset is only available on the server and the client only knows the currently visible rows and fields.

What are SAPUI5 Fragments?

Fragments are very light weight UI controls and part of another UI. Fragments are not completely like views but they act like a view. Fragments are defined similar like views and are names like “myFragment.fragment.xml“.

Does Fragment have its own controller?

Fragments are created without controllers, they don’t have their own controllers they share controller of the view which is invoking it.

 In how many ways you can bind data to your controls?

We can bind data to any controls using three methods, Property, Element and Aggregation binding.

 What is SAPUI5 Bootstrapping?

SAPUI5 Bootstrapping means loading and initializing SAPUI5 in any HTML page. The most important library or resource loaded in SAPUI5 bootstrap is “sap-ui-core.js”. Apart from this theme for the application, SAPUI5 libraries etc are declared in the bootstrapping.

What is Metadata Annotations?
The service metadata document describes the structure of all resources in the service. This structural metadata makes it easy to understand a service. We can explore service metadata at the address “$metadata” relative to the service root.

What are common Metadata Annotations?
Following are some of the service metadata annotations which are common and a front end developer must know these in order to understand the service and integrate it:
-edm:EntityContainer
-edm:EntitySet
-edm:EntityType
-edm:Property
-edm:Nav Navigation Property
-edm:AssociationSet

What is the difference between SAP Fiori and SAPUI5?

SAP FIORI is collection of standard applications based on SAPUI5 library provided by SAP. SAP FIORI applications share some standard design guidelines and way in which these application are developed.

How many types of fiori applications are there?

There are 3 types of fiori applications:

-Transactional

-Analytical

-Fact Sheets

What is the difference between SAP Fiori and SAPUI5?

SAP FIORI is collection of standard applications based on SAPUI5 library provided by SAP. SAP FIORI applications share some standard design guidelines and way in which these application are developed.

What is FIORI Launchpad and Explain it?

It is  a home page for all the FIORI applications provided to. There are more than five hundred custom app provided by SAP. This shows tile based UI where every UI redirects to assigned FIORI application. This Launchpad is fully customizable according to your needs like theming and all.

 How can you get the web browser of the client on which SAP Fiori application is running?

SAPUI5 library provides a special API “sap.ui.Device“which can be used to for device and its feature detection. This API provides flags like “chrome”, “firefox”, “mozilla”, “edge” etc. in “sap.ui.Device.browser” API which returns boolean values. 

What are Fiori Design Principles?

There are 5 design principles we need to keep in mind while designing SAP Fiori applications.

-Role Based

-Delightful

-Simple

-Responsive

-Coherent

What is SAP Fiori?

SAPUI5 is client side HTML5 rendering framework or library and SAP FIORI is collection of and released as waves of applications which are completely based on SAPUI5 framework. It means we can create applications using SAPUI5 framework and SAP FIORI is final product i.e. application. In SAPUI5 we have to code from scratch, but in Fiori Application the custom application is already built and enhancements can be done on those custom apps.

Summary
Review Date
Reviewed Item
SAPUI5 Interview Questions
Author Rating
5

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

1 Responses on SAPUI5 Interview Questions"

  1. very good collection of questions thank you very much
    SAPUI5 Training
    SAPUI5 Online Training

Leave a Message

Your email address will not be published. Required fields are marked *

Site Disclaimer, Copyright © 2016 - All Rights Reserved.