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

SAP Webdynpro Interview Questions

What is MVC in WebDynpro ABAP?

Basically, WebDynpro follows MVC M-Model (Business logic) V-View(Screen) C-Controller (Controls screen and Model)

What is Component Controller?

Component Controller is the King of all Controllers. It is the backbone of your Web Dypro Component. It is like a Global or Top Include for you program. It controls the entire activity of your Web Dynpro Component

What is an Interface Controller?

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 Interface controller . Interface Controller is created by default when a webdynpro component is created.
Interface Controller would generally come into 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.

How many component controllers can a Web Dynpro Component have?

Component Controller is only one. You can create multiple controllers, but those are called Custom Controllers.

What is a Custom Controller?

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.

What is selection cardinality in WebDynpro ABAP?

WebDynpro ABAP specifies how many records that can be selected from a node.

Would you prefer creating multiple Custom Controllers OR would you go for separate Web Dynpro components and then do Component usage.

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.

How many component controllers can a Web Dynpro Component have?

Component Controller is only one. You can create multiple controllers, but those are called Custom Controllers.

When do, views become available in the interface Controller?

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.

Is it true that each controller has its own Context node?

Yes, each controller has its own context, methods, and Events.

At design time, how do you decide whether to declare a node in the Component Controller or in the View Controller?

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.

Can you use multiple layouts in one view?

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.

How do you introduce line break for a UI element in any layout?

Say if you are using matrix layout, you will say Matrix Head data for the UI element for which you need a line break.

Can you call/launch one web dynpro application from another webdynpro application?

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
CALL METHOD cl_wd_utilities=>construct_wd_url
application_name = ‘ZDEMO’
out_absolute_url = str.

Once you get the URL in str, you can call this web dynpro using ‘str’ and fm: create_external_window.

How do you create a ALV Report/Editable ALV in Webdynpro

->Add the Standard ALV component to the web dynpro Component.
->Use Components tab: Ex: ALV_MATS  type SLV_WD_TABLE
->Create a context node with the table field information to be displayed
->Write the ALV Default Code for table display
->Set the read only attribute to false to switch to editable mode using
the method set_read_only of the interface
IF_SALV_WD_TABLE_SETTINGS implementing class

What is the Web Dynpro Phase model?

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:

How will you delete selected rows in a Table / ALV?

Get the Table / ALV data in an internal table.

Delete the row selected by the user from the internal table.
Re-bind the internal table to the node bound to the Table/ALV.

Can you run a Webdynpro Application in background?

This is a tricky question. It doesn’t make sense to run a webdynpro application in 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.

How do you read parameters passed in the Web Dynpro URL?

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.

Can you pass parameters in a webdynpro URL?

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

Review Date
Reviewed Item
SAP Webdynpro Interview Questions
Author Rating

“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.”

0 Responses on SAP Webdynpro Interview Questions"

Leave a Message

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

Site Disclaimer, Copyright © 2016 - All Rights Reserved.