BP_HEAD_SEARCH -- Enhancement

Dear All
     I have enhanced the UI BP_HEAD_SEARCH with some Custom fields at UI.
     And I have extended the BOL Structure for that represent the node for Search and Result Views.
     Is their any BADI that I can use before RESULT gets displayed so that I can fill the Custom fields with Values.
     I have seen couple of BADIs that are useful for Search Filtering.
     But my requirement is I need to fill the Custom Fields (that are present) in the Search RESULT BOL Structure with the Values taken from the other standard Fields that are already seen in the Structure.
     Is any BADI available ?
     Or is their any other way around available at UI level to fill these Custom fields ?
    Please provide support and help !
Thanks
RJ

Hi Remo,
    I am sending you some code for your reference. In the following method we try to get full name of customer, which is not available in the genil model. If you want to only display the values in the result list you should get the values in context method instead of enhancing standard GENIL CLASS.
Just add the GET method manually in the context class and add your logic. Now the new attribute will be available for configuration.
METHOD get_fullname.
  DATA: lv_first_name  TYPE string,
        lv_middle_name TYPE string,
        lv_last_name   TYPE string,
        lv_full_name   TYPE string.
  DATA: current TYPE REF TO if_bol_bo_property_access.
  DATA: dref    TYPE REF TO data.
  value = space .                                           "#EC NOTEXT
  IF iterator IS BOUND.
    current = iterator->get_current( ).
  ELSE.
    current = collection_wrapper->get_current( ).
  ENDIF.
  lv_first_name = current->get_property_as_string( 'NAME_FIRST' ).
  lv_last_name = current->get_property_as_string( 'NAME_LAST' ).
  lv_middle_name = current->get_property_as_string( 'NAMEMIDDLE' ).
  CONCATENATE lv_first_name
              lv_middle_name
              lv_last_name
              INTO lv_full_name SEPARATED BY space.
  CONDENSE  lv_full_name.
  IF NOT lv_full_name IS INITIAL.
    value = lv_full_name.
  ENDIF.
ENDMETHOD.
Thanks
Swagatika

