Sunteți pe pagina 1din 10

webdynpro interview questions.......

RAVI
Difference between ABAP & Webdynpro ABAP applications?
ABAP
Webdynpro ABAP
1.ABAP applications are purely GUI based
Applications.

1.Webdynpro ABAP Applications are Browser


based applications

2. To Access ABAP applications Transaction code


is required.

2. To Access Webdynpro ABAP applications URL


Address is required.

3. To Access ABAP applications SAP GUI is


required.

3. To Access Webdynpro ABAP applications only


Browser is required.

4. ABAP applications are accessed within the


Organization (Intranet).

4. Webdynpro ABAP applications are accessed


within the Organization (Intranet) and Outside the
Organization (Internet).

5. ABAP applications are doesnt supporting in


Mobile applications.

5. Webdynpro ABAP applications are supporting


in Mobile applications, Intranet and Internet also.

2. Difference between DDBK & DDBI?


DropDownByKey(DDBK)

DropDownByIndex(DDBI)

1.Used for populating static values (Domains,Dta


elements).

1.Used for populating dynamic values (SAP Table


Records).

2.It contains only Unique values

2.It contains Duplicate Values.

3.Generally it displays upto 30 values.

3.Generally it displays upto N values (No Limit).

4.It displays one column in output ,so it is


considered as SVS(Single Value Selector)

4.It displays one column in output ,so it is


considered as SVS(Single Value Selector)

5. It uses SELECTEDKEY property for binding.

5.It uses TEXTS property for binding.

3.Under which circumstances you will use DDBK & DDBI?

DDBK It is recommend to use for popualting static values i.e., from domain .
DDBI - It is recommend to use for popualting Dynamic values .

4. What are Events for Table, DDBK, DDBI, Itemlistbox?


TABLE

DDBK

DDBI

Item list box

onColSelect

onSelect

onSelect

onDrop

onCustomFilter

onDrop

onFilter

onLeadSelect

T
S

onLeadSelect

onScroll
onSelect
onSort

5. What are the properties of Input field, Table, Image, DDBK, DDBI, Itemlistbox?
UI element

Properties

Input field

value,On enter( )

table

Data source,on filter(),On sort(),


On Lead selection().
Source

Image
DDBK
DDBI
Item List Box

Selected Key,On select().


Texts,On select( ).
Data source, Texts,Descriptive Texts.

6. What is domain? What is a data element?

Domain describes the technical attributes such as data type and length of a table field.
Data Element gives the field labels and documentation for the table field.

7. What is the different between BAPI & RFC?

BAPI

RFC

SAP offers APIs in the form of BAPIs.

RFC is nothing but a remote enabled function


module.

There is a Business Object Associated with a BAPI.


So a BAPI has an Interface, Key Field, Attributes,
Methods, and Events.

No Business Object is associated with a RFC.

Outside world (JAVA, VB, .Net or any Non SAP


system) can connect to SAP using a BAPI.

NonSAP world cannot connect to SAP using RFC.

Error or Success messages are returned in a


RETURN table.

RFC does not have a return table.

8. Can you bind id property for any UI Element with an attribute?


NO
9. What is service call? What is the purpose of it?
A service call is used to call an existing function module or methods of an existing class within a
Web Dynpro component.
Whenever we use service call automatically it create nodes and as well as executemd .
Service calls types
RFC's / BAPI's
Methods
Web Services
10.What is cardinality? How many types of cardinality?
Cardinality: It defines the storage capacity of a Node.
There are 4 type of cardinalities are there

0-1
1-1
0-n
1-n

11. What is selection cardinality and collection cardinality?

