Skip to Content
0
Former Member
Feb 09, 2010 at 01:56 PM

Enhancement of Account Search - Problems with Attribute Structure

111 Views

Hello Experts,

in SAP CRM 7.0 we tried to extend the Account Search in the component BP_HEAD_SEARCH (View: MainSearch). The steps we did to enhance the standard search are:

1. We have made a copie of the estructure CRMT_BUPA_IL_HEADER_SEARCH and made an include in the copy of the structure with the component (ZZTAXNUMBER) that we need in the search. The name of the copy of the structure is: ZRMT_BUPA_IL_HEADER_SEARCH

2. We created the Enhancement Implementation Z_IMPLCRM_BUPA_SEARCH in the Enhancement Spot CRM_BUPA_IL_SEARCH of BAdi: BADI_CRM_BUPA_IL_SEARCH_EXT. In the Enhancement Implementation Z_IMPLCRM_BUPA_SEARCH we have created the Implmententation Class ZIF_EX_CRM_BUPA_IL_SEARCH_EXT which depends in class IF_EX_CRM_BUPA_IL_SEARCH_EXT and created 3 methods:

a) IF_EX_CRM_BUPA_IL_SEARCH_EXT~SEARCH_CRITERIA_INITIAL

b) IF_EX_CRM_BUPA_IL_SEARCH_EXT~SEARCH_PARTNERS

c) FILTER_BY_TAXNUMBER

3. We have actualized View-Cluster CRMV_BUIL_CUST with the Values BuilHeaderAdvancedSearch and put in there the name of the created attribute structure ZRMT_BUPA_IL_HEADER_SEARCH

4. We have examined the tables CRMC_OBJIMP_BUIL, CRMC_ALLOBJ_BUIL and CRMC_MODEL_BUIL and made the necesary customizing sttings.

5. We found the new attribute in the configuration BP_HEAD_SEARCH and then we added it to the search structure. The field is visible there. But the problem is, it doesnu2019t worked the search logic.

6. Finally we have started a debugging and we found out that there is something wrong with the attribute structure. It seems that the system takes always the attribute structure CRMT_BUPA_IL_HEADER_SEARCH and not the one we have created.

The parameter is_parameter which should contain our attribute structure contains still the SAP Stand Attribute Structure: CRMT_BUPA_IL_HEADER_SEARCH.

METHOD if_ex_crm_bupa_il_search_ext~search_criteria_initial.

  DATA: ls_parameters TYPE zrmt_bupa_il_header_search.

  MOVE is_parameters TO ls_parameters.

  IF ls_parameters-ztaxnumber IS NOT INITIAL.
    cv_is_not_initial = abap_true.
  ENDIF.

ENDMETHOD.

What we have to do that the system takes/accepts our search structure?

Best regards

Oliver