You are on page 1of 12

2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3

http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 1/12
SAP ABAP Intervi 11
SAP ABAP Intervi 32
BDC Interview Q 16
SAP ALE IDocs i 25
SAP Webdynpro 25
SAP Web Dynpro 21
SAP Webdynpro 19
Now we come to the tougher side of web Dynpro. I have tried to put together
some concepts from the point of view of an interview . That's why you wont find
the details here but an overview.
Question 1: What is Web Dynpro Component Usage?
Real world business scenarios are quite complex and may involve multiple Web
Dynpro Components.
While dealing with multiple WD components, you may come across a situation
where you need to reuse already developed parts of an existing Web dynpro
component.
The Web Dynpro framework provides you with a technique called Component
Usage, with the help of which you can reuse the events, methods, and context of
one WD component into another WD component.
Standard examples of Component Usage: Select Options , ALV , OVS.
You declare component usage both at the Component and at the view levels:
@Component Level:
[http://3.bp.blogspot.com/-
K9BMWfVzBxA/T_MmZTQ1AeI/AAAAAAAAHHw/bPvckQjzlwo/s1600/WD1.png]
@View Level:
[http://4.bp.blogspot.com/-
srpzh83TNsw/T_MnF99c4AI/AAAAAAAAHH4/wb_pvsB2v9c/s1600/WD2.png]
Question 2: Briefly explain how will you use implement Select Options in
SAP Webdynpro ABAP Interview Questions Part 3
Web Dynpro ABAP interview questions Part 3:
Dynamic Views template. Powered by Blogger.
Home ABAP Interview Questions Smartforms Sidebar
SAP Interview Questi
search
Send feedback
2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3
http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 2/12
Web Dynpro?
1) Declare Component Usage for Standard WD component
WDR_SELECT_OPTIONS both at component and view level.
[http://4.bp.blogspot.com/-LSTbEw9ntvo/T_MtHwUqOBI/AAAAAAAAHIE/JcZAiMMrm-
k/s1600/WD2.png]
[http://4.bp.blogspot.com/-QsMVCqUUa80/T_MtX6fnE-
I/AAAAAAAAHIM/tT0OZgBaZXE/s1600/WD2.png]
2) Place a VIEWCONTAINER on your main view and embed the view
WND_SELECTION_SCREEN of component WDR_SELECT_OPTIONS in it.
[http://1.bp.blogspot.com/-85qxoyxt5wk/T_Mt8m9olsI/AAAAAAAAHIU/4jum76-
DvyE/s1600/12.png]
3) Use the methods CREATE_RANGE_TABLE and ADD_SELECTION_FIELD for
your fields on Selection screen.
4) Use method GET_RANGE_TABLE_OF_SEL_FIELD to read user input before you
do a SELECT.
Question 3: 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: Understanding the Web Dynpro Phase model.
2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3
http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 3/12
[http://scn.sap.com/docs/DOC-2412]
Important
Question 4: What is OVS? Can you explain the different phases used in OVS?
First we should understand the difference between Value help and OVS i.e.
object Value Selector.
We use generic Value Help only for the field to which it is bound.
OVS is used when we want to populate multiple fields based on one field on the
screen.
[http://1.bp.blogspot.com/-
LYrpB8SRTWc/T_MwpTygWCI/AAAAAAAAHIg/S4SCZl712P0/s1600/12.png]
So as per the screenshot , If I select Userid from OVS help, First name and Last
name will be populated automatically. The standard component WDR_OVS is
used for implementing OVS.
OVS works on the PHASE MODEL and different tasks are performed during
different phases.
The current phase is indicated by the parameter PHASE_INDICATOR.
Phase 1:
In this phase you have the possibility to define the texts, if you do not want to
use the defaults: So You can play around with the highlighted texts in the
screenshot below in this phase.
Here we call the method ovs_callback_object->Set_Configuration
2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3
http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 4/12
[http://3.bp.blogspot.com/-
qLuxVqtJMnU/T_MxUmDxr2I/AAAAAAAAHIo/6PlBakPCODM/s1600/12.png]
Phase 2:
If you do not want the filter fields, you can do that in this phase and the table will
be displayed directly. Refer screenshot below. The table is displayed directly. I
have blurred some results.Here you can call the method ovs_callback_object-
>Set_Input_Structure
[http://2.bp.blogspot.com/-
PETVlUxelUE/T_MyGPxZVZI/AAAAAAAAHIw/phop_9TGiRk/s1600/12.png]
Phase 3:
In this Phase, You write the select queries that should run as per user input
when the user hits Start Search button and finally set the output table.You can
call the method ovs_callback_object->Set_Output_Table for that purpose.
Phase 4:
In this phase , you pass the selected record to the Web dynpro Fields.
i.e. set the attributes using ovs_callback_object->context_element-
>Set_Attribute
[http://4.bp.blogspot.com/-7b6989yt3Cc/T_MynEaFngI/AAAAAAAAHI4/YCJJBhnCb-
Y/s1600/12.png]
Question 5: Briefly explain how will you implement ALV in Web Dynpro?
To implement ALV in Web Dynpro, you need to use the Standard WD
component SALV_WD_TABLE.
We need to use:
2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3
http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 5/12
a) the view TABLE of component SALV_WD_TABLE
b) the node DATA of component SALV_WD_TABLE.
Here is the brief process:
1) Declare component Usage for SALV_WD_TABLE at the WD component level
and the view level.
@ Component Level:
[http://4.bp.blogspot.com/-91hqmJOtIyY/T_M5yvSw5QI/AAAAAAAAHJE/Pktvgx8QBic/s1600/12.
png]
@ View Level:
[http://3.bp.blogspot.com/-
FYPxCZlrdlA/T_M8Hj47frI/AAAAAAAAHJM/83KYvWGgS40/s1600/12.png]
2) Put a VIEWCONTAINER UI element on the MAIN view and ember the view
TABLE of
SALV_WD_TABLE into it.
[http://4.bp.blogspot.com/-
kHPMav60j6M/T_NBKVejiVI/AAAAAAAAHJY/soJwsbeVQxY/s1600/12.png]
[http://1.bp.blogspot.com/-
GII2S82YlpI/T_NBYghbb4I/AAAAAAAAHJg/_jnDWmOQAAo/s1600/12.png]
3) Lets say the ALV data is to be populated in NODE_FLIGHT.
2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3
http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 6/12
Write the logic to select the ALV Data and bind it to NODE_FLIGHT:
node_flight_alv->BIND_TABLE( lt_node_flight_alv ).
4) Do a Context mapping between NODE_ALV and the node DATA of
SALV_WD_TABLE.
[http://1.bp.blogspot.com/-63g8ZyavPN8/T_NB4uVjAMI/AAAAAAAAHJo/8KImS7Sw9nw/s1600/1
2.png]
Question 6: How to make columns in a table editable?
While doing the Binding for the Table, just choose 'Input field' instead of
'Textview'.
Refer the Screenshot below:
[http://2.bp.blogspot.com/-y59A4DPbBAc/T_NCaYy-
hbI/AAAAAAAAHJw/MIOi9bnoZ7Q/s1600/12.png]
[http://1.bp.blogspot.com/-
iFyyTCGamGs/T_NCpWP0XVI/AAAAAAAAHJ4/GwTX19qYSNw/s1600/12.png]
Question 7: 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.
2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3
http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 7/12
[http://4.bp.blogspot.com/-
HvC3Ki7L9L4/UNlapQNnerI/AAAAAAAAHNk/1G7Z_TKj700/s1600/Inbound+plugs+for+Window.PNG]
Question 8: How do you generate POP UP in WD?
This can be easily done using the Wizard:
The CREATE_WINDOW method is used in this case.
[http://3.bp.blogspot.com/-
icMPQyhkyO0/T_NDfWzDxOI/AAAAAAAAHKA/B7ikKEWDCzY/s1600/12.png]
Question 9: How do you close a window in Web Dynpro?
There is a special outbound plug called Exit Plug that can be used for this purpose.
wd_this->fire_to_exit_plg( url = url close_window = close_window ).
[http://4.bp.blogspot.com/-
MtUwwo0BBvw/T_NEIysGRkI/AAAAAAAAHKI/cGPbQ3xn3Vw/s1600/12.png]
Also explore other Plug Types:
[http://2.bp.blogspot.com/-1jD1MNNqjoc/UNlaqQCwu9I/AAAAAAAAHNo/Q0R0Uf6b2Yc/s1600/O
2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3
http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 8/12
utbound+plugs+for+Window.PNG]
I am going to add some more questions to part 3 :
Let me know if you need answers to the below questions by putting your comments
below:
Question: What is the difference between Drop down by key and drop down
by index ?
Question: How do you display error / success / warning messages in Web
Dynpro ?
Question: How do you access methods of component controller in a view ?
Question: Have you worked on roadmap UI element ? Elaborate .
Question: What is dynamic ALV in web dynpro ?
Question: Can you have Totals and Subtotals in Web dynpro ALV ? How ?
Hint: First get the reference of the ALV. Then get the columns.
By looping at lt_columns , get to the required column.
Once you achieve this, check methods create_aggr_rule and
create_sort_rule of the class
cl_salv_wd_field.
Question: Can you have TOP OF PAGE and END OF PAGE ? How ?
Hint: Check TOP_OF_LIST and END_OF_LIST events.
Question: Have you worked on events in ALV in web dynpro?
Which events do you know?
[http://2.bp.blogspot.com/-RsJbVrIq7-s/UA1unVWwUII/AAAAAAAAHMg/ZoO7BptS3-
g/s1600/wd+alv+events.PNG]
Question: Can you add custom buttons on Web Dynpro ALV toolbar ? How?
2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3
http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 9/12
[http://1.bp.blogspot.com/-iO0eIvlThno/UA1vhP7ehNI/AAAAAAAAHMo/0jMbkvoG-
M8/s1600/ALV+custm+buttons.PNG]
Question: Can you add custom buttons in Web Dynpro ALV cells ? How?
[http://3.bp.blogspot.com/-
uYk4cKtayl0/UA1vw_MsGhI/AAAAAAAAHMw/8i8pHkSuk1o/s1600/wd+buttons.PNG]
Question: Can you add Image / Icons in Web Dynpro ALV cells ? How?
How do you define and implement action handlers for them?
[http://4.bp.blogspot.com/-
WhWTd1c4oCo/UA1wLu_0ceI/AAAAAAAAHM4/nC6u7UtIhMA/s1600/icons+in+wd.PNG]
Question: Can you add links in Web Dynpro ALV cells ? How?
[http://3.bp.blogspot.com/-
_eVsC2R854Y/UA1wo4F5-aI/AAAAAAAAHNA/JRjBuUUpMc8/s1600/LInk+WD.PNG]
I hope this blog helps you crack your web dynpro interview J .
All the best dudes and dudettes !!
If you liked this post so far, please consider hitting the Google plus button
below:
Posted 3rd July 2012 by Amby