Collection Cardinality or Node Cardinality is a set of two values that define the minimum and maximum
number of elements that a node may hold at run-time and is represented as (0..1), (1..1), (0..n), (1..n). The
value on left denotes the minimum number of elements that a node must have at runtime and the value at
right denotes the maximum number of elements that a node may have.
Selection Cardinality is again a set of two values like node cardinality but denotes the number of
elements that may be selected at run-time. Selection cardinality must not violate Node collection
cardinality i.e. if node cardinality is 0..1 0r 1..1, it is invalid to specify 0..n or 1..n as selection cardinality.
12. Which combination of collection cardinality, the selection cardinality is not applicable?
The following combinations wont work .
Collection cardinality
0.1
1.1

Selection cardinality
1-n , 0-n
1-n , 0-n

13. What is context binding? Or Data binding?


Data transfer from context to views(screens),if we maintain context binding.
14. What is context mapping? How many types? What are they?
Data transfer from one context to another context automatically if we use context mapping relationship.
context mapping are of 2-types.
1.Internal context mapping
2.External context mapping
15. What is internal context mapping?
If context mapping takes place between two controllers of same component,then it is called as Internal
context mapping.
16. What is external context mapping?
If context mapping takes place between two controllers of different components,then it is called as
External context mapping.
17. Can we use data element and data type for context attributes?
YES
18. What is MVC Architecture? What is the advantage of MVC architecture? How MVC
architecture is applicable in WDABAP apps?

MVC Means Model View Controller.


Every Web Dynpro application is structured according to the Model View Controller
programming model.
The model forms the interface to the back end system and thus enables the Web Dynpro
application access to data.
The view is responsible for the representation of the data in the browser.
The controller lies between the view and the model. The controller formats the model data to be
displayed in the view, processes the user entries made by the user, and returns them to the model.
With MVC Architecture we can achive Re-usability.
19. In which situation u will create custom controller?

Custome Contrlooer is a global controller like component controller.


To redduce the load on component controller we use custom controller.
Custom controller is for large and complex applications.
Custom controller should be used if we are using many BAPIS/RFCs in one component
to reduce the load on Component controller.

20. Can we embed one view in another view? How? What is purpose of view container UI elements?
YES.Using View Container UI Element.
View Container is used to generate Sub-screen area.
View Container is used to Include views inside another View.
21. What is a purpose of Interactive form UI element?
In webdynpro applications we can use Interactive Form UI elements for integrating ADOBe Forms in
WD Applications.
22. What are the Events available for TableUI element?
Various Events available for TableUI element

On select()
Onleadselect()
On sort()
On filter()
Oncolselect()
Onscroll()
Ondrop().

23. What is the purpose of MIMES directory in Webdynpro apps?

To import the images and files in to the webdynpro component.


24. What is purpose of wd_This?
wd_this is the reference to the View Controller itself.
25. What is purpose of wd_Context ?
wd_context is the reference to the Context node of the View.
26. What is purpose of wd_Comp_controller?
Wd_comp_controller is the reference to the Component Controller. View and Window controller
have this attribute defined by default and methods/attributes of the Component Controller can be accessed
by using this attribute.
27. How to navigate from one view to another view?
Using Inbound and Outbound plugs.
28. How to transfer data form one view to another view?
Using context mapping.
29. What is navigation link?
It is a connector between Outbound and Inbound plugs.
30. What is view controller?
Each view exactly consists of one view controller .No. Of view controller s in a component depends
upon the no. of views .The view controller cares about the view specific flow logic like checking user
input, handling user actions etc.The life cycle of the view controller is restricted to the life time of view.
31. What is purpose of component controller? Under which situation we need to use component
controller?
Component controller can be used to transfer the data among multiple views of a same component.
32.Different between view controller and component controller?
View Controller

Component Controller

View controller is local controller.

Component controller is global controller.

The view controller cares about the view specific


flow logic like checking user input, handling user
actions etc

Component controller consist of data and


processing logic that is available to all the views in
the component.

The lifetime of the view controller is restricted to


the life time of the view

The life time of the component controller is the life


time of the component.

Each view exactly consist of one view controller.


No of view controllers in a component depends
upon the no of views.

There is only one component controller exists per


webdynpro component

