cancel
Showing results for 
Search instead for 
Did you mean: 

Select-options?

Former Member
0 Kudos

Hi Experts,

I'm newbie to webdynpro ABAP and need some info regarding select-options. for implementing select-options in webdynpro applications the following steps shud b used.

1. Create the used component. Or instantiate the component controller

2. Call the interface controller

3. Init the selection screen

4. Create the range table for the selection screen.

5. Add selection fields to the range table.

my questions are

1. what is interface controller and why we need to use it?

2. what is the purpose of range table and and why we need to use it?

3. why do we need to write the logic in WDDOINIT and wht is the need of this method?

Please explain me in detail or provide any reference to weblogs which explains in detail?

Ur help is highly appreciated.........

Rgds

Faisal

Accepted Solutions (0)

Answers (2)

Answers (2)

uday_gubbala2
Active Contributor
0 Kudos

Hi Abdul,

If one Web Dynpro component (parent component) needs access to another Web Dynpro component (child component) the parent component can declare the use of the child component. A specific component usage instance is then created and the parent component accesses the functionality of the child component via its

component interface controller.

For implementing select options in your application you would be re-using another component by name WDR_SELECT_OPTIONS. So as you would have to access the methods & events of another component you would need to make use of the interface controller.

Since using the select options the user can specify a range of values as selection criteria you need to create what is known as the range table.

wddoinit( ) is the first method processed in the controller's lifetime. Its nothing like all your code has to be always placed in here. Just consider it to be like the INITIALIZATION event in your normal ABAP program. It is only called once in the controller's life cycle. All your initialization code should go here, since this method is called immediately after the controller has been instantiated.

Regards,

Uday

Former Member
0 Kudos

Hi,

I am new to web-dynpro and have a very basic question. How does one know which method to call from which class, in case of select options or generally for building the logic in web-dynpro?

Thanks in advance.

MIck

Former Member
0 Kudos

Hi,

I am new to web-dynpro and have a very basic question. How does one know which method to call from which class, in case of select options or generally for building the logic in web-dynpro?

Thanks in advance.

Mick

uday_gubbala2
Active Contributor
0 Kudos

Hi Abdul,

Below are a few available resources for using select options in WDA:

[Working with Select Options in Web Dynpro for ABAP by Abhimanyu Lagishetti|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdff03e]

[Using Select Options in a Web Dynpro(ABAP) Application by Rich Heilman|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2868] [original link is broken] [original link is broken] [original link is broken];

[Creating and using Variant in Select Options with Web Dynpro for ABAP -1 by Sharad Agarwal|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/10707] [original link is broken] [original link is broken] [original link is broken];

[Creating and using Variant in Select Options with Web Dynpro for ABAP -2 by Sharad Agarwal|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/10731] [original link is broken] [original link is broken] [original link is broken];

[Creating and using Variant in Select Options with Web Dynpro for ABAP -3 by Sharad Agarwal|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/10756] [original link is broken] [original link is broken] [original link is broken];

Regards,

Uday