SAP GRAPH_MATRIX_3D Function Module for Structure of 3D graphics (user-friendly version)
GRAPH_MATRIX_3D is a standard graph matrix 3d SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Structure of 3D graphics (user-friendly version) processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for graph matrix 3d FM, simply by entering the name GRAPH_MATRIX_3D into the relevant SAP transaction such as SE37 or SE38.
Function Group: BUSG
Program Name: SAPLBUSG
Main Program:
Appliation area:
Release date: 19-Jan-1995
Mode(Normal, Remote etc): Normal Function Module
Update:
Function GRAPH_MATRIX_3D pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'GRAPH_MATRIX_3D'"Structure of 3D graphics (user-friendly version).
EXPORTING
* AUTO_CMD_1 = ' ' "DO NOT USE
* DIM2 = ' ' "Name of dimension 2
* INBUF = ' ' "DO NOT USE
* INFORM = ' ' "Allows dialog functions
* MAIL_ALLOW = ' ' "Allows sending the graphic as mail in SAPoffice
* PWDID = ' ' "Dialog parameters
* SET_FOCUS = 'x' "Set focus during reload
* SMFONT = ' ' "Use smaller fonts = 'X'
* SO_CONTENTS = ' ' "Subtitle of generated SAPoffice document
* SO_RECEIVER = ' ' "Recipient of generated SAPoffice object
* SO_SEND = ' ' "Graphic storage in SAPoffice instead of display
* AUTO_CMD_2 = ' ' "DO NOT USE
* SO_TITLE = ' ' "Title of the generated SAPoffice document
* STAT = ' ' "Dialog parameters
* SUPER = ' ' "Dialog parameters
* TIMER = ' ' "
* TITL = ' ' "
* VALT = ' ' "
* WDID = ' ' "
* WINID = ' ' "
* WINPOS = ' ' "
* WINSZX = '50' "
* COL1 = ' ' "Column 1
* WINSZY = '50' "
* X_OPT = ' ' "
* NOTIFY = ' ' "Activate 'Save settings'
* COL2 = ' ' "Column 2
* COL3 = ' ' "Column 3
* COL4 = ' ' "Column 4
* COL5 = ' ' "Column 5
* COL6 = ' ' "Column 6
* DIM1 = ' ' "Name of dimension 1
IMPORTING
B_KEY = "Pressed key
B_TYP = "Class for Business Graphics feedback
CUA_ID = "Not yet
MOD_COL = "Column of selected/modified object
MOD_ROW = "Line of selected/modified object
MOD_VAL = "New value of modified object
M_TYP = "Dialog parameters
RBUFF = "DO NOT USE
RWNID = "Dialog parameters
TABLES
DATA = "Table with text fields and value fields
OPTS = "Options table
IMPORTING Parameters details for GRAPH_MATRIX_3D
AUTO_CMD_1 - DO NOT USE
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DIM2 - Name of dimension 2
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
INBUF - DO NOT USE
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
INFORM - Allows dialog functions
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MAIL_ALLOW - Allows sending the graphic as mail in SAPoffice
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PWDID - Dialog parameters
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SET_FOCUS - Set focus during reload
Data type:Default: 'x'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SMFONT - Use smaller fonts = 'X'
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SO_CONTENTS - Subtitle of generated SAPoffice document
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SO_RECEIVER - Recipient of generated SAPoffice object
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SO_SEND - Graphic storage in SAPoffice instead of display
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
AUTO_CMD_2 - DO NOT USE
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SO_TITLE - Title of the generated SAPoffice document
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
STAT - Dialog parameters
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SUPER - Dialog parameters
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TIMER -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TITL -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
VALT -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WDID -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WINID -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WINPOS -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WINSZX -
Data type:Default: '50'
Optional: Yes
Call by Reference: No ( called with pass by value option)
COL1 - Column 1
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WINSZY -
Data type:Default: '50'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_OPT -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NOTIFY - Activate 'Save settings'
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
COL2 - Column 2
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
COL3 - Column 3
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
COL4 - Column 4
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
COL5 - Column 5
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
COL6 - Column 6
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DIM1 - Name of dimension 1
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for GRAPH_MATRIX_3D
B_KEY - Pressed key
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
B_TYP - Class for Business Graphics feedback
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CUA_ID - Not yet
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MOD_COL - Column of selected/modified object
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MOD_ROW - Line of selected/modified object
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MOD_VAL - New value of modified object
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
M_TYP - Dialog parameters
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
RBUFF - DO NOT USE
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
RWNID - Dialog parameters
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for GRAPH_MATRIX_3D
DATA - Table with text fields and value fields
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OPTS - Options table
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for GRAPH_MATRIX_3D Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.DATA: | ||||
lt_data | TYPE STANDARD TABLE OF STRING, " | |||
lv_b_key | TYPE STRING, " | |||
lv_auto_cmd_1 | TYPE STRING, " SPACE | |||
lv_dim2 | TYPE STRING, " SPACE | |||
lv_inbuf | TYPE STRING, " SPACE | |||
lv_inform | TYPE STRING, " SPACE | |||
lv_mail_allow | TYPE STRING, " SPACE | |||
lv_pwdid | TYPE STRING, " SPACE | |||
lv_set_focus | TYPE STRING, " 'x' | |||
lv_smfont | TYPE STRING, " SPACE | |||
lv_so_contents | TYPE STRING, " SPACE | |||
lv_so_receiver | TYPE STRING, " SPACE | |||
lv_so_send | TYPE STRING, " SPACE | |||
lt_opts | TYPE STANDARD TABLE OF STRING, " | |||
lv_b_typ | TYPE STRING, " | |||
lv_auto_cmd_2 | TYPE STRING, " SPACE | |||
lv_so_title | TYPE STRING, " SPACE | |||
lv_stat | TYPE STRING, " SPACE | |||
lv_super | TYPE STRING, " SPACE | |||
lv_timer | TYPE STRING, " SPACE | |||
lv_titl | TYPE STRING, " SPACE | |||
lv_valt | TYPE STRING, " SPACE | |||
lv_wdid | TYPE STRING, " SPACE | |||
lv_winid | TYPE STRING, " SPACE | |||
lv_winpos | TYPE STRING, " SPACE | |||
lv_winszx | TYPE STRING, " '50' | |||
lv_col1 | TYPE STRING, " SPACE | |||
lv_cua_id | TYPE STRING, " | |||
lv_winszy | TYPE STRING, " '50' | |||
lv_x_opt | TYPE STRING, " SPACE | |||
lv_notify | TYPE STRING, " SPACE | |||
lv_col2 | TYPE STRING, " SPACE | |||
lv_mod_col | TYPE STRING, " | |||
lv_col3 | TYPE STRING, " SPACE | |||
lv_mod_row | TYPE STRING, " | |||
lv_col4 | TYPE STRING, " SPACE | |||
lv_mod_val | TYPE STRING, " | |||
lv_col5 | TYPE STRING, " SPACE | |||
lv_m_typ | TYPE STRING, " | |||
lv_col6 | TYPE STRING, " SPACE | |||
lv_rbuff | TYPE STRING, " | |||
lv_dim1 | TYPE STRING, " SPACE | |||
lv_rwnid | TYPE STRING. " |
  CALL FUNCTION 'GRAPH_MATRIX_3D' "Structure of 3D graphics (user-friendly version) |
