YouTube Icon

Interview Questions.

Top 100+ Sap Ui5 Interview Questions And Answers - Jun 01, 2020

fluid

Top 100+ Sap Ui5 Interview Questions And Answers

Question 1. Which Control Libraries Are Used For Ui5 Application Development?

Answer :

sap.Ui.Commons, sap.Ui.Desk and sap.Suite.Ui libraries for computing device application improvement and sap.M library at the side of sap.Ui.Layout for Fiori software development.

Question 2. How Navigation Works In Sapui5?

Answer :

Sap makes use of  mechanisms, routing and EventBus. Routing Is particularly used for bookmarking the URL. We outline routing in component.Js in the metadata. It also defines the navigation path and hash changer which is used on the runtime to trade the url of the unique display.

SAP CRM Interview Questions
Question 3. What Is Component?

Answer :

It is the primary factor of the application, it serves as an index, which encapsulates all of the software information, like  view names, routing details, main view, packages type(Full Screen or SplitApp), utility provider configuration and many others.

There are 2 kinds of compponents:

Faceless additives: Mainly without UIs, Used for enterprise good judgment and helper strategies e.G. Formatters.
UI Component: usually component.Js report that's made via extending sap.Ui.Core.UI Component class.
 

Question four. What Is Responsive Web Design?

Answer :

A internet application which gives equal look and experience to the consumer in computer systems and cellular gadgets.

SAP CRM Tutorial
Question 5. What Is The Syntax To Define A Control In Ui5?

Answer :

var obj_name = new sap.M.ControlName(“identity of manage”, homes, occasions, aggregations );

SAP CRM Functional Interview Questions
Question 6. What Is Formatter In Sapui5 And How To Use It?

Answer :

We need to use formatter when we need to carry out a few changes on the again quit property statistics on the front end.

We can use formatter while statistics  binding to a belongings like as follows:

oControl = new sap.Ui.Commons.TextField(
price : course : “/path”, formatter : characteristic(oEvent)
go back “Value:”+oEvent;
);

Question 7. How Many Types Of Views Are Available In Sapui5?

Answer :

There are 4 varieties of views available:

JS view
JSON view
XML view
HTML view
SAP ABAP Tutorial SAP ABAP Interview Questions
Question eight. How Many Types Of Data Model Are Available In Sapui5?

Answer :

SAPUI5 has following predefined four records models to be had:

JSON Model: Client-aspect version, helps  manner binding.
XML Model : Client-facet version and intended for small statistics sets this is very rarely used version.
Resource Model : This is also consumer side version used to preserve aid bundles, mainly texts.
ODATA Model : This is maximum crucial model of the four supplied.
Question nine. What All Events/life Cycle Are Available In Sapui5’s Views Controller?

Answer :

There are four lifecycle to be had in SAPUI5’s perspectives controller, they're:

onInit() – it is known as while a view is instantiated and its controls have already been created.
OnExit() – it's far referred to as while the view is destroyed, used to free resources and finalize sports.
OnAfterRendering() - when the view has been rendered and, therefore, its HTML is a part of the document.
OnBeforeRendering() -It is known as before the controller view is re-rendered and now not earlier than the first rendering. 
SAP PI Interview Questions
Question 10. What Is The Main Difference Between Odata Model And Json Model?

Answer :

The JSON model is a customer-facet version and, consequently, meant for small datasets, which might be absolutely available on the patron.The OData model is a server-aspect version: the dataset is only to be had on the server and the customer most effective is aware of the currently seen rows and fields.

SAP PI Tutorial
Question 11. What Is Sapui5 Bootstrapping?

Answer :

SAPUI5 Bootstrapping method loading and initializing SAPUI5 in any HTML page. Themes and Libraries are defined on this.

SAP HANA Interview Questions
Question 12. In How Many Ways You Can Bind Data To Your Controls?

Answer :

We can bind statistics to any controls the usage of 3 strategies, Property, Element and Aggregation binding.

SAP CRM Interview Questions
Question 13. What Are Sapui5 Fragments?

Answer :

Fragments are very light weight UI controls. Fragments aren't completely like perspectives but they act like a view. Fragments are described similar like views and are names like “Fragment.Fragment.Xml“.

SAP HANA Tutorial
Question 14. Does Fragment Have Its Own Controller?

