Enhancement of the Search Help

Use

To accomplish enhancements in SAP Customer Relationship Management (SAP CRM), it is necessary to make changes in SAP Enterprise Resource Planning (SAP ERP) and in SAP CRM.

If you want to enhance an existing search help, for example add fields to the result list or change the data selection, you have to perform the following steps:

  1. SAP CRM: Determine the corresponding object type for the search help.

  2. SAP ERP: Add your fields to the result structure.

  3. SAP ERP: Adjust the method that reads the data from the database.

  4. SAP CRM: Append your fields to the corresponding attribute structure of the Business Object Layer (BOL).

  5. SAP CRM: Modify the configuration of the corresponding view, or copy and adjust the UI component.

Prerequisites

To use this function, you must activate the business function Performance Improvements (CRM_FS_PERF_1).

Activities

  1. SAP CRM: Determine the corresponding object type for the search help.

    1. In the SAP CRM IC Client for Waste and Recycling, place the cursor in the search field for which you want to enhance the search help and press F2. A screen with technical information for that field is displayed. Make a note of the values for UI Component, View, and Context Node in the group Field: Technical information.

    2. Start the UI component workbench (transaction BSP_WD_CMPWB) and enter the UI component name you have noted. Double-click the appropriate view in the tree (under Component Views). Open Context Node on the right hand side. Next to the appropriate context node, you can find the name of the query object.

    3. If you want to find the name of the corresponding object type, start transaction SE16 and table TCRM_EWA_EL_GEO. Enter the name of the query object in the OBJECT_NAME field. You can find the object type in the OBJECTTYPE field.

  2. SAP ERP: Add your fields to the result structure.

    1. Start transaction EWAOBJTYPEM to identify the structure that has to be enhanced.

    2. Select the relevant object type and make a note of the value of the column structure name. If the list does not have an entry for the required object type, start transaction EWAOBJTYPE instead.

    3. If a structure is already defined, add the fields you want to the structure (transaction SE11).

    If no result structure is defined, you must create the result structure and include the data reference structure of the respective implementing class first.

    1. To find the name of the data reference structure, start transaction SE80.

    2. In the repository browser, choose Class/Interface from the dropdown list, enter the name of the implementing class, and choose enter (you can find the name of the implementing class in transaction EWAOBJTYPEM/EWAOBJTYPE).

    3. In the tree, open the Attribute node and double-click DATAREF. On the right hand side, you can find the name of the data reference structure in the Associated Type column. Include the data ref structure and your new fields into your result structure and save it. Start transaction EWAOBJTYPEM, create a new entry for the object type, and enter the name of the new result structure.

    4. Save your entries.

  3. SAP ERP: Adjust the method that reads the data from the database.

    Check whether the new fields have already been read from the database.

    1. Start transaction SE80.

    2. In the repository browser, choose Class/Interface from the dropdown list, enter the name of the reader class, and choose enter (you can find the name of the reader class in transaction EWAOBJTYPE M/EWAOBJTYPE).

    3. In the tree, open the Methods -> Redefinitions node and double-click entry SELECT_SPEC

    4. If the fields have not already been read from the database, derive the reader class and redefine method SELECT_SPEC. After you have started transaction EWAOBJTYPEM, create a new entry for the object type and enter the name of the new reader class.

    5. Save your entries.

  4. SAP CRM: Append your fields to the corresponding attribute structure of the Business Object Layer (BOL).

    If you want to add the fields to your result structure for the BOL, you have to identify out the name of the result object first.

    1. Start transaction SE16 and enter table CRM_IUIL_OBJPROP.

    2. In the OBJECT_NAME field, enter the name of your query object (for example EwaObjectAddressQuery). You can find the name of the result object in column RESULT_OBJECT_NAME (for example EwaObjectAddressResult).

    Based on the name of the result object you have to identify the name of the result structure.

    1. Start transaction SE16 and enter table CRM_IUIL_OBJPROP.

    2. Enter the name of your result object (for example EwaObjectAddressResult) in the OBJECT_NAME field. You can find the name of the result structure in column ATTR_STRUCT (for example CRM_EWA_SOBJECTADDRESS_INFO).

    3. Append the result structure with the fields you have added to the ERP structure.

    4. Save your entries

  5. SAP CRM: Modify the configuration of the corresponding view, or copy and adjust the UI.

    After you have appended the structure, you can use the new fields in the UI.

    For more information about how to customize your SAP CRM UI, see the SAP Business Suite documentation in SAP Library at http://help.sap.comInformation published on SAP site under Start of the navigation pathSAP Customer Relationship Management  Next navigation step Basic Functions Next navigation step UI Framework and Configuration Next navigation step Framework EnhancementEnd of the navigation path.