33. What is the purpose of creating an Application for WD component?


To Test the Webdynpro Component.
To working with webdynpro component.
34. Can we use multiple webdynpro components under one project?
Yes.That is called componentization.
35. What is purpose of MIMES?
To import the images and files in to the webdynpro component.
36. What is the basic structure of WD Component?
Component name
|->Component controller
|->component interface
|->views
|->windows.
37. What is an empty view?
A special type of view in a Web Dynpro application. It is optional and it does not create any output at
runtime. Like any other view, it occupies part of a window which is a logical unit of the application. By
accessing the empty view you can suppress the output of another view that has content.
38. What is URL & FQDN in WDABAP?
The URL of a Web Dynpro application is automatically generated by the system.
The URL of a Web Dynpro application has the following structure
<schema>://<host>.<domain>.<extension>:<port>/sap/bc/webdynpro/<namespace>/<application name>
Schema stands for the URL schema (also known as protocol), which usually is the
protocol http or https
Host is the name of the application server that should execute the application.

Domain with the Extension comprises several hosts under a common name and can
either be an individual host or a network
The port number can be omitted if the standard port 80 (http) or 443 (https) is used.
The Namespace can be the standard namespace /SAP/ or customer namespaces .
The Application Name is the name of the Web application as defined in the Web Dynpro
explorer by the Web Dynpro component.

In Web Dynpro ABAP it is imperative that a client browser with a fully qualified domain
name(FQDN) has access to the AS-ABAP.
The fully qualified domain name (FQDN) must be specified in the URL of Web Dynpro
applications.
39. What is the main intention behind WDABAP apps?
It is based on MVC Architecture and supports:
Clear separation of business and display logic.
Metamodel Concept.
Execution on number of client platforms.
Extensive Platform Independence of interfaces.
40. What are the main features of WDABAP?

Reduces implementation effort.


Separation of layout and business data.
Reusability of components.
Automatic data transfer using context binding.
Support stateful applications. i.e. Even when the pages change the data in the previous
page still remains.

41. Why a client should implement WDABAP apps?


The use of declarative and graphical tools significantly reduces the implementation effort.
Strict separation of layout data and business data through use of the Model View Controller
concept
Minimize coding and maximize design.
Support reuse of component.
Support webservices and data binding.

Run on multiple paltforms.


Browser based,zero footprint
Screen upadtes w/o page reloads
Client side dynamics.
42. What is COMPONENTIZATION?
Using multiple components in a single project is considered as componentization.
With Componentization we can achieve Re-usablity.
43. What is the tool for WDABAP app development? Which Version of WDABAP you have used?
ECC 6.0 and Ehp 5.0

44. What is the purpose of Assistance Class?


To Access the Assistance Class we use standard Reference(Implicit Object) ''WD_ASSIST''.

45. What are the Methods Available in Interface IF_WD_CONTEXT_NODE?


Methods Available in Interface IF_WD_CONTEXT_NODE

Move_next( )
Move_previous()
Move_first()
Move_last()
Move_to(index)
Bind_table()
Bind_structure()
Remove_element()
Get_static_attributes()
Set_static_attributes()
Get_static_attributes_table()
Invalidate()

46. Different between node and attribute?


Node Contains Collection of Records(Elements).
Attribute contains a single value at a time.

47. How to provide multi select functionality for table UI element in WDABAP?
Make node selection cardinality 0-n and as well as in table properties selection mode multi.
48. What are problems/errors you have encountered while developing WDABAP apps?
Access to NULL object is not possible.( NULL Pointer Error ).
Runtime error( coding problem )
Assertion failed dump
You cannot navigate away from a popup
Date Picker and Date Navigator issues
Cell rendering
Radio Buttons do not work
File attachments cannot be uploaded in the webdynpro layer
49. What is cross controller method call?
A method of one component is calling from another component .
50. What is the purpose of using webdynpro code wizard?
Code Wizard generates the code automatically.

S-ar putea să vă placă și