Answer :

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

Question 15. What Is Metadata Annotations?

Answer :

The provider metadata report describes the structure of all resources in the provider. This structural metadata makes it clean to recognize a carrier. We can explore carrier metadata at the cope with “$metadata” relative to the carrier root.

SAP Crystal Reports Interview Questions
Question sixteen. What Are Common Metadata Annotations?

Answer :

Following are a number of the carrier metadata annotations that are common and a front end developer should recognize these with a view to understand the carrier and integrate it:

edm:EntityContainer
edm:EntitySet
edm:EntityType
edm:Property
edm:NavigationProperty
edm:AssociationSet
SAP Crystal Reports Tutorial
Question 17. What Is Sap Fiori?

Answer :

SAPUI5 is patron aspect HTML5 rendering framework or library and SAP FIORI is collection of and launched as waves of applications which might be absolutely primarily based on SAPUI5 framework. It means we are able to create applications the use of SAPUI5 framework and SAP FIORI is final product i.E. Software. In SAPUI5 we must code from scratch, but in Fiori Application the custom software is already built and improvements may be executed on those custom apps.

SAP XI Interview Questions
Question 18. How Many Types Of Fiori Applications Are There?

Answer :

There are three kinds of fiori packages:

Transactional
Analytical
Fact Sheets
SAP CRM Functional Interview Questions
Question 19. What Is The Difference Between Sap Fiori And Sapui5?

Answer :

SAP FIORI is collection of general programs primarily based on SAPUI5 library provided by using SAP. SAP FIORI applications percentage some widespread layout suggestions and manner in which those application are developed.

Javascript Advanced Tutorial
Question 20. What Is Fiori Launchpad And Explain It?

Answer :

It is  a home web page for all of the FIORI applications furnished to. There are greater than five hundred custom app provided by way of SAP. This shows tile based UI in which every UI redirects to assigned FIORI application. This Launchpad is completely customizable consistent with your wishes like theming and all.

Javascript Advanced Interview Questions
Question 21. How Can You Get The Web Browser Of The Client On Which Sap Fiori Application Is Running?

Answer :

SAPUI5 library gives a unique API “sap.Ui.Device“which can be used to for device and its feature detection. This API provides flags like “chrome”, “firefox”, “mozilla”, “part” and so on. In “sap.Ui.Device.Browser” API which returns boolean values. 

Question 22. What Are Fiori Design Principles?

Answer :

There are five layout ideas we want to maintain in thoughts even as designing SAP Fiori packages.

Role Based
Delightful
Simple
Responsive
Coherent
SAP Fiori Tutorial
Question 23. Which Open Standards And Tools Are The Foundation Of Sapui5 Technology?

Answer :

D3.Js for visualisation
ARIA for accessibility standards and keyboard handling
jQuery for managing DOM factors and abstracting browser differences
SAP Fiori Interview Questions
Question 24. What Sapui5 Control Metadata Is Used To Configure The Ui Elements At Runtime?

Answer :

Associations
Properties
Aggregations
SAP ABAP Interview Questions
Question 25. What Are View Types Offered By Sapui5?

Answer :

JavaScript perspectives
JSON perspectives
XML views
Question 26. What Is The Purpose Of A Controller?

Answer :

To separate the UI and the processing common sense
To manipulate the application go with the flow via managing person occasions or updating the view
SAP Enterprise Portal Interview Questions
Question 27. Name Some Standard Controller Hooks In Sapui5?

Answer :

onInit – an occasion that is called while the view and the controller are instantiated
onExit – an occasion that is referred to as when the view and the controller are destroyed
SAP PI Interview Questions
Question 28. What Information Can Be Stored In The Manifest.Json File Of Your App?

Answer :

Root view
Supported device types
Supported themes
Question 29. Which Of The Following Namespaces Can Be Used In The Manifest.Json File?

Answer :

sap.Ui5
sap.App
sap.Ui
SAP E Recruitment Interview Questions
Question 30. What Is The Name Of The File Where The Descriptor For Applications, Components, And Libraries Is Stored?

Answer :

Manifest.Json

Question 31. For What Stands The Abbreviation Json?

Answer :

Java Script Object Notation

Question 32. Which Data Binding Mode Means A Binding From The Model To The View And From The View To The Model (fee Changes In The Model And In The View Update All Corresponding Bindings And The View And Model, Respectively)?

