Activating the Statistics

To create statistics you have to implement a customer exit.

In the following the core technical aspects are pointed out.

Whenever the status of a Kanban is changed using a standard SAP application, for instance the graphical Kanban board, the standard function PK_ITEM_CHANGE_STATUS is called, which in turn calls the customer exit module EXIT_SAPLMPKB_001. A function module call must be implemented within this exit which contains encapsulated functions for statistics creation and KPI measurement in hours.

Call hierarchy in case of a status change

In this exit implement following code.

Within the function module PK_ITEM_CHANGE_STATUS the processing logic is as follows:

  1. The status change is processed and posted.
  2. It is checked whether the customer exit is active and an own coding implemented
  3. If yes, the own coding is executed
  4. Then the program continues and updates the standard statistics database

Normally it would do this with daily measured KPIs. Now the own program within the customer exit measures the KPIs in hours and updates the results to the database table /SAPLOM/KBM_STAM. This has been specifically created for the Kanban add-on. This table contains all the Kanban key figures described in chapter Controlling View – except average times – monthly aggregated by control cycle. Average key figures are calculated during program execution.