Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8704

Re: Beloning to me

$
0
0

Hi Mohammad,

 

i have seen standard opportunity in that there is not field available with the name 'Beloning to' in search view.

search.JPG

is this custom filed you have added opportunity search structure. if u have added that field for that structure u have to enhance the opportunity search view. enhance the EH_ONSEARCH.

 

  types: BEGIN OF TY_DATA,

          field_id TYPE yourtablename-field_id

        END OF TY_DATA.

 

 

data : lr_qs type ref to cl_crm_bol_dquery_service,

       lr_sel_param type ref to if_bol_bo_col,

       lr_entity type ref to if_bol_bo_property_access,

       wa_param type GENILT_SELECTION_PARAMETER,

       it_sel_target type STANDARD TABLE OF selopttab,

       wa_sel type selopttab,

       it_data type STANDARD TABLE OF ty_data,

       wa_data type ty_data,

       lv_low type string.

 

 

lr_qs ?= typed_context->search->collection_wrapper->get_current( ).

 

 

save_ui_search_criteria( ir_qs = lr_qs ).

 

 

lr_sel_param ?= lr_qs->get_selection_params( ).

 

 

lr_entity ?= lr_sel_param->get_first( ).

while lr_entity is bound.

 

 

  lr_entity->get_properties( IMPORTING es_attributes = wa_param ).

 

 

  if wa_param-attr_name = 'fieldname'.

    MOVE-CORRESPONDING wa_param to wa_sel.

    append wa_sel to it_sel_target.

    endif.

 

 

  lr_entity ?= lr_sel_param->get_next( ).

  endwhile.

 

 

select field_id FROM yourtable

  into table it_data

  where

  fieldname in it_sel_target.

 

 

loop at it_data into wa_data.

  lv_low = wa_data-oppt_id.

  CALL METHOD LR_QS->ADD_SELECTION_PARAM

    EXPORTING

      IV_ATTR_NAME = 'OBJECT_ID'

      IV_SIGN      = 'I'

      IV_OPTION    = 'EQ'

      IV_LOW       = lv_low.

  endloop.

 

 

 

 

CALL METHOD SUPER->EH_ONSEARCH

  EXPORTING

    HTMLB_EVENT    = HTMLB_EVENT

    HTMLB_EVENT_EX =  HTMLB_EVENT_EX  .

 

 

restore_ui_search_criteria( ir_qs = lr_qs ).

 

Thanks & Regards,

Srinivas


Viewing all articles
Browse latest Browse all 8704

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>