This blog given an overview of the actions that need to be executed, to enhance the CRM Webclient home screen and add an additional assignment block.
Note that it is especially important to think about the performance of the selection behind the additional view. As the user cannot influence the selection and as we are talking about the homepage, the last thing you want is your users waiting for the homepage to load because the selection of your custom view is too expensive.
In our example we want to inform the user about his opportunities. For that we will create a new view within SAP’s standard UI Component “BT111S_OPPT”. To do so enhance UI component “BT111S_OPPT” and create a new view called “MyOpportunities”.
Create a custom view
Include a model node called “Result” referring to the standard BOL entity “BTQROpp”, used to store query results for opportunities.
For an example refer to UI component “CRMCMP_GS_WC”, view “TodaysApptmnt”, which SAP uses to display assignment block “My Appointments Today” on the home screen.
Once you have create a custom view and decided that it needs to be visible on the home screen, first thing we need to do is expose this view to other components, so it can be used somewhere else.
Create an interface view to expose a component window
Most likely your view is part of a window already. We need to create a component interface for this window. To do so, go to the “Runtime repository editor” of your component and create a new “Interface view”.
Select the required window and continue.
Now that we exposed our window to other components, we need to enhance the CRM Webclient home screen to incorporate the exposed window.
Incorporate the interface view within the home page component
To do so, enhance UI component “WCC_SLS_HOME”, go to the “Runtime repository editor” and add a “Component usage”.
Enter an “ID”, select the required “Component” and “Interface view” and continue.
We incorporated the view within the CRM UI Webclient home page component, so next step is to add this view to the default window. This will allow us to select the view within the configuration of the home page.
Add the incorporated view to the default window
Go to the “Runtime repository editor”. As we can see, there is only one window, containing a view set “SalesHome”. That’s where we need to add our view.
Select the viewarea “OverviewPage” and add a view.
Search for the view that we incorporated and continue.
Our view has been successfully added to the home page. Once you have changed the UI configuration, the view will be displayed automatically on the home page.