I have divided the interview questions into 4 parts:
Here are Some
Important SAPUI5 interview questions, which could help you clear an interview
1)What is required to start UI5 development in eclipse?
->In the help menu in Eclipse, click “Install New Software”,
paste one the URL according to the version of the Eclipse.
just import
SAP UI5 toolkit from hana service marketplace. Also we need SAP UI5 ABAP
Repository connector to deploy project in ABAP System.
2)Which
control libraries are used for UI5 application development?
->sap.ui.commons,
sap.ui.table and sap.suite.ui libraries for desktop application development and
sap.m library along with sap.ui.layout for Fiori application development.
3)How
Navigation works in SAPUI5.
->Sap uses two mechanisms, routing and EventBus. Routing Is specifically
used for bookmarking the URL. We define routing in component.js within the metadata. It also defines
the navigation path and hash changer which is used at the runtime to change the
url of the particular screen.
4)What is Component?
->It is the first
point of the application, it serves as an index, which encapsulates all the
application details, like view names, routing details, main
view, applications type(Full Screen or SplitApp), application service
configuration etc.
There are 2
types of compponents,
·
Faceless
components: Mainly without UIs, Used for business logic and helper methods e.g.
Formatters.
·
UI Component:
typically component.js file which is made by extending sap.ui.core.UI Component
class.
5)What is Responsive Web Design?
->A web application which gives same look and feel to the user
in desktops and mobile devices.
6) What is
the syntax to define a control in UI5?
->var obj_name = new sap.m.ControlName(“id of control”,{ properties, events,
aggregations });
7) 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;
}}});
8) How many types of
views are available in SAPUI5?
->There are 4 types of views available:
1.
JS view
2.
JSON view
3.
XML view
4.
HTML view
9) How many types of
data model are available in SAPUI5?
->SAPUI5 has
following predefined four data models available:
1. JSON
Model – Client-side model, supports two way binding.
2. XML Model – Client-side model and intended for small data
sets this is very rarely used model.
3. Resource Model – This is also client side model used to
maintain resource bundles, specially texts.
4. ODATA Model – This is most important model of the four provided.
10) What all events/life cycle are
available in SAPUI5’s views controller?
->There are 4
lifecycle available in SAPUI5’s views controller, they are:
·
onInit()
– it is called when a view is instantiated and its controls have already been
created.
·
onExit()
– it 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()
-It is called before the controller view is re-rendered and
not before the first rendering.
11) 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.
12) What is SAPUI5 Bootstrapping?
->SAPUI5 Bootstrapping means loading and initializing
SAPUI5 in any HTML page. Themes and Libraries are defined in this.
13) 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.
14) What are SAPUI5 Fragments?
->Fragments are very light weight UI controls. Fragments are not completely
like views but they act like a view. Fragments are defined similar like views
and are names like “Fragment.fragment.xml“.
15) 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.
16) 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.
17) 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:NavigationProperty
-edm:AssociationSet
18) 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.
19) How many types of
fiori applications are there?
->There are 3 types of fiori applications:
·
Transactional
·
Analytical
·
Fact Sheets
20) 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.
21) 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.
22) 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.
23) 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
7 comments
Click here for commentsVery Nice collection of question and answers, these questions will more benefit to freshers as well thank you. Read more about SAPUI5 Tutorial
Replygood and all are covered now
ReplyPlease Add More Technical Questions related to Controls
ReplyThank you for sharing the information here. Its much informative and really i got some valid information. You had posted the amazing article.
ReplyRecruitment Franchise in chennai
Excellent job thanks from TURKEY.
ReplyGreat work ... This article is very informative..
Replytry this
ReplyB Best Hair Oil
kunkumadi face Oil
Wheat Grass Powder
Balu Herbals
UB-Slim caps
B-Care Dia Powder
Noni
ConversionConversion EmoticonEmoticon