SAP Function STAT_GRAPH_REF - Call SAP Statistical Graphics with Reference Axis

Parameter Reference Type Length Default Optional Text
AGRID 0 SPACE X DO NOT USE
ATYPE 0 'TIME' X Parameters for statistics type
AUTO_CMD_1 0 SPACE X DO NOT USE
AUTO_CMD_2 0 SPACE X DO NOT USE
CLR_BGRD 0 SPACE X Color
CLR_FGRD 0 SPACE X Color
CLR_FRAME 0 SPACE X Color
CLR_GRID 0 SPACE X Color
CLR_KORD 0 SPACE X Color
CLR_LGDBGRD 0 SPACE X Color
CLR_LGDFGRD 0 SPACE X Color
CLR_LGDFRAM 0 SPACE X Color
CLR_LGDTEXT 0 SPACE X Color
CLR_TEXT 0 SPACE X Color
DMODE 0 SPACE X Display mode
GRIDDENS 0 SPACE X Grid option : rough / fine
GRIDDISP 0 SPACE X Grid option ; line type
GRIDTYPE 0 SPACE X Grid option : Grid type
INBUF 0 SPACE X DO NOT USE
INFORM 0 SPACE X Allows the selection of curves and points
MAIL_ALLOW 0 SPACE X Allow storage in SAPoffice = 'X'
PWDID 0 SPACE X Dialog parameters
R_DAY 0 SPACE X Reference date for VALS
SCALE 0 SPACE X Scaling mode
SET_FOCUS 0 'x' X Set focus during reload
SO_CONTENTS 0 SPACE X Subtitle of generated SAPoffice document
SO_RECEIVER 0 SPACE X Recipient of generated SAPoffice object
SO_SEND 0 SPACE X Graphic storage in SAPoffice instead of display
SO_TITLE 0 SPACE X Title of the generated SAPoffice document
STAT 0 SPACE X Dialog parameters
STEPX 0 SPACE X Increment for labeling the X axis
STEPY 0 SPACE X Increment for labeling the Y-axis
SUPER 0 SPACE X Dialog parameters
TAXIS 0 SPACE X Text for the reference axis
TITLE 0 SPACE X Window title
TTEXT 0 SPACE X Heading
TUNIT 0 SPACE X Unit of measurement for time axis (ATYPE = 'TIME')
UTEXT 0 SPACE X Heading subtitle
VALT 0 SPACE X Axis name
WINID 0 SPACE X Dialog parameters
WINPOS 0 SPACE X Position of the statistics window (1..9)
WINSZX 0 '50' X Size of the output window in X-direction (%)
WINSZY 0 '50' X Size of the output window in Y-direction (%)
XDECS 0 SPACE X Places behind the decimal point for X-axis labeling
XRNGL 0 0 X Lower range for X-axis
XRNGU 0 0 X Upper range for X-axis
XTCKS 0 SPACE X Number of subdivisions on the X-axis
XYAXE 0 SPACE X Selection of the reference axis
X_ART 0 SPACE X Scaling type on the X-axis
X_OPT 0 SPACE X INTERNAL USE ONLY
Y2RNGL 0 0 X Lower range for Y-axis / curve 2
Y2RNGU 0 0 X Upper range for Y-axis / curve 2
Y2TCKS 0 SPACE X Number of intervals in Y-axis / curve 2
YDECS 0 SPACE X Places behind the decimal point for Y-axis labeling
YRNGL 0 0 X Lower range for Y-axis
YRNGU 0 0 X Upper range for Y-axis
YTCKS 0 SPACE X Number of subdivisions on the Y-axis
Y_ART 0 SPACE X Scaling type in Y direction
ZEROLINE 0 '1' X Switch zero line on/off
ZMODE 0 SPACE X Reference axis subdivision

Parameter Reference Type Length Text
CUA_ID 0 CUA event
INDEX 0 selected curve point
KURVE 0 Selected curve
M_TYP 0 Dialog parameters
NEW_VAL 0 New value during modification
RBUFF 0 DO NOT USE
RWNID 0 Dialog parameters
S_TYP 0 Statistics message type

Parameter Reference Length Optional Text
DATA 0 Data table
OPTS 0 Options table
VALS 0 Table for reference axis

Exception Text
OUT_OF_RANGE


