cancel
Showing results for 
Search instead for 
Did you mean: 

How to assign select option facility to a input field on the slctn scrn vie

0 Kudos

Hi Experts,

I have a input field for WBS element on selection screen view. I want to provide a select option facility for this input field

to the user. How can we achieve this functionality.

Can anyone please help me in this regard.

Thanks & Regards,

Chitrasen

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Have a look at the PDF on Working with Select Options in Web Dynpro for ABAP :

http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdff...

0 Kudos

Hi Guys,

The examples presented here contains a Viewcontainer UI Element and select options is attached to it.

and displays the values fetched in a table in the same view.

But in my requirements, I have 2 views. One view is like selection screen view which contains WBS Element

which is an input field and i need to attach the select option like functionality to this field and the values entered in this field must be passed to second view where i will be calling RFC using these values as input parameters.

The examples presented deal with single view.

Please help.

Regards,

Chitrasen

Former Member
0 Kudos

hi,

Just read the attributes value entered in select options and pass it to an Attribute of comp controller.

Now in your second view , just read the attributes' value from component controller.

This way value entered in first view would be passed to second one.

The possiblity would be :

Have the same node as in your view in your component controller.

Map the componenet controller node and view1 node.

Also use the same node in View2.

This way values can just be read by reading the Attribute binded to Select options.

Edited by: Saurav Mago on Oct 22, 2009 5:41 PM

Former Member
0 Kudos

hi ,

u need to create a attribute under ATTRIBUTE tab say attr1 , in component controller

pass value frm ur first view using wd_comp_controller


wd_comp_controller->attr1 = lv

nw using code wizard ( CNTRL + F7 ) , u set attributes in ur second view with the value lv

0 Kudos

Hi Saurav,

That is fine. That answers my second point. How do i attach a select option to input field on selection screen view

without using viewcontainer element.

All the examples suggest to use view container element which i dont want to use.

Regards,

Chitrasen

Former Member
0 Kudos

hi,

You have to use ViewContainer because you are using another component : Wdr_Select_options.

Through this component you are building select options for your particular field.

So you have to use View of the component wdr_selelct_options.

0 Kudos

Hi Saurav,

Ok i will use Viewcontainer control.

Can i have other parameters on the selection screen view.

As i need to have other checkbox fields also on the selection screen view.

I am not getting the select option functionality working with other selection screen parameters

on the view.

If i try without any other elements on my view only viewcontainer, button and table

it works fine. But my requirement has other fields like some check boxes.

Please advise.

Regards,

Chitrasen

0 Kudos

Hi Saurav,

I got it. Made a mistake in the configuration.

Its working fine now.

Thanks a lot guys.

Regards,

Chitrasen

Former Member
0 Kudos

hi ,

refer the standard component : wdr_test_select_options

please refer the SAP online help :

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/9f724642314aabe10000000a42189b/frameset.htm

also refer the related thread :

regards,

amit

Former Member
0 Kudos

hi,

Refer this SAP online help :

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/a0c2fd687d0795e10000000a42189b/content.htm

Have a look at Standard SAP component : WDR_TEST_SELECT_OPTIONS.

Former Member
0 Kudos

Hi ,

refer the similar thread on select-option f4 help

regards,

amit