Search criteria is not working in Responsible Group field in sap crm could you please help me this how to achieve.

search criteria is not working in Responsible Group field in sap crm could you please help me this how to achieve.I have writen code on EH_ONSEARCH .as per below...what changess i need to do..and through partner function and adding the selection params please send the sample .
code. partner funtction - ZRG DATA :
DATA : lv_partner_fct type .
types: begin of ty_resp,
       partner    type but000-partner,
       name_last  type but000-name_last,
       name_first type but000-name_first,
       mc_name1   type but000-mc_name1,
       mc_name2   type but000-mc_name2,
       end of ty_resp.
DATA: lv_resp_bp type STANDARD TABLE OF ty_resp INITIAL SIZE 0,
       lw_resp_bp type ty_resp.
IF lv_attr_name = 'Rgroup'.
lr_entity->get_property_as_value( EXPORTING iv_attr_name = if_crm_srqm_uiu_const=>gc_attr_low
                                   IMPORTING ev_result = lv_low ).
IF lv_low IS INITIAL.
SELECT partner
       name_last
       name_first
       mc_name1
      mc_name2
FROM but000 INTO table lv_resp_bp
WHERE mc_name2 = lv_low and bu_group = '0010'.
loop at lv_resp_bp into lw_resp_bp.
    lv_low = lw_resp_bp-mc_name2.
  lr_query_service2->add_selection_param( iv_attr_name = 'Rgroup'
                                            iv_sign = lv_sign
                                            iv_option = lv_option
                                            iv_low = lv_low
                                            iv_high = lv_high ).
  ENDLOOP.
if lv_partner_fct = 'ZRG'.
  lr_entity = lr_iterator->get_next( ).
CONTINUE.
ENDIF.
lv_attr_name = 'BU_PARTNER'.
ENDIF.

<b>You can acheive   this .... first by creating the search help exit    ... by  creating the maintaince  view   then   using it in the   Creation of the search help </b> ...
see the link for attaching the view   to the serach help .
<a href="http://">http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_elementary.htm</a>
reward  points if it is usefull...
Girish

Similar Messages

Maybe you are looking for

  • Ideapad Y650 Win 7 and Power Management

    I realize Windows 7 isnt supported as of yet.I am using the release candidate of it and Im having issues with the laptop turning itself on after Ive shut it down.Sometimes it comes on hours later lol as if its possessed.That is if i can get it to sta

  • Problems using meinvz in firefox

    After a few minutes I´ve been looked out on this site

  • VIP List IOS 6

    I created my VIP list and entered an initial list of people, but now there doesn't seem to be a way to add additional people.  I have gone to my VIP mail box and when I click on it it just takes me to my emails in my VIP box; there is no option to ad

  • I HAVE A LISTENER . WHY CAN'T I CREATE A NEW LISTENER?

    Hi All, Please can anyone explain why I am getting this error and how to fix it? I already have a LISTENER installed. I was trying this exercise to create a new LISTENER to support a connect-time failover on my 10g Database using Enterprise manager.T

  • Problem with a  web service with Jbuilder 2005 and Weblogic 8.1

    Hi, i�m trying to create a web-service using Jbuilder 2005 Enterprise and Weblogic 8.1. It is a very simple web-service, come kinda "Hello World". In the last step, after deploying my "ApplicatioModule1", i get this error: "Unable to connect to serve