cancel
Showing results for 
Search instead for 
Did you mean: 

Select options in web dynpro ABAP (search help f4 problem)

Former Member
0 Kudos

hi...

from the Tutorial of select options i have created select option for two parameters S_CARR_ID and S_CONN_ID but i get f4 help for only S_CARR_ID, but the parameters passed to both for m_handler->add_selection_field are the same.

i also tried to attach my search help by passing one more parameter (I_VALUE_HELP_ID) but it dose not help.

could any one suggest me how to get f4 help.

thank you.

Regards

kailash.

code snap ->

  • init the select screen

wd_this->m_handler =

wd_this->m_wd_select_options->init_selection_screen( ).

  • create a range table that consists of this new data element

lt_range_table =

wd_this->m_handler->create_range_table(

i_typename = 'S_CARR_ID' ).

  • add a new field to the selection

wd_this->m_handler->add_selection_field(

i_id = 'S_CARR_ID'

it_result = lt_range_table

i_read_only = read_only

).

  • create a range table that consists of this new data element

lt_range_table =

wd_this->m_handler->create_range_table(

i_typename = 'S_CONN_ID' ).

  • add a new field to the selection

wd_this->m_handler->add_selection_field(

i_id = 'S_CONN_ID'

it_result = lt_range_table

i_read_only = read_only ).

Accepted Solutions (0)

Answers (2)

Answers (2)

cdprasanna
Active Participant
0 Kudos

Hi,

I would suggest you to Check the below blog.

select-options-in-web-dynpro-abap

Thanks & Reagrds,

Prasanna CD

Former Member
0 Kudos

hi kailash,

To get search help there are two ways.

1) if Search help is already present on the field i.e. CONNID of SFLIGHT.

then Check what you have chosen in the Input Help mode of the conn_id attribute.

you can provide the Dictionary search help or Automatic as an option.

Here no coding is involved and u'll get the search help.

Yet u are not able to get the search help then u can code for it.

2) select all the Connid values in an internal table eg: lt_valueset.

add below mentioned line while coding for add_selection_field.

wd_this->m_handler->add_selection_field(

i_id = 'S_CONN_ID'

it_result = lt_range_table

it_value_set = lt_valueset ).

Let me know if u are still facing any issues.

regards

Raman

Former Member
0 Kudos

Hi,

For including this search help (F4 help)to an attribute T513C-TAETE, where we need to write the code u have mentioned?? Can we add the code in , layout tab 's TAETE input field's onAction Event ?

Can u plz help me regarding this?

And in CODE:

lt_range_table =

wd_this->m_handler->create_range_table(

i_typename = 'S_CONN_ID' ).

how u have to declare 'S_CONN_ID'?

Thanks,

Deepika

Former Member
0 Kudos

hi kailash,

check wheteher the field u r refering is having search help.

if it has then set the additional parameters in method add_selection_field

I_VALUE_HELP_STRUCTURE = 'VBC07'(name of the table) I_VALUE_HELP_STRUCTURE_FIELD = 'FKART'( field name)

ex:

wd_this->go_select_options1->add_selection_field( i_id = 'FKART'

I_WITHIN_BLOCK = 'BLOCK1'

I_VALUE_HELP_STRUCTURE = 'VBCO7'

I_VALUE_HELP_STRUCTURE_FIELD = 'FKART'

it_result = lo_range_table

i_read_only = lv_read_only

).

regards,

janakiram.

Edited by: janakiram raju on Mar 11, 2008 11:40 AM