Sei sulla pagina 1di 1

What is meant by Selection-options?

Ans:Using Select options the user can specify complex selection criteria,suppose if
the selection criteria is complex you need not to write lengthy logical expression for
this we have to use the standrard component WDR_SELECT_OPTIONSwhis is
solved by select-options
Briefly explain how will you use implement Select Options in Web Dynpro?
Ans:1) Declare Component Usage for Standard WD component
WDR_SELECT_OPTIONS both at component and view level.
Note: doing so it will create a method in the interface controller of the view and this
method will return the object reference of the select-options.using which we can get
the acess to the select-options.
2) Place a VIEWCONTAINER on your main view and embed the view of standrad
component (WDR_SELECT_OPTIONS) to view container to display the view in our
window.
3.now we have to write the code in WDinit method,first take the references of
component and interface controller
3)Then create the range table for the select-option field Using the methods
CREATE_RANGE_TABLE and ADD_SELECTION_FIELD for your fields on Selection
screen.
4.and also create selection filed by using the method ADD_SELECTION_FIELD in
IF_WD_SELECTION_FIELD interface.
4) Use method GET_RANGE_TABLE_OF_SEL_FIELD to read user input before you do a
SELECT.
How to disable the default buttons in Select-options?
By using the interface IF_WD_SELECT_OPTIONS and call the method
SET_GLOBAL_OPTIONS and set the button which you dont need as ABAP_FALSE.
What is the Web Dynpro Phase model?
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.

Potrebbero piacerti anche