SAP Function STAT_GRAPH - Call SAP Statistical Graphics

Parameter Reference Type Length Default Optional Text
AGRID 0 SPACE X DO NOT USE
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 (only for ATYPE: VAL and TIME)
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
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
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 labeling X-axis
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 see X_ART
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

Exception Text
OUT_OF_RANGE


The function module STAT_GRAPH calls SAP Statistical Graphics. Itenables "mass data" to be displayed (up to 2000 pairs of values).
Up to 16 curves (records) can be displayed at the same time. Each recordconsists of an entry in the options table and a corresponding number ofentries in the data table. For each element of the record two values(X,Y) have to be entered in the data table. In the options table, thenumber of elements and display parameters have to be entered for eachrecord. The records can be displayed with dots, areas or a continuousline.
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
INCLUDE 'STAT_AGRID' OBJECT DOKU ID TX
internal use only
internal use only
INCLUDE 'STAT_DMODE' OBJECT DOKU ID TX
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 cal 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
INCLUDE 'STAT_WINID' OBJECT DOKU ID TX
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
This table parameter contains data values for each curve to be graphed.Each row in DATA contains the two values (x-value and y-value) for asingle curve point. The OPTS parameter tells SAP Statistics how manypoints in the table belong to each curve.
Further information about each curve in DATA is stored in the OPTStable parameter.
INCLUDE 'STAT_OPTS' OBJECT DOKU ID TX