Skip to Content
author's profile photo Former Member
Former Member

select options "TO" field removal

Hi,

I am using select options as F4 help.My problem is that i want user to be able to select multiple options but not as a range.The "TO" field which is displayed along with inputfield i have removed using the add_selection_method of the handler with parameter i_no_intervals = abap_true.But on pressing the F4 help i get a pop up which has fileds as OPTION,FROM,TO.Now i want to remove this "TO" filed as well.Any ideas??

PS:points will be rewarded

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2007 at 07:26 AM

    Hi.

    Could you pls paste the code?

    Are you using a freely programmed input help with select options?

    When I set i_no_intervals in method add_selection_field i get onlöy one input field.

    Cheers,

    Sascha

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      DATA : BEGIN OF wa_user,

      FULLNAME type AD_NAMTEXT,

      USERNAME type XUBNAME,

      END OF wa_user.

      DATA : it_dev_t like table of wa_dev_t,

      it_mcd_t LIKE TABLE OF wa_mcd,

      it_user LIKE table of wa_user,

      it_text_tt type SMMW_DT_TEXT_TT,

      wa_text type SMMW_DT_TEXT.

      DATA:

      lt_valueset TYPE wdr_name_value_list,

      l_value TYPE wdr_name_value.

      DATA:

      node_search_criteria TYPE REF TO if_wd_context_node,

      elem_search_criteria TYPE REF TO

      if_wd_context_element,

      stru_search_criteria TYPE

      if_main=>element_search_criteria .

      DATA: it_dt TYPE smmw_dev_templ_tt,

      wa_dt LIKE LINE OF it_dt,

      itab_dev_users type smmw_user_tt,

      wa_users type BAPIUSNAME.

      FIELD-SYMBOLS:

      <l_selection> LIKE wa_mcd,

      <l_query> LIKE wa_mcd,

      <ldt_selection> LIKE wa_dev_t,

      <lu_selection> LIKE wa_user.

      DATA: l_text type wdr_name_value,

      l_label_texts type wdr_name_value_list.

      • navigate from <CONTEXT> to <SEARCH_CRITERIA> via lead selection

      node_search_criteria = wd_context->get_child_node( name =

      wd_this->wdctx_search_criteria ).

      • get element via lead selection

      elem_search_criteria = node_search_criteria->get_element( ).

      • get all declared attributes

      elem_search_criteria->get_static_attributes(

      IMPORTING

      static_attributes = stru_search_criteria ).

      CLEAR: wd_this->text, wd_this->text_1.

      CASE ovs_callback_object->context_attribute.

      WHEN 'AUTHOR'.

      DATA : BEGIN OF wa_username,

      USERNAME type XUBNAME,

      END OF wa_username.

      FIELD-SYMBOLS : <query_params> like wa_username.

      CASE ovs_callback_object->phase_indicator.

      WHEN if_wd_ovs=>co_phase_0.

      l_text-name = 'AUTHOR'.

      l_text-value = wd_assist->if_wd_component_assistance~get_text( key =

      '146' ).

      insert l_text into table l_label_texts.

      wd_this->text =

      wd_assist->if_wd_component_assistance~get_text( '106' ).

      wd_this->text_1 =

      wd_assist->if_wd_component_assistance~get_text( '107' ).

      ovs_callback_object->set_configuration(

      group_header = wd_this->text

      window_title = wd_this->text_1

      label_texts = l_label_texts

      col_count = 2

      ).

      when if_wd_ovs=>co_phase_1.

      ovs_callback_object->context_element->get_static_attributes(

      importing static_attributes = wa_user ).

      • pass the values to the OVS component

      wa_username-username = stru_search_criteria-author.

      ovs_callback_object->set_input_structure(

      input = wa_username ).

      WHEN if_wd_ovs=>co_phase_2.

      assign ovs_callback_object->query_parameters->*

      to <query_params>.

      CALL METHOD cl_smmw_user=>get_users_from_cds

      EXPORTING

      i_user_name = <query_params>-username

      IMPORTING

      e_user_list = itab_dev_users.

      LOOP AT itab_dev_users INTO wa_users.

      l_value-name = wa_users-USERNAME.

      l_value-value = wa_users-FULLNAME.

      wa_user-USERNAME = wa_users-USERNAME.

      wa_user-FULLNAME = wa_users-FULLNAME.

      APPEND l_value TO lt_valueset.

      APPEND wa_user TO it_user.

      ENDLOOP.

      ovs_callback_object->set_output_table( EXPORTING

      output = it_user

      column_texts = lt_valueset ).

      WHEN if_wd_ovs=>co_phase_3.

      ASSIGN ovs_callback_object->selection->* TO <lu_selection>.

      CHECK <lu_selection> IS ASSIGNED.

      ovs_callback_object->context_element->set_attribute(

      name = ovs_callback_object->context_attribute

      value = <lu_selection>-USERNAME ).

      ENDCASE.

      ENDCASE.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.