Show TOC

Procedure documentationUsing a Function Module as a Data Source

 

In the Dashboard Builder, a tile is a part of a dashboard. It usually visualizes one KPI in one chart. One of the technical options for providing data for a tile is via a function module.

This procedure contains the information you need to create a function module to supply data to a dashboard tile.

Procedure

To develop a function module as a data source for Dashboard Builder, it must meet the following specifications (see function module DSH_SAMPLE_FM_DATASET, as a reference):

  • The function module must have a TABLES parameter, which contains data sets.

  • The TABLES parameter must contain no more than 30 character-type fields, which are to be assigned to characteristics, and no more than five P-type (packed) fields, as key figures. The fields to be assigned to key figures must be the last columns.

  • The component type of each field should be based on a data element with a meaningful field label.

  • You can use the importing parameter I_T_SEL_OPTIONS in your function module to transfer data selection criteria from Dashboard Builder. Implement your own logic in the function module, based on inbound data selection criteria (see function module DSH_SAMPLE_FM_DATASET as a reference).

Result

The function module is created, and can supply data to a dashboard.