Answer :

Two-manner

Sap Hana Xsjs Interview Questions
Question 33. How Would You Add An Icon From The Sapui5 Icon Font To A Button In An Xml View?

Answer :

<Button text="Save Draft" icon="sap-icon://save" />

SAP HANA Interview Questions
Question 34. Which Predefined Sizes For Margins That Stand For 8px (0.5rem), 16px (1rem), 32px (2rem), Or 48px (3rem) Are Available In Sapui5?

Answer :

'Tiny', 'Small', 'Medium' or 'Large'

Question 35. What Is Aggregation Binding Used For?

Answer :

To bind a fixed of statistics entities to a list-like structure

Question 36. What Do You Need If You Want To Bind A List To Data In Your Jsonmodel?

Answer :

An array with the statistics within the JSONModel which you need to bind to the list
A template listing object to be cloned
A sure list control
SAP Crystal Reports Interview Questions
Question 37. How Can You Access Validation Errors In Sapui5?

Answer :

Set handleValidation to authentic inside the take place.Json report.
Register to the validationError occasion on sap.Ui.GetCore().
Question 38. Name Some Types In Sapui5?

Answer :

sap.Ui.Model.Kind.Float
sap.Ui.Model.Kind.DateTime
sap.Ui.Version.Type.Currency
Question 39. What Coding Do You Need To Add To Your Xml View To Enable Grouping In Your List Binding?

Answer :

group: actual

Question forty. Which Of The Following Sequences Of Steps Do You Use To Assemble The Url To Access Your Odata Service's Metadata?

Answer :

Run your app from SAP Web IDE and replica its URL into a brand new browser tab.
In your app's take place.Json record, go to “services”, copy the URI, and use it to replace the file course inside the URL from Step 1.
Append “/$metadata” and press enter.
SAP XI Interview Questions
Question 41. How Many Filters Can You Apply On A List Binding?

Answer :

As many as wished

Question forty two. What Is The Best Practice For Showing Or Hiding An Sapui5 Control At Runtime?

Answer :

Set the “seen” assets of the control to “true” or “false”.

Javascript Advanced Interview Questions
Question 43. When Do You Use Element Binding?

Answer :

When you need bindings of infant controls to resolve their paths relative to the binding of the discern

Question 44. What Is The Difference Between Aggregation Binding And Element Binding?

Answer :

Aggregation binding is used for listing-like systems, while element binding can be used to set the binding context of any figure control.

Question forty five. How Is Paging Accomplished In Odata Query?

Answer :

Paging can be finished through the usage of $pass in mixture with $pinnacle. The parameters’ values describe the c programming language of the data that is asked.

Question 46. Name Some Odata Query Parameters?

Answer :

$bypass
$count number
$make bigger
Question forty seven. What Are Semantic Colors In Sapui5?

Answer :

They are representations of states together with success, warning, and error.

Question 48. Name Some Semantic States In Sapui5?

Answer :

Positive
Negative
Critical
Question 49. How Can You Compose Filters In Sapui5?

Answer :

By growing a couple of filters and concatenating them either with AND or OR
By developing a single sap.Ui.Model.Filter object and specifying a course, an operator, and up to 2 values
Question 50. Where Are Filters Applied In Sapui5?

Answer :

To an aggregation binding

Question 51. Which Filter Operation Can You Use To Filter Items With A Numeric Value Lower Than X?

Answer :

sap.Ui.Version.FilterOperator.LT

Question 52. What Can You Do To Enable Your Sapui5 Application To Adapt To The User’s Device?

Answer :

As many controls are responsive out of the box, test whether you need to do anything in any respect.
Set the compact density on devices with out touch guide.
Question fifty three. What Can A “device Model” Be Used For?

Answer :

To take a look at whether a tool helps contact interaction
To have an impact on the user interface with out coding, based totally on the traits of the tool
Question fifty four. What Information Is Provided By The Sap.Ui.Tool Api?

Answer :

The tool type (smartphone/pill)
Whether the tool has touch assist
The browser call and version
Question 55. Which Control Adapts Its Appearance On Touch Devices?

Answer :

The PullToRefresh control: It is represented as a easy button on non-contact devices, but the user desires to tug the page content down on contact devices to refresh it.

