The procedure in this section describes implementing enhancement Level 3 - Component BP_Head_Search.
-
BP_HEAD_SEARCH/MainSearch
-
BP_HEAD_SEARCH/MainSearchResult
-
BP_HEAD_SEARCH/SearchHelp
-
BP_HEAD_SEARCH/SearchHelpResult
To implement enhancement level 3 - BP_HEAD_SEARCH
-
Use the BSP WD Workbench to enhance the component BP_HEAD_SEARCH and customize the business partner search views.
-
Start transaction BSP_WD_CMPWB.
-
Enter component BP_HEAD_SEARCH and the name of your enhancement set from view BSPWDV_EHSET_ASG.
-
Click Display.
-
Right-click the Custom Controllers node and choose Create. Respond to the prompts, as illustrated in the following figures.
Figure 1. Create Custom ControllerFigure 2. Define Custom Controller DescriptionFigure 3. Add Model NodeFigure 4. Add Value NodeFigure 5. Add Model AttributesFigure 6. Add Value AttributesFigure 7. Value Attributes AddedFigure 8. Link Context NodeFigure 9. SummaryScroll down to see the rest of the Summary information:
Figure 10. Summary (continued)- Open the Views node and click node BP_HEAD_SEARCH/MainSearch.
- If the view has not already been enhanced, enhance the view.
- Create a new context node named UICONTROL and bind it to the custom
controller context node that was created in Step 2.Figure 11. Define Context NodeFigure 12. Add Value AttributesFigure 13. Link Context NodeFigure 14. Summary
CRM 7.0 Ehp1, Ehp2, Ehp3 and Ehp4 users: skip toStep e on page 103. For CRM releases lower than CRM 7.0 Ehp1, locate the view controller class for view BP_HEAD_SEARCH/MainSearch.
Figure 15. Locate View Controller ClassDouble-click on the class name to navigate to the Class Builder. Click on the Attributes tab and create the new class attribute GV_CATEGORY with type BU_TYPE.
Figure 16. Navigate to the Class Builder- Figure 17. Navigate to Event Handler
-
Enter the following code in the redefined method:
method EH_ONSEARCH. include /TRILLIUM/MSRH_EH_ONSEARCH. endmethod.
Navigate to Request Processing and redefine method DO_CONFIG_DETERMINATION.
Figure 18. Navigate to Request Processing