The SAP Statistics program graphs single or multiple curves. The online user can:
A typical curve graphic looks as shown in the following figure.
You can call SAP Statistics from an ABAP program, and generate a curve graphic at the user's workstation terminal. Your program specifies the points in the curve and calls one of the following function modules:
A reference axis is the axis to which the graph values "apply." Scale values for the reference axis are explicitly provided by the programmer. These scale values are typically a series of specific dates, times, or other items over which the graph values are plotted.
By contrast, scale values for non-reference axes are simple numeric sequences. SAP Statistics always generate these scale values itself, based on input from the ABAP program.
Thus, a graph displayed in SAP Statistics has either one reference and one non-reference axis, or it has two non-reference axes.
Your program can also determine the appearance of the curve by setting parameter values just as an online user would select menu options.
Programming Interactive Applications
If your ABAP program allows the online user to open multiple windows or enter data with the mouse or keyboard, the application is interactive.
You are provided with two mechanisms for controlling the interaction between ABAP program and online user:
Using graphics function modules with dialog parameters STAT, M_TYP, PWDID, SUPER, WINID and RWNID)
Using graphics function modules with dialog parameters STAT, PWDID, SUPER, and WINID)
plus utility function modules :
For new programs, you should use only the second mechanism, graphics function modules with the utility function modules.
Do not use both mechanisms together in a program.
For more information, seeProgramming Interactive Applications.
You can also change the standard graphics display and define additional graphics functions for interactive users. This means when you call up SAP Statistics, it appears with changed or extra menu names or pushbuttons.
For more information, see the sectionChanging the Standard Graphics Display.To define additional functions, call the appropriate function module before you call an SAP Statistics function module.
If your ABAP program calls GRAPH_ACTION, it must also use the CUA_ID and S_TYP parameters (when calling STAT_GRAPH or STAT_GRAPH_REF) in order to learn when the user has selected these additional functions.