Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: clearing only a few search criteria fields

$
0
0

Hi,

 

Check this code.

                                                 
  data: lv_viewname type string,
        lr_view_ctrl type ref to cl_crm_srqm_common_sr_cntrl,
        lr_search_cn type ref to CL_BSP_WD_CONTEXT_NODE_ASP.


lv_viewname = me->get_viewarea_content( if_crm_srqm_uiu_const=>gc_viewarea_search ).
  ASSERT lv_viewname IS NOT INITIAL.
  lr_view_ctrl ?= me->get_subcontroller_by_viewname( lv_viewname ).
  lr_search_cn ?= lr_view_ctrl->get_search_context_node( ).

  lr_query_service ?= lr_search_cn->collection_wrapper->get_current( ).

  lr_coll ?=  lr_query_service->get_selection_params( ).
  CHECK lr_coll IS BOUND.
  lr_iterator ?= lr_coll->get_iterator( ).
  CHECK lr_iterator IS BOUND.
  lr_entity ?= lr_iterator->get_first( ).
  WHILE  lr_entity IS BOUND.
    lr_entity->get_property_as_value( EXPORTING iv_attr_name = 'ATTR_NAME'
                                      IMPORTING ev_result = lv_attr_name ).
    CASE lv_attr_name.
      WHEN 'PARTNER'.
        lr_entity->get_property_as_value( EXPORTING iv_attr_name = 'LOW'
                                         IMPORTING ev_result = lv_partner ).

EXIT.

   ENDCASE.
    lr_entity ?= lr_iterator->get_next( ).

  ENDWHILE.


lr_search_cn->if_bsp_model~reset_errors( ).

  lr_view_ctrl->clear_search( ).

 

lr_query_service-->ADD_SELECTION_PARAM( iv_attr_name = 'PARTNER'

                                                 iv_sign      = 'I'

                                                 iv_option    = 'EQ'

                                                 iv_low       = LV_PARTNER ).

 

 

Regards,

Deepika


Viewing all articles
Browse latest Browse all 7775

Trending Articles