cancel
Showing results for 
Search instead for 
Did you mean: 

IF_WD_SELECT_OPTIONS~ADD_SELECTION_FIELDS

Former Member
0 Kudos

Hi all,

I am new to WebDynpro. I am facing problem in passing data to the above method IF_WD_SELECT_OPTIONS~ADD_SELECTION_FIELDS.In this method it has IT_FIELDS as inporting parameter of type IF_WD_SELECT_OPTIONS=>TT_SELECTION_SCREEN_ITEM.Could any one please suggest how to pass the data to the above parameter and also please explain create ,assign and field symbol concepts details.

Thanks in advace.

Umakanth

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Uma,

Same type of question asking again, in your previous post i rewikis working with select options, in that everthing is there.

Please cehck once..

here LT_RANGE OF TYPE DATA.

and LR_HELPER IS OF TYPE IF_WD_SELECT_OPTIONS( this defined in your attributes tab ).

LR_HELPER->ADD_SELECTION_FIELD( I_ID = 'S_CARR_ID'

IT_RESULT = LT_RANGE ).

i am giving links again..

check this blog..

/people/rich.heilman2/blog/2005/12/20/using-select-options-in-a-web-dynproabap-application

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

http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproABAP-Complexselect-optionscomponent+usages

For Field Symbols.

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3860358411d1829f0000e829fbfe/content.htm

http://wiki.sdn.sap.com/wiki/display/Snippets/Usageoffield-symbolsastablesandwork+areas

Cheers,

Kris.

Former Member
0 Kudos

Hi Kris

The method is not ADD_SELECTION_FIELD it is ADD_SELECTION_FIELDS.So please provide details for passing the parametrs to this method.

Thanks,

Umakanth

gill367
Active Contributor
0 Kudos

You can pass the parameter like this .

data fld type  IF_WD_SELECT_OPTIONS=>T_SELECTION_SCREEN_ITEM.
data tbl type  IF_WD_SELECT_OPTIONS=>TT_SELECTION_SCREEN_ITEM.
fld-m_id = 'ID'.
fld-mt_range_table = LT_RANGE_TABLE.
fld-m_read_only  = abap_true.
insert fld into table tbl.

WD_THIS->M_HANDLER->ADD_SELECTION_FIELDs(
tbl
 ).

thanks

sarbjeet singh

former_member199125
Active Contributor
0 Kudos

Uma,

Please follow the sarbjeet singh code. If you need detail code let me know, I can provide you.

I hope you can able to do with sarbjeet singh code.

If you are able to multiple fields to selcetion screen then close this thread

Regards

Srinivas

Former Member
0 Kudos

Thanks Pb solved

Answers (0)