Similar Messages

  • Remove Button from WEB UI

    Dear Experts,
    We need to remove Buttons of Individual and Group from WEB UI in Accoutn creation screen. However we couldn't find the relevant context node and view about it.
    what should we do? do you have any idea?
    thanks in advance?
    Mehmet

    The simple method to do this is the following:
    Enhance the component BP_HEAD_SEARCH
    Enhance the view BP_HEAD_SEARCH/MainSearchResult
    Now you will need to redefine the method
    DO_PREPARE_OUTPUT in the class CL_BP_HEAD__MAINSEARCHRES_IMPL.  If you look at the existing code they define the buttons that are display via appending entries into a "button" table.  You need to delete the button from the gt_button table.
    Your method redefined would look like:
    CALL METHOD super->do_prepare_output.
    if gt_button[] is not initial.
      delete gt_button where on_click eq 'CREATEIND'.
      delete gt_button where on_click eq 'CREATEGROUP'.
    endif.
    Take care,
    Stephen

  • Enhance search object bp_head_search.

    Hi,
    i struck with a search help enhancement object,  i have enhanced the bp_head_search/bupamainsearch and bupasearch result
    views.   in the context the custom attribute is added,   when i pass the attribute in the sort method  in the implementation/ eh-onsearch method.  i am getting exception..
    can anyone explain me the step by step procedure for enhancing the search help object and please explain me how to sort based on the custom field in the result view
    thanks
    dinesh.

    Hi Dhinesh
    I am also having a similar requirement of adding new search paramter to the Account search.
    View name : bp_head_search/searchhelp.
    Pls let me know how did u solved this. if u can give me step by step that will be great.
    Thanks in advacne.
    Regards,
    Deva

  • How to create a Picklist for a Srch-Field that was added to BP_HEAD_SEARCH?

    Hi experts,
    I've enhanced the BP_HEAD_SEARCH with the field SALES_OFFICE from BP_SALES. For more information about this, please refer to my previous thread where I asked how to do that:
    How to add search field to BP_HEAD_SEARCH from component BP_SALES?
    I can search for SALES_OFFICE but the request now is to use a Picklist instead, just like in BP_SALES in View CorpAccountOrgEF.
    To add the field SALES_OFFICE to the BP_HEAD_SEARCH I had to add it to the structure CRMT_BUPA_IL_HEADER_SEARCH.
    There it is in include CI_EEW_BUT000 as ZZSALES_OFFICE with the same Data Element as its original (CRMT_SALES_OFFICE).
    So when I look at BP_HEAD_SEARCH/MainSearch in the Component Workbench - ZZSALES_OFFICE is in the SEARCH Context Node as attribute STRUCT.ZZSALES_OFFICE.
    For that attribute I've generated the GET_P and GET_V methods and added below coding.
    method get_p_zzsales_office.
      case iv_property.
        when if_bsp_wd_model_setter_getter~fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.
      endcase.
    endmethod.
    method get_v_zzsales_office.
      data: lt_ddlb          type bsp_wd_dropdown_table,
            ls_sales_area    type crmt_bus_sales_area,
            lt_partner_crm   type table of crmmspl_bp_l0011,
            ls_partner_crm   type          crmmspl_bp_l0011,
            lr_ddlb_type     type ref to   cl_crm_uiu_ddlb.
    * get sales area
      select distinct sales_org channel division from crmmspl_bp_l0011
             into corresponding fields of table lt_partner_crm.
      read table lt_partner_crm into ls_partner_crm index 1.
      move-corresponding ls_partner_crm to ls_sales_area.
      if lr_ddlb_type is not bound.
        create object lr_ddlb_type
          exporting
            iv_source_type = 'T'.
    *   Get values for SALES_OFFICE
    *   provide sales area
        call method cl_crm_uiu_bp_cust_get=>get_val_for_sales_office
          exporting
            is_sales_area  = ls_sales_area
          receiving
            rt_value       = lt_ddlb
          exceptions
            error_occurred = 1
            others         = 2.
        append initial line to lt_ddlb.
        if sy-subrc = 0.
          lr_ddlb_type->set_selection_table( it_selection_table = lt_ddlb ).
        endif.
      endif.
      rv_valuehelp_descriptor = lr_ddlb_type.
    endmethod.
    But I still don't get a Picklist for my ZZSALES_OFFICE. None of these methods are even called - which I found out through debugging.
    Does anyone have an idea on how to do this?
    Thanks in advance!
    Best regards,
    Melanie
    Edited by: Melanie Lauber on Feb 12, 2009 1:33 PM

    Hi again Stephen!
    Very thanks for your reply. You've solved my problem AGAIN!
    I had to redefine the Method GET_DQUERY_DEFINITIONS, copied the original method and in the loop I added my coding as below (maybe this helps someone else too):
    * local data:
      data:
        lt_classcat          type crmt_bus_clcatt.
      field-symbols: <rs_result> like line of rt_result.
      call method super->get_dquery_definitions
        receiving
          rt_result = rt_result.
      loop at rt_result assigning <rs_result>.
        case <rs_result>-field.
          when 'OWNERLASTNAME'.
            <rs_result>-server_event = 'VHELP_EMPL'.
          when 'CPLASTNAME'.
            <rs_result>-server_event = 'VHELP_CONT'.
          when 'CREATION_USER'.
            <rs_result>-server_event = 'VHELP_CRUSR'.
          when 'CHANGE_USER'.
            <rs_result>-server_event = 'VHELP_CHUSR'.
          when 'MARKETINGATTR'.
            <rs_result>-server_event = 'VHELP_MARKETINGATTR'.
          when 'POST_CODE1' or 'HOUSE_NUM1'.
    *       overrule CL_BSP_WD_CONTEXT_NODE_ASP->ADJUST_DQUERY_VALUEHELPS
            collect gc_operator_bt into <rs_result>-operators.
            collect gc_operator_gt into <rs_result>-operators.
            collect gc_operator_lt into <rs_result>-operators.
    *--> begin - 12/02/09 - Melanie L.
          when 'ZZSALES_OFFICE'.
    *       get sales area
            select distinct sales_org channel division from crmmspl_bp_l0011
              into corresponding fields of table lt_partner_crm.
            read table lt_partner_crm into ls_partner_crm index 1.
            move-corresponding ls_partner_crm to ls_sales_area.
    *       Get values for SALES_OFFICE
    *       provide sales area
            call method cl_crm_uiu_bp_cust_get=>get_val_for_sales_office
              exporting
                is_sales_area  = ls_sales_area
              receiving
                rt_value       = lt_ddlb
              exceptions
                error_occurred = 1
                others         = 2.
            append initial line to lt_ddlb.
            if sy-subrc = 0.
              loop at lt_ddlb into ls_ddlb.
                move-corresponding ls_ddlb to ls_ddlb_opt.
                append ls_ddlb_opt to lt_ddlb_opt.
              endloop.
              <rs_result>-ddlb_options = lt_ddlb_opt.
            endif.
    *--> end   - 12/02/09
    Kind regards,
    Melanie

  • Add a new button in BP_HEAD_SEARCH

    Hi Experts,
    My requirement is to add a new button and disable GROUP button in MainSearchResult view of  BP_HEAD_SEARCH component.The steps i followed are..
    1.Created a Enhancement set in BSPWDVC_CMP_EXT and assign it to BSPWDV_EHSET_ASG in SM30.
    2.Enhancing view MainSearchResult of BP_HEAD_SEARCH  component using this Zenhancement set.
    3.Redefin DO_PREPARE_OUTPUT method of impl class and add following code for disabling group button.
    ls_button-enabled  = abap_false.
    and for add new button
    <button>-text  = 'Family'.
        ls_button-id       = 'CreateEmployee'.
        ls_button-type     = cl_thtmlb_util=>gc_icon_new.
        ls_button-text     = 'Employee'.
        ls_button-on_click = 'CREATEEMP'.
        ls_button-enabled  = abap_true.
        APPEND ls_button  TO gt_button.
    But nothing is reflecting while testing in CRM_UI_FRAME....please tell me what step i m missing and m i doing correct.
    Thanks
    Gaurav

    Hi Gaurav,
    the customizing you did seems OK. Just make sure you activated the EH-Set for the right client.
    In the BP_HEAD_SEARCH component you need to enhance view MainSearchResult
    The class is: cl_bp_head__mainsearchres_impl
    Here redefining the DO_PREPARE_OUTPUT is correct.
    You could just do the following:
    DELETE gt_button where on_click = 'CREATEGROUP'.
    Maybe you put a breakpoint in the method and check what is wrong?
    cheers Carsten

  • How to add search field to BP_HEAD_SEARCH from component BP_SALES?

    Hi experts,
    I'm quite new to the CRM 2007 and I need help to fulfill a request. It sounds actually quite simple:
    The field "Sales Office" from Sales Area Data should be displayed in the Account Search page as possible search field:
    To Change:
    Component: BP_HEAD_SEARCH
    View: MainSearch
    Sales Office is from:
    Component: BP_SALES
    View: CorpAccountOrgEF
    Context Node: BUILRESORG
    Attribute: STRUCT.SALES_OFFICE
    I've searched all moring in this forum but nothing could help me. Any help is appreciated and rewarded if useful!
    Thanks!
    / Melanie

    Melanie,
    The problem you have is you need to extend the search in all the layers of the application, So this means the following:
    1.  You added the field to the context node
    2.  You need to add the field to be visible in the configuration
    Now for the part not being done, the field needs to be present in the structure:
    CRMT_BUPA_IL_HEADER_SEARCH in order to work.
    Look at the GENIL/BOL class CL_BUPA_IL_HEADER_SEARCH->GET_RESULT_TABLE.
    You will also need to implement the BADI in the enhancement spot CRM_BUPA_IL_SEARCH in order to make your search work correctly.
    Read the documentation for the BADI BADI_CRM_BUPA_IL_SEARCH_EXT in the search extension for more details.  If explains exactly how to do what you want to do.
    Take care,
    Stephen

  • 'Individual Account' of component BP_HEAD_SEARCH not processing

    Hi Experts,
    From my customized view in ZIC_AGENT role, I have a Business Partner's which calls the search popup BP_HEAD_SEARCH.
    I only want to process 'Individual  Account' create function. The auth object check  UIU_COMP which will enabled this button when being called. What I did was enhance the view 'MainSearchResult' and manually change the enabled = X for the 'Individual Account' of the gt_button in DO_PREPARE_OUTPUT.
    METHOD do_prepare_output.
      FIELD-SYMBOLS: <fs_button> TYPE crmt_thtmlb_button.
      CALL METHOD super->do_prepare_output.
        READ TABLE gt_button ASSIGNING <fs_button> INDEX 2.
        <fs_button>-enabled = abap_true. 
    ENDMETHOD.
    When I run my process and click on the 'Individual Account' button nothing happens. I'm not sure what went wrong.
    Please provide some hints.
    Cheers,
    Su

    Hi ,
    Call the method ls_button-on_click = 'CREATEIND'. and in the event handler method call the outbound plug method .
    i.e
    METHOD eh_oncreateind.
      op_toindaccountnew( ).
    ENDMETHOD.
    in the outbound plug call the view .
    you can try this way to call the creation of the Individual account creation.
    Thanks,
    Sree.

  • BP_HEAD_SEARCH/MainSearchShuffler Defaulting category does not work

    Hello,
    at the moment I implement the search for accounts.
    A requirement is, that only corporate accounts can be searched.
    So I enhanced the view BP_HEAD_SEARCH/MainSearchShuffler and the context node search.
    There I redefined the method get_v_category. All entries (private accounts, all accounts...) are deleted in the ddlb,
    only the category 'corporate account' is in the ddlb now.
    But I have the problem that is described in note 1308330: If you go to account search and search the first time, the results are not shown in the result list. But above this list there is a message: "x Accounts found". The entry in the search field is also deleted when you click on search.
    If you search again, than the results are shown and everything is ok.
    How can I solve this problem?
    Can somebody help me, please?
    Kind regards
    Semra

    Hi Semra,
    I had the same task, but I solved it differently.
    First I added the following code:
    Component: <BP_HEAD_SEARCH>
    View          : <MainSearchShuffler>
    Class         : <ZL_BP_HEAD__MAINSEARCHSHU_IMPL> (because the component and the view are enhanced)
    Methode     : Overwrite <DO_INIT_CONTEXT>
    Code          :
    method DO_INIT_CONTEXT.
      CALL METHOD SUPER->DO_INIT_CONTEXT.
    Default the Account type for the search to <Corporate Account>
      typed_context->search->set_category( ATTRIBUTE_PATH = ''
                                           value          = '2' ).
    endmethod.
    Now you have only to take out the account type out of the shuffler view configuration.
    Best Regards
    Patrik

  • BP_HEAD_SEARCH RESULT SORT

    Hi,
    I have enhanced the component, BP_HEAD_SEARCH/ MAINSEARCHRESULT, 
    when the user searches the account,  the output of the search should be sorted by partner_type,  can anyone guide me
    how to get the result.
    thanks
    dhinesh

    Hi,
    in eh_onsearch
    result = qs->get_query_result( iv_adjust_params = lv_adjust_param ).
    After the above statement you  can sort the result by partner_type
         CALL METHOD result->sort
              EXPORTING
                iv_attr_name  = -
    > give on which attribute you want to sort
                iv_sort_order = if_bol_bo_col=>sort_descending.
    me->typed_context->searchresult->collection_wrapper->set_collection( result ).
    Regards,
    Gangadhar.S
    Edited by: gangadhar rao on Nov 26, 2010 7:37 AM

  • Class activation failed  Error when trying to activate the enhancement

    Hi ,
    Wheni try to activate the enhancement for the component BP_HEAD_SEARCH  view SEARCHHELP
    i get the following error message Class activation failed  Message no. BL001
    the error occurs in implementation class , as wizard is adding some junk code.
    Is there other way to work on it .
    Edited by: sowmya K on Dec 9, 2008 2:00 PM
    Edited by: Lakshmi on Dec 10, 2008 9:14 AM

    The method WD_CREATE_CONTEXT in your Z-class has two ENDMETHOD. lines, one before and one after the wizard-implementation "ztyped_context ?= context." Just delete the first ENDMETHOD. line and activate the class, should work fine.
    Alternatively implement the note 1167357
    Edited by: Philip Kopetzky on Jan 14, 2009 12:34 PM

  • Enhancement to a cube

    Hi Gurus
    I am working on BI 7 and as per a requirement i had to add 2 fields i.e calmonth(0CALMONTH) & a key figure namely document number (0CRM_NUMDOC) to a cube, now in tranformation calmonth is being mapped to a field in the DSO name of the field being, date field(0CRM_CRD_AT) and the key figure is being mapped with field of the same name in the DSO.After adding the fields to the cube and performing the full load i do not see the result for all records of the 2 fields that were loaded in the cube.kindly suggest..points will be hansomely awarded

    Hi Sharma,
    As u said the fields to be added to the cude, in this case the DS is already having this fileds and not mapped at the intal satage of mapping....????
    Can you check in RSA3 whether these fields that you have added does contain the Data for this perticluar Datasource.
    If you have enhanced the data source then u have to chek at the source system level itself.
    Since you are using BI.7 the DTP method then there is only 1 place that you map is in Tranformations.
    In this place it is direct map and 0CALMONTH if you map to any data field it will take the conversion automatically.
    Same way the Key field also if it is a direct field then it has to come.
    Best Regards,
    VNK.

  • Enhance MR11

    Hello Gurus ,
    I am trying to enhance MR11 Transaction (Report : SAPRCKM_MR11) .  Here i am adding GR  and  IR  posting date(BUDAT)  as selection field  .
    Requirement is that MR11 should consider  Gr and IR for that period.. compare and show the difference .
    In the program
    I added posting date(BUDAT)  in the select query to  'v_ckmlgrir' .  and it is picking all the records with in that period , open and cleared both .
    1)   But I want only the open one .....and I dont see any flag for that ....so is there any way i can get only the open items ?
    2) I observed that if i dont specify posting date ...I mean just run the standard MR11 ...then also it picks up open and cleared items ....but during processing it is considering open only don't know why ..i debugged it  its going through every item item but in the end considering open only which is correct ....so not understanding why its not doing the same if i restrict it to posting date .....
    any suggestion is greatly appreciated !!
    PS : GR/IR account   open items I can see from FBL3N .

    If you are using an account assigned PO then possibly the order(PM order, internal order etc) to which your PO refers might have status as CLSD.
    Check and reverse the status.

  • Extractor 0FC_BP_ITEMS - Business Partner Items Enhancement

    I'm looking at using 0FC_BP_ITEMS extractor to extract Open and cleared items. Has anyone worked on the enhancement of this extractor. If so what are the steps involved in enhancing this extractor?  Is it similar to the Full load extractor 0FC_CI_01 and 0FC_OP_01. Any help will be great.

    Hi,
    Please have alook in help.sap.com- Netweaver- BI Content-FICA.
    This is not same as those two datasources which you mentioned. This datasource will give you delta records.
    Regards,
    Asish

  • What is new in Enhancement Package 2 and 3

    Hi all,
    The [ERP Solution Browser|http://solutionbrowser.erp.sap.fmpmedia.com/] is an excellent tool to find out, what's new. However I did not find any means to get a list of new features in ERP 6.0 enhancement packages 2 and 3. Any hint (especially what's new in HCM) is welcome!
    Regards
      Matthias

    Hello Matthias,
    check out Service Marketplace, alias ERP-EhP to find out what's being delivered as part of an Enhancement Package:
    http://service.sap.com/erp-ehp (logon required).
    Basically, it provides the following:
    link to SAP Enhancement Package Infocenter to understand the content based on functional domain, e.g. HCM.
    documentation on
    - EhP concept and strategy
    - overview presentation SAP ERP EhP 2 and 3
    - detailed presentation SAP ERP EhP 2 and 3
    - preview SAP ERP EhP4
    - how to implement EhP ("Must know guide for IT professionals")
    - test case templates
    - links to other useful resources (e.g. ERP solution map, media library, functional areas)
    Hope this helps!

  • Create a new view in a enhance component

    Hi All,
              I want to create a new view for sales order and quatation in a component BP_factsheet.When i craete new view ,it is asking about some value like model node, bol entity, higher level, bol realtion.after that is is asking context node ,bsp application ,custome controller and view type.How can i get these value .when i create a new view then have to add these view in run time repositry under a window or not?
    Thanks in advance....
    Vishwas

    Hello Vishwas,
    You might be interested in knowing how to customise the new UI to add a new view using the enhancement concept.
    Please refer to the published document on the service marketplace:
    http://help.sap.com/saphelp_crm60/helpdata/en/1a/023d63b8387c4a8dfea6592f3a23a7/frameset.htm
    refers to the link at
    service.sap.com/okp
    Inside this go to:
    SAP CRM 2006s: Learning Map for Technology Consultants
    wherein you can find the cookbook to perform similar operation in detail.
    SAP CRM UI Cookbook
    I hope this helps.

Maybe you are looking for

  • How can I send a jpg picture file to someone so that they can download it and use it?  I can send a picture in an Email, but they can't open it

    How can I send a jpg of a photograph to someone so that they can download the file and use it to put into an article?  I can send it in an Email, but there doesn't seem to be a way for the recipient to extract the jpg from the Email

  • Creation of Hierarchie In BI.7

    Hi BI Experts, I searced the forums before posting but i did'nt get any answer as per my question .The data is coming from R/3 i need to create the hierarchie here the hierachie is not defined before . I know how to create hierarchie from flat file .

  • How to get xbar working?

    I have kdemod 4.2 and I can't get Xbar working with Bespin. All I get is an X icon saying Cannot find requested component : xbar

  • Mac Mini from U.S. to Japan

    I'm bringing my Mac Mini to Japan to give to my girlfriend, I've set it all up for her. Will I have any problems with it there? Power, etc? Thanks iMac/Mac Mini   Mac OS X (10.4.4)  

  • Plug-in 1.4 Fatal Error

    I had installed the 1.4 JRE on W2K and later removed it. I had actuall removed all Java from the system and then reinstalled the 1.3.1_04 SDK with it's JRE. Every time I try to start an Applet based application I get a Plug-in 1.4 fatal Error - The J