cancel
Showing results for 
Search instead for 
Did you mean: 

how to supress "TO" field in a select options

Former Member
0 Kudos

can some one advice on how to supress or remove the TO field i.e. the second field in a select option.

Is there any key word like NO-EXTENSION just as we use in normal abap selection screen?

Thanks,

Suri

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

See check the Set_global_option() method ,and check for the options there and make it to abap_false .

Former Member
0 Kudos

Code for this buddy .enjoy.


 

   WD_THIS->M_handler->SET_GLOBAL_OPTIONS( I_DISPLAY_BTN_CANCEL    = abap_false
                                        I_DISPLAY_BTN_check = abap_false
                                        I_DISPLAY_BTN_reset = abap_false
                                        I_DISPLAY_BTN_execute = abap_false ).

  * 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_no_intervals = abap_true
  i_no_extension = abap_true
  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_no_intervals = abap_true
  i_no_extension = abap_true
  i_read_only = read_only ).

Former Member
0 Kudos

Thanks nirad that woked.