cancel
Showing results for 
Search instead for 
Did you mean: 

f4 for employee select options in WD for abap application

Former Member
0 Kudos

Hi,

I have defined a select option for employee selection in my WD for abap application. The only problem is that I cannot get a f4 help button to be displayed. I have defined the select option using the following code :

wd_this->m_wd_select_options = wd_this->wd_cpifc_select_options( ).

  • 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 = 'PERNR_D' ).

  • add a new field to the selection

wd_this->m_handler->add_selection_field(

i_id = 'PERNR_D'

it_result = lt_range_table

i_read_only = read_only ).

I have tried adding entries for the parameter help_id but still cannot get a f4 button.

Thank you in advance for any assistance provided.

Accepted Solutions (1)

Accepted Solutions (1)

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Try this.

DATA lo_interfacecontroller TYPE REF TO iwci_wdr_select_options .

lo_interfacecontroller = wd_this->wd_cpifc_select_options( ).

DATA lo_r_helper_class TYPE REF TO if_wd_select_options.

lo_r_helper_class = lo_interfacecontroller->init_selection_screen( ).

  • Creating range table

DATA lt_range TYPE REF TO data.

CALL METHOD lo_r_helper_class->create_range_table

EXPORTING

i_typename = ''PERNR_D'

RECEIVING

rt_range_table = lt_range.

  • Disabling the global options

CALL METHOD lo_r_helper_class->set_global_options

EXPORTING

i_display_btn_cancel = abap_false

i_display_btn_check = abap_false

i_display_btn_reset = abap_false

i_display_btn_execute = abap_false.

  • Adding the selection field

CALL METHOD lo_r_helper_class->add_selection_field

EXPORTING

i_id = 'PERNR_D'

I_OBLIGATORY = ABAP_TRUE

i_value_help_type = if_wd_value_help_handler=>CO_PREFIX_SEARCHHELP

I_VALUE_HELP_ID = 'PREM'

it_result = lt_range.

Check this artcle for more details which uses VBELN as select option with search help.

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/103e43d5-fdb8-2d10-90ab-b5e8532cbc04

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks Jayanthi your solution worked.