Are you planning to attend an interview for the SAP Web Dynpro Developer role but confused about how to crack that interview also what would be the most probable SAP Web Dynpro interview questions that the interviewer may ask? Well, you have reached the right place. Tekslate has collected the most frequently asked SAP Web Dynpro interview questions which are often asked in multiple interviews.
In this article, we will cover the following:
Ans: Basically, WebDynpro follows MVC M-Model (Business logic) V-View(Screen) C-Controller (Controls screen and Model)
Ans: The component Controller is the King of all Controllers. It is the backbone of your Web Dynpro Component. It is like a Global or Top Include for your program. It controls the entire activity of your Web Dynpro Component
Ans: Whenever we want views, nodes, or methods of a particular web Dynpro component to be available to other the outside world (i.e. other Webdynpro components), we make use of the Interface controller. Interface Controller is created by default when a Webdynpro component is created.
Interface Controller would generally come into the picture when you are doing component usage of some sort in web Dynpro i.e. re-using views/methods/nodes of one WD component in another.
Ans: Component Controller is only one. You can create multiple controllers, but those are called Custom Controllers.
Ans: When your Component Controller grows big in size (say more than 10-15 views and corresponding context nodes, methods, events, event handlers etc), it might become tough to handle everything in the Component Controller. In such a scenario, you can create one or more custom controllers and modularize or segregate the logic into separate parts using Custom Controller.
Ans: WebDynpro ABAP training Bangalore specifies how many records that can be selected from a node.
Related Article: SAP ABAP Tutorial |
Ans: This would actually depend on the requirement, but ideally, separate Web Dynpro components should be created and reused. One can also use the assistance class for segregating business logic.
Ans: Component Controller is only one. You can create multiple controllers, but those are called Custom Controllers.
Ans: Whenever we embed any view in a window, now that view becomes automatically available to the Interface Controller and shows up as an interface view in the Interface Controller. You do not have to declare a view as an interface view as is the case with interface nodes.
Ans: Yes, each controller has its own context, methods, and Events.
Ans: This again depends on the requirement: If the node is going to be accessed in multiple views, it should be declared at the Component Controller level. However, If the node is specific to only one view, it can be defined in the View Controller. As the size of Webdynpro development grows, it starts becoming complex and the need to define attributes, nodes, methods, etc. at the Component Controller increases.
Ans: Layouts can be assigned at the container level. For example, you define the layout for your view at the ROOTUIELEMENT container level.
So if at all you want to use multiple layouts in one view, you can create multiple transparent containers and assign different layouts to them.
Ans: Say if you are using matrix layout, you will say Matrix Head data for the UI element for which you need a line break.
Ans: Yes, you can launch one Webdynpro application from another Webdynpro application.
First, you should get the URL of the Web Dynpro component that you want to launch, and second, call that URL in an external window.
To get the URL of any web Dynpro component, you use the FM
Once you get the URL in str, you can call this web Dynpro using ‘str’ and fm: create_external_window.
Ans:
Ans: Whenever a roundtrip occurs from the client (browser) to the server, a sequence of processing steps is executed. This sequence of processing steps in web Dynpro is called the ‘Phase Model’.
Executing all the tasks in the phase model is the responsibility of the Web Dynpro framework.
Each step is executed only once and errors if any are captured. If you want to get into the details, have a look at the webinar from Chris Whealy:
Ans:
Ans: This is a tricky question. It doesn’t make sense to run a Webdynpro application in the background because in that case, you are beating the purpose of the MVC controller architecture for Webdynpro. However, you can build logic to create background jobs from a Web Dynpro Application.
So we have by now put a bunch of questions here. Let me know how do you find these questions.
We haven’t yet covered Web Dynpro component usage, ALV, Select Options, OVS, the coding part in Web Dynpro, Web Dynpro enhancements, etc.
Inclined to build a profession as SAP ABAP? Then here is the blog post on, explore "SAP ABAP Training" |
Ans: First, let’s understand how a typical Webdynpro application looks like:
When you create a web Dynpro application, you can see the link URL generated by web Dynpro.
Ans: Yes, you can pass parameters in Webdynpro URL and read them too in your Web Dynpro component.
Example: http://domainname.com:8000/sap/bc/webdynpro/sap/zdemo_webdynpro?sap-language=EN&var1=4500000001&var2=00010
Ans: In Web Dynpro, the window is used to use multiple views or view sets. A view can only be displayed when it is embedded in a view and a window always contain one or more views that are connected by navigation links. Each window contains inbound and outbound plugs and they can be included in the navigation chain. Inbound plugs within a window lead from the outbound plug of a view to the embedding window. Just like all other inbound plugs, they represent an event and thus call the event handler assigned to them.
Ans: Yes for a component, you can create any number of applications.
You liked the article?
Like: 7
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.