Question fifty six. Why Is It Useful To Have Fragments In Your App?

Answer :

To create reusable UI elements without a chosen controller or different conduct code

Question 57. What Happens In The Dom Tree When Nesting Xml Views?

Answer :

Each XML view creates its very own DOM detail no matter the nesting level.

Question 58. What Can You Do To Structure Your Application Code Better?

Answer :

Use subdirectories for related views and controllers.
Use fragments to define reused UI elements handiest once.
Put the capability utilized in multiple controllers right into a base controller and make bigger this controller inside the other controllers for your app.
Question fifty nine. What Are Fragments Primarily Used For?

Answer :

To make parts of your view reusable

Question 60. What Are Dialogs In Sapui5?

Answer :

They are rendered into a particular place (the static place) within the DOM.
They needo be delivered to the “established” aggregation of the view to get get right of entry to to the fashions.
 

Question 61. What Happens When You Instantiate A Dialog From A Single-rooted Fragment?

Answer :

The dialog instance is again while you invoke the fragment factory.
The conversation is instantiated however no longer displayed.
Question sixty two. Which Property Of The Routing Configuration In The Manifest.Json File Should You Use To Automatically Display A Target That Is Not Found?

Answer :

Bypassed

Question sixty three. How Many Targets Can You Configure Within A Route In The Manifest.Json File?

Answer :

As many as you like

Question sixty four. What Is The Correct Sequence Of Called Functions / Handled Callbacks Of The Odata Model In The Add Controller?

Answer :

on metadataLoaded - createEntry - submit - on achievement

Question sixty five. What Is The Recommended Place To Configure A "twoway" Binding For The Odata Model So That Data Changes In The View Are Written Back To The Model?

Answer :

In the "fashions" section of the happen.Json file

Question 66. How Are Unit Tests For Your App Started In Sap Web Ide?

Answer :

By selecting the run configuration Run Unit Tests
By right-clicking the unitTests.Qunit.Html report and deciding on an choice from the Run menu
Question sixty seven. How Do You Register A Unit Test In Qunit?

Answer :

Call QUnit.Check() to your take a look at code with a talking check description and a callback that incorporates at the least one announcement.

Question sixty eight. Which Testing Features Are Provided By The Sap Fiori Worklist Application Template?

Answer :

A test suite that calls all of your unit and integration checks
Clear separation of test and manufacturing code
Unit take a look at setup (QUnit) and primary take a look at insurance
Question 69. Which Options Are Available In Sapui5 If You Want To Create A Custom Control?

Answer :

Extend an current manage together with your personal functions.
Create a composite control that reuses existing controls internally.
Extend the sap.Ui.Core.Control base elegance and build a brand new manipulate.
Question 70. Which Of The Following Are Part Of The Control Metadata?

Answer :

Aggregations
Properties
Events
Question seventy one. What Do You Have To Consider When Defining Control Metadata?

Answer :

You can supply an aggregation both one or many values by using defining the multiplicity as “one” or “many”.
You can make an aggregation invisible inside the manage API by setting the visibility to hidden.
Question seventy two. How Do You Enable The Debugging Option For Sap Netweaver Odata Services?

Answer :

Use the URL parameter sap-ds-debug=actual.

Question 73. What Do You Have To Consider When Choosing The Sapui5 Version For The Application Template?

Answer :

The SAPUI5 version must be to be had in your target deployment device.

Question 74. What Is Openui5?

Answer :

A subset of SAPUI5 containing the entire middle and more than two hundred UI controls 
A unfastened-to-use and open supply UI library geared up to your contributions
Question seventy five. What Is The Correct Syntax For Defining Namespaces In Xml Views?

Answer :

xmlns:m="sap.M"

Question seventy six. Why Is Not All Javascript Code Put In A <script> Tag Directly On The Index.Html Page?

Answer :

To certainly separate concerns in keeping with the MVC idea.
To make your code a great deal less complicated to examine and hold
To enable your code to dynamically load sources as they're wished
Question 77. What Is A Component Within Sapui5?

Answer :

An unbiased and reusable part that may be used to structure SAPUI5 programs

Question 78. What Information Can Be Stored Inside The Manifest.Json File Of Your App?

Answer :

Content densities
Root view
Models of your app
Question 79. What Is The Benefit Of Data Binding Within Sapui5?

Answer :

SAPUI5 makes use of facts binding to bind two facts resources or facts assets together to preserve them in sync. This method: All adjustments in a single source also are reflected in the other one.

Question eighty. How Can You Add A Margin All Around A Control?

Answer :

elegance="sapUiSmallMargin"

Question 81. Which Base Class Are You Recommended To Extend When Implementing A Custom Type?

Answer :

sap.Ui.Model.SimpleType

Question eighty two. How Can You Distinguish Absolute And Relative Binding Paths?

Answer :

Absolute binding paths constantly begin with a "/".

Question eighty three. How To Sort And Group Your Sap.M.List When Added To The View.Xml?

Answer :

objects="
    path : '/ProductSet',
    sorter : 
        direction : 'Category',
        institution : genuine
    
"

Question eighty four. How Can You Access The List Item Control In An Event Handler For The Press Event?

Answer :

Call the getSource() method at the event object parameter.

Question 85. What Is The Role Of The Application Template In The Development Process?

Answer :

To generate an initial set of documents that serve as the start line for the development of a efficient application

Question 86. How Can Sap.M.Table Behave On Smaller Devices Such As Phones And Tablets?

Answer :

It hides much less important columns.
It displays much less essential columns as a "pop-in"; it stacks them vertically inside the row making the table larger in top.
Question 87. Which Filter Operation Is Appropriate For A Textual Search In Sapui5?

Answer :

sap.Ui.Model.FilterOperator.Contains

Question 88. Which Responsiveness Features Can You Realize By Setting Standard Css Classes Provided By Sapui5?

Answer :

Adding exclusive margins to controls depending at the display screen length
Hiding controls depending at the screen size
Question 89. Which Options For Code Reuse Are Available In Sapui5?

Answer :

Controller inheritance
Nested views
Fragments
Question 90. When Should You Put Code From Your View Into A Separate View Or Fragment And Nest It Into The Original View?

Answer :

When you recognize which you want to reuse this code in several different locations and views in your app.

Question ninety one. What Do You Have To Do To Grant A Dialog Access To The Surrounding View’s Models?

Answer :

Add the conversation to an aggregation of the view, for instance the "based" aggregation.

Question ninety two. What Is The Purpose Of The "static Area" In The Dom?

Answer :

To display dialogs and popup controls over the software UI

Question ninety three. Which Benefits Does The Hash-primarily based Navigation In Sapui5 Offer?

Answer :

Hash-primarily based navigation adjusts the modern hash for your interactions with the app, so that the URL can always be bookmarked.
It allows you to construct one-page apps in which the contextual navigation is finished by means of changing the hash, so the browser does not have to reload the page.
Question ninety four. What Do You Have To Do To Be Notified When The Hash Has Changed To A Certain Pattern?

Answer :

Register to the patternMatched event of the direction.

Question 95. What Is Sinon.Js?

Answer :

A standalone unit checking out library for JavaScript that offers spies, stubs, and mocks

Question ninety six. Where Does Opa Fit In The Testing Pyramid?

Answer :

In component/integration exams

Question 97. Why Is Automated Testing Beneficial For App Development?

Answer :

It notably reduces the guide testing attempt.
It is less difficult handy over the app to other builders.
You can avoid regressions and insects to your code.
Question 98. What Is The Main Difference Between Html5 And Sap Ui5?

Answer :

HTML5 is a markup language and it doesn’t have programming competencies but SAP UI5 is a framework which is based totally on MVC method to build net packages. HTML5 is especially for the cause of making a easy website without formatting and common sense however UI5 provides popular fashion and additives to construct wealthy UIs.

Question ninety nine. What Is Mvc?

Answer :

MVC stands for version view controller; it’s an architecture to layout UI primarily based packages to achieve maximum reusability and extensibility of the utility for future changes. Model is the representation of facts in shape of object, View defines the UI and Controller consists of all the logic to pressure as well connects view with version.

Question one hundred. Why Sapui5 Instead Of Html5?

Answer :

As HTML5 world is the new age the front era throughout all aspect of internet packages SAP changed into form of trailing in this age due to the fact SAP was using age old WebDynpro for building SAP Web Applications which lacks in wealthy and consumer-friendly UI. SAP recognized this and came up with its very own custom HTML5 library i.E. SAPUI5.




CFG