19
View comments
Sonal and her friends December 4, 2012 at 8:23 PM
Good one Amby
Reply
Vallabhaneni December 21, 2012 at 7:34 AM
Hi Amby,
Could you please post the answers for the unaswered questions as well.
2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3
http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 10/12
Replies
Thanks
Bob
Reply
Amby December 24, 2012 at 11:57 PM
Let's wait to see .
If more people demand answers . Then it would make sense to upload answers :)
Reply
manasa allamsetty December 30, 2012 at 1:01 PM
Reply
This comment has been removed by the author.
Singh December 30, 2012 at 3:49 PM
Thanks a lot for this awesome blog :)
World was never easier place untill people like you happened.
Answer to unanswered questions and few more blog links like this would be a great :)
Reply
Sumit Jindal January 8, 2013 at 10:08 PM
Hi Amby,
Please post the answers to the remaining set of questions. They'll really be very
useful. Thanks.
Reply
vaibhav January 17, 2013 at 6:40 AM
Hi
How may types of value selector are there in Webdynpro ABAP. Do we have SVS
and EVS in Webdynpro ABAP too?
Reply
Anonymous February 10, 2013 at 8:05 AM
Thanks Amby for all the information ... It would be great help if you share answers to
remaining questions. :)
Reply
Amby February 10, 2013 at 8:21 PM
okay ... will try to add those in sometime.
Glad that you liked it. I am planning to put some more blogs on ALV,
Scripts, Smart forms as well. So stay tuned :)
Anonymous March 16, 2013 at 10:34 PM
2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3
http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 11/12
Reply
Hi vaibhav we have 4 types of value selectors in WEBDYNPRO ABAP,
1) Simple Value selector
2) Extended value selector
3) Dynamic value selector
4) Object Value selector
vaibhav April 27, 2013 at 10:54 AM
Okie...Thanks for your reply:)
Anonymous June 13, 2013 at 5:45 PM
Good Blog... Thank you..
NARASIMHA February 26, 2013 at 9:53 PM
Thank you Amby...very useful for interviews
Reply
Vijay Vikram May 22, 2013 at 10:49 AM
No words man... mind blowing explanation... Keep up d good work
Reply
Anonymous May 28, 2013 at 6:50 AM
Hello Amby,
This series is very useful.
Please add answers to the remaining questions as well. Thanks.
Reply
Surya Prakash Reddy Maryadha June 11, 2013 at 8:47 AM
Hi Experts,
Here are the answers for few questions.
1.Can you add custom buttons in Web Dynpro ALV cells ? How?
2.Can you add Image / Icons in Web Dynpro ALV cells ? How?
3.Can you add links in Web Dynpro ALV cells ? How?
For all the above 3 questions here is the common answer.
Ans: Yes. We can add Custom buttons, Image / Icons and links in Web Dynpro ALV
cells by using Table cell editor property.
For example you have designed a table in view layout with 4 fields. Now you want to
add button in 1 field (Column). Now you can select 1 column of that field and right
click on that and click on Insert Cell Editor then popup box will show then give ID
which you want and select Typ as Button hit enter then maintain properties of button.
Similarly for Image / Icon and Links and etc.
4.How do you access methods of component controller in a view ?
Ans: We can access methods of component controller by using
WD_COMP_CONTROLLER attribute. It will refer component controller. Syntax:
2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3
http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 12/12
Enter your comment...
Comment as:
Google Account
Publish

Preview
WD_COMP_CONTROLLER->.
Amby,
Please let me know if any of these answers wrong.
Thanks,
Surya Prakash Reddy M
Reply
anil kumar July 4, 2013 at 5:07 AM
Very good Documents which changes the so many life's in interviews....
Well done Amby...
Reply
Arun Narayanan July 10, 2013 at 4:25 AM
Hi Amby,
Expecting answers for all unanswered questions in each topics.
Please update your blog with OOABAP questions and answers.It will help a lot.
Cheerz..
Arun.
Reply
Anonymous December 18, 2013 at 11:22 PM
Hi Amby,
I found very helpful with the stuffs you shared here. As a newbie this blog gives me a
clear idea on the WDA and grown my confidence level to choose this carrier path.
Please update the answers for the questions which are not yet answered. This would
help more the guys like me.
Thanks you for the excellent stuffs.
Reply

You might also like