Show TOC

Procedure documentationTutorial Part 8: Create Dashboard with Context App

 

This tutorial is part of a course that explains how to create and register apps for the Dashboard Framework. In this eighth part, you learn about context apps. These allow you to specify the configuration settings for all apps in a dashboard at dashboard level, rather than at app level (as is the case for a configuration app). The relevant context app is always visible in the corresponding dashboard, which means you are not required to access this first to configure settings.

In this step, you create a dashboard in which the apps and the context app are displayed that you created previously and registered in the Dashboard Framework. For these elements to be added to the dashboard, you have to specify the initialization BAdI that you created in the previous step of the tutorial when you create the dashboard.

Prerequisites

This procedure is part of a comprehensive tutorial about Creating and Registering Dashboard Apps. During this tutorial, you create and register apps and their data sources.

You create this dashboard in the eighth part of the tutorial.

Note Note

Ensure that you have already performed the previous steps, as described in Tutorial Part 8: Create Dashboard with Context App.

End of the note.

Procedure

To create the dashboard, use the Dashboard Management (see Creating and Editing Dashboards).

  1. In the SAP Easy Acess menu, choose Dashboard Management Tool. The entry is in the folder SAP_SM_DASHBOARDS_ADMIN in your user menu, if you have this role.

    Note Note

    To put this entry in your SAP Easy Acess menu Favorites manually, proceed as follows:

    1. In the SAP Easy Access menu, call Start of the navigation path Favorites Next navigation step Add Other Objects End of the navigation path.

    2. From the list in the Restrictions screen, choose Web-Dynpro Applications.

    3. On the Web Dynpro Application screen, in the Web Dynpro Application field, enter the name dashboard_management.

    4. Enter a description, for example Dashboard Management Tool, and complete the creation of the new entry.

    End of the note.
  2. To create a new dashboard, choose Create Dashboard.

  3. Enter the following details for your new dashboard:

    Input field

    Entry

    Dashboard Alias

    Z_TUTORIAL8

    Title

    Comparison of subsidiaries

    Description

    This dashboard displays the costs, overall duration, and number of telephone calls for any month.

    Authorization Group

    Public

    Category

    Not Assigned (NOT_ASSIGNED)

    Type

    General

    Initialization BAdI

    Z_TUTORIAL_FILL_DASHBOARD

    Style Sheet

    Default

    Suitable for mobile devices

    Not selected

  4. Save your dashboard.

You have created your dashboard and put apps in it using the initialization BAdI. You can call the dashboard in two ways:

  • Via SAP Easy Access

    To put your dashboard in your Favorites in the SAP Easy Access screen, proceed as follows:

    1. In the SAP Easy Access menu, call Start of the navigation path Favorites Next navigation step Add Other Objects End of the navigation path.

    2. From the list in the Restrictions screen, choose Web-Dynpro Applications.

    3. On the Web Dynpro Application screen, in the Web Dynpro Application field, enter the name generic_dashboard_viewer.

    4. Enter a description, for example Tutorial Dashboard.

    5. Insert a row in the table Parameter, in the Name column, enter ALIAS, and in the Value column, enter Z_TUTORIAL.

  • Via a link.

    Dashboard Management outputs a link to the dashboard, under Link to Dashboard, as described above. As you assigned the dashboard to the type General, you can also send the link. If he has a user in the system, the recipient can call the dashboard, and finds the same apps.

Result

You have completed this part of the tutorial, and created a dashboard with the tutorial apps. This dashboard is automatically filled with the three apps and the context app the first time it is started.