Start of Content Area

Function documentation Exit Function for The Log Display  Locate the document in its SAP Library structure

Use

The log display function is a planning function of type ”exit“. It displays error messages and statistical information for the forecasting run.   The log information is displayed in a dialog box. You can also save the log information in the application log (see below, under the “activities” section, step 2 for parameter SAVELOG).

Integration

This function has to be executed immediately after executing the forecast function because the log information is only stored in the main memory temporarily. (This is not the case if you save the log information in the application log).

Features

The log display provides the following information:

·        Determination coefficient R squared (r2) as the measure of how well the model fits the data

·        Standard deviation of errors

·        MAPE (Mean Absolute Percentage Error, see Optional Forecast Parameters under optimization variable 22OPTVAR)

·        RMSE (Square Root of the Mean Squared Error MSE)

·        Selected model (when using the automatic model selection)

·        Smoothing factors alpha, beta, gamma (entered values or estimated values)

·        Trend dampening factor (if specified)

·        Number of outliers (determined in outlier correction)

·        Sigma factor (if used for outlier correction)

Activities

...

       1.      Create a planning function of type “exit” and enter the names of the following function modules:

Function modules for exit function

Field

Technical name

Function module

UPF_FORECAST_LOG_DISPLAY

Function module for init.

UPF_FORECAST_LOG_DISPLAY_INIT

       2.      Determine the parameter.

Parameter and data element

Parameter

Data element

Description

SAVELOG

(Character field of length 1)

Saving log information.

If you want the system to save the log information persistently instead of displaying it immediately, set SAVELOG to ‘X’. The information will then be stored in the application log and will not be displayed in the dialog box.

You can use SAVELOG in batch mode or in planning sequences.

This parameter is optional. The default value is ’ ’. As standard, the log information is displayed in a dialog box.

You have to specify an arbitrary data element of type ‘char’, with a minimum length of one character.

Note

You can find more information on creating an exit function under Exit Function. 

 

See also:

 

Exit Function for Forecasting

 

 

End of Content Area