EXPORTING | ||
AUTO_CMD_1 | = lv_auto_cmd_1 | |
DIM2 | = lv_dim2 | |
INBUF | = lv_inbuf | |
INFORM | = lv_inform | |
MAIL_ALLOW | = lv_mail_allow | |
PWDID | = lv_pwdid | |
SET_FOCUS | = lv_set_focus | |
SMFONT | = lv_smfont | |
SO_CONTENTS | = lv_so_contents | |
SO_RECEIVER | = lv_so_receiver | |
SO_SEND | = lv_so_send | |
AUTO_CMD_2 | = lv_auto_cmd_2 | |
SO_TITLE | = lv_so_title | |
STAT | = lv_stat | |
SUPER | = lv_super | |
TIMER | = lv_timer | |
TITL | = lv_titl | |
VALT | = lv_valt | |
WDID | = lv_wdid | |
WINID | = lv_winid | |
WINPOS | = lv_winpos | |
WINSZX | = lv_winszx | |
COL1 | = lv_col1 | |
WINSZY | = lv_winszy | |
X_OPT | = lv_x_opt | |
NOTIFY | = lv_notify | |
COL2 | = lv_col2 | |
COL3 | = lv_col3 | |
COL4 | = lv_col4 | |
COL5 | = lv_col5 | |
COL6 | = lv_col6 | |
DIM1 | = lv_dim1 | |
IMPORTING | ||
B_KEY | = lv_b_key | |
B_TYP | = lv_b_typ | |
CUA_ID | = lv_cua_id | |
MOD_COL | = lv_mod_col | |
MOD_ROW | = lv_mod_row | |
MOD_VAL | = lv_mod_val | |
M_TYP | = lv_m_typ | |
RBUFF | = lv_rbuff | |
RWNID | = lv_rwnid | |
TABLES | ||
DATA | = lt_data | |
OPTS | = lt_opts | |
. " GRAPH_MATRIX_3D |
ABAP code using 7.40 inline data declarations to call FM GRAPH_MATRIX_3D
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.DATA(ld_auto_cmd_1) | = ' '. | |||
DATA(ld_dim2) | = ' '. | |||
DATA(ld_inbuf) | = ' '. | |||
DATA(ld_inform) | = ' '. | |||
DATA(ld_mail_allow) | = ' '. | |||
DATA(ld_pwdid) | = ' '. | |||
DATA(ld_set_focus) | = 'x'. | |||
DATA(ld_smfont) | = ' '. | |||
DATA(ld_so_contents) | = ' '. | |||
DATA(ld_so_receiver) | = ' '. | |||
DATA(ld_so_send) | = ' '. | |||
DATA(ld_auto_cmd_2) | = ' '. | |||
DATA(ld_so_title) | = ' '. | |||
DATA(ld_stat) | = ' '. | |||
DATA(ld_super) | = ' '. | |||
DATA(ld_timer) | = ' '. | |||
DATA(ld_titl) | = ' '. | |||
DATA(ld_valt) | = ' '. | |||
DATA(ld_wdid) | = ' '. | |||
DATA(ld_winid) | = ' '. | |||
DATA(ld_winpos) | = ' '. | |||
DATA(ld_winszx) | = '50'. | |||
DATA(ld_col1) | = ' '. | |||
DATA(ld_winszy) | = '50'. | |||
DATA(ld_x_opt) | = ' '. | |||
DATA(ld_notify) | = ' '. | |||
DATA(ld_col2) | = ' '. | |||
DATA(ld_col3) | = ' '. | |||
DATA(ld_col4) | = ' '. | |||
DATA(ld_col5) | = ' '. | |||
DATA(ld_col6) | = ' '. | |||
DATA(ld_dim1) | = ' '. | |||
Search for further information about these or an SAP related objects