The function module STAT_GRAPH_REF calls the SAP Statistical program.It enables "mass data" to be displayed. Several curves/records can berepresented at the same time.
However it differs from the STAT_GRAPH function module because thedata records have a common reference axis i.e. the same arguments(markers). This means that all records also have to have the same size.The reference axis in table VALS and the corresponding values in tableDATA have to be passed on to the function module. For each record anentry is required in the options table that specifies the typeof display.
Two different types of reference axes are supported. The reference axiscan consist of texts (e.g. months of the year) or numericalvalues.
The records can be displayed as dots or a continuous curve.
INCLUDE 'STAT_CUA_ID' OBJECT DOKU ID TX
INCLUDE 'STAT_INDEX' OBJECT DOKU ID TX
INCLUDE 'STAT_KURVE' OBJECT DOKU ID TX
INCLUDE 'STAT_M_TYP' OBJECT DOKU ID TX
NEW_VAL returns the new value of the curve point referred to byKURVE and INDEX if a modification was made.(S_TYP = 'M')
INCLUDE 'STAT_RBUFF' OBJECT DOKU ID TX
INCLUDE 'STAT_RWNID' OBJECT DOKU ID TX
INCLUDE 'STAT_S_TYP' OBJECT DOKU ID TX
old, do not use
The ATYPE parameter is only for use with STAT_GRAPH_REF.
This parameter tells the function module how to display the scalevalues along the reference axis. The scale values themselves (thevalues that label the axis) are contained in the VALS parameter.
Possible values for ATYPE are:
'VAL'
This value causes the scale labels (and their longitudinal grid lines)to appear at regular intervals along the axis. Entries in the VALStable parameter are of type C or N and can be any string or numericlabels desired.
'TIME'
This value causes the scale labels (and their longitudinal grid lines)to appear at irregular intervals along the axis. Distances between gridmarkers are determined by the entries in the VALS parameter. Theseentries are actual times, and can be of type P, D, or T. See the VALSparameter for more information.
internal use only
internal use only
This parameter chooses a scaling mode from the Goto -> Display Modemenu. Possible values are the following:
'1',,Common scaling mode
'2',,Separate scaling mode
'3',,Difference scaling mode
You can only use the Separate scaling mode if you are graphing twocurves (no more, no less) at a time.
INCLUDE 'STAT_GRIDDENS' OBJECT DOKU ID TX
INCLUDE 'STAT_GRIDDISP' OBJECT DOKU ID TX
INCLUDE 'STAT_GRIDTYPE' OBJECT DOKU ID TX
INCLUDE 'STAT_INBUF' OBJECT DOKU ID TX
INCLUDE 'STAT_INFORM' OBJECT DOKU ID TX
INCLUDE 'STAT_MAIL_ALLOW' OBJECT DOKU ID TX
INCLUDE 'STAT_PWDID' OBJECT DOKU ID TX
INCLUDE 'STAT_SCALE' OBJECT DOKU ID TX
When <> SPACE, the focus is set to the corresponding graphic windowwhen subsequently loading for every call of the function module.
Subtitle
Receiver
If the field SO_SEND is set to a value other than SPACE, then thegraphic is NOT output on the screen. Instead, a SAPoffice document isgenerated which is described by the parameters SO_RECEIVER, SO_TITLEand SO_CONTENTS.
The receiver of the document can then display the graphic.
In this way, graphics can also be generated IN THE BACKGROUND.
Title
INCLUDE 'BUSG_STAT' OBJECT DOKU ID TX
INCLUDE 'STAT_STEPX' OBJECT DOKU ID TX
INCLUDE 'STAT_STEPY' OBJECT DOKU ID TX
INCLUDE 'STAT_SUPER' OBJECT DOKU ID TX
INCLUDE 'STAT_TAXIS' OBJECT DOKU ID TX
INCLUDE 'STAT_TTEXT' OBJECT DOKU ID TX
INCLUDE 'STAT_UTEXT' OBJECT DOKU ID TX
INCLUDE 'STAT_VALT' OBJECT DOKU ID TX
The parameter WINID tells the function module which window shouldbe specified when calling up the graphic program. WINID can eitherspecify a window that is already open or a window to be opened.
WINID is a dialog parameter that you might want to use if users canopen several windows in the program.
If the dialog user can only open one window in the program, thisparameter is not necessary.
INCLUDE 'STAT_WINPOS' OBJECT DOKU ID TX
INCLUDE 'STAT_WINSZX' OBJECT DOKU ID TX
INCLUDE 'STAT_WINSZY' OBJECT DOKU ID TX
INCLUDE 'STAT_XDECS' OBJECT DOKU ID TX
INCLUDE 'STAT_XRNGL' OBJECT DOKU ID TX
INCLUDE 'STAT_XRNGU' OBJECT DOKU ID TX
INCLUDE 'STAT_XTCKS' OBJECT DOKU ID TX
INCLUDE 'STAT_XYAXE' OBJECT DOKU ID TX
INCLUDE 'STAT_X_ART' OBJECT DOKU ID TX
INCLUDE 'STAT_X_OPT' OBJECT DOKU ID TX

Description
Specification of a scaling value for display of exactly 2 curves withmanual scaling.

Description
Specification of a scaling value for display of exactly 2 curves withmanual scaling.

Description
Specification of a scaling value for display of exactly 2 curves withmanual scaling.
INCLUDE 'STAT_YDECS' OBJECT DOKU ID TX
INCLUDE 'STAT_YRNGL' OBJECT DOKU ID TX
INCLUDE 'STAT_YRNGU' OBJECT DOKU ID TX
INCLUDE 'STAT_YTCKS' OBJECT DOKU ID TX
INCLUDE 'STAT_Y_ART' OBJECT DOKU ID TX
INCLUDE 'STAT_ZEROLINE' OBJECT DOKU ID TX
INCLUDE 'STAT_ZMODE' OBJECT DOKU ID TX
INCLUDE 'STAT_OPTS' OBJECT DOKU ID TX
This parameter is a table of values: each is the reference-axis valuefor a given curve point. The non-reference-axis value for the point isgiven in the DATA parameter.
The values in the VALS parameter are also used to label grid linesalong the reference axis.
The format of the VALS parameter depends on the value in the ATYPEparameter. If ATYPE='VAL', VALS is a one-dimensional table containingeither string (type C) or numeric (type N) labels of any kind.
If ATYPE='TIME', VALS is a one- or two-dimensional table of timevalues. These time values must be for dates of January 1, 1980 orlater. The following table formats are possible:

  • VALS is a one-dimensional table, with all fields of type P. These time
  • values are given in seconds counting from the first of January, 1900.
    • VALS is a two-dimensional table. Each row in the table contains a date
    • (type D) and a time (type T).
      • VALS is a one-dimensional table, with all fields of type D. These
      • values are dates, where the time of day for each date is assumed to bemidnight.
        • VALS is a one-dimensional table, with all fields of type T. These
        • values are times of day for a particular date. This date is found inthe R_DAY parameter.
          (See the ATYPE and R_DAY parameters for more information.)