SAP GRAPH_BUTTON_MATRIX Function Module for Display pushbutton matrix









GRAPH_BUTTON_MATRIX is a standard graph button matrix SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display pushbutton matrix 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 button matrix FM, simply by entering the name GRAPH_BUTTON_MATRIX into the relevant SAP transaction such as SE37 or SE38.

Function Group: BMAT
Program Name: SAPLBMAT
Main Program:
Appliation area:
Release date: 19-Jan-1995
Mode(Normal, Remote etc): Normal Function Module
Update:



Function GRAPH_BUTTON_MATRIX 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_BUTTON_MATRIX'"Display pushbutton matrix
EXPORTING
* COL11 = ' ' "Color 1 of key figure 1
* CTXT3 = ' ' "Column heading column 3
* CTXT4 = ' ' "Column heading column 4
* CTXT5 = ' ' "Column heading column 5
* CTXT6 = ' ' "Column heading column 6
* CTXT7 = ' ' "Column heading column 7
* CTXT8 = ' ' "Column heading column 8
* CTXT9 = ' ' "Column heading column 9
* INBUF = ' ' "DO NOT USE
* MODIF = 'X' "Interaction control
* OUTFT = ' ' "Control of the output size
* COL12 = ' ' "Color 2 of key figure 1
* PWDID = ' ' "Dialog parameters
* ROWLN = 1 "Line Height
* SET_FOCUS = 'x' "Set focus during reload
* SHOW_LINES = ' ' "Internal use only
* STAT = ' ' "Dialog parameters
* STITL = ' ' "Height of the title
* SUPER = ' ' "Dialog parameters
* TIMER = 0 "Internal use only
* TTEXT = ' ' "Title of the pushbutton graphic
* VAL11 = 0 "Threshold value 1 of key figure 1
* COL13 = ' ' "Color 3 of key figure 1
* VAL12 = 0 "Threshold value 2 of key figure 1
* VAL13 = 0 "Threshold value 3 of key figure 1
* VAL14 = 0 "Threshold value 4 of key figure 1
* VAL15 = 0 "Threshold value 5 of key figure 1
* VALD1 = 0 "Minimum value of key figure 1
* VALU1 = 100 "Maximum value of key figure 1
* VTXT1 = ' ' "Description of key figure 1
* WINID = ' ' "Dialog parameters
* WINPOS = ' ' "
* WINSZX = '50' "
* COL14 = ' ' "Color 4 of key figure 1
* WINSZY = '50' "
* COL15 = ' ' "Color 5 of key figure 1
* COL16 = ' ' "Color 6 of key figure 1
* COLLN = 15 "Column width
* CTXT1 = ' ' "Column heading column 1
* CTXT2 = ' ' "Column heading column 2

IMPORTING
B_TYP = "BMAT message type
COLNR = "Number of the selected column
CUA_ID = "
M_TYP = "Dialog parameters
RBUFF = "DO NOT USE
ROWNR = "Number of the selected line
RWNID = "Dialog parameters

TABLES
ATTR = "Internal table with attributes
DATA = "Internal table of the data
SIZE = "Internal table with size specifications
.



IMPORTING Parameters details for GRAPH_BUTTON_MATRIX

COL11 - Color 1 of key figure 1

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CTXT3 - Column heading column 3

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CTXT4 - Column heading column 4

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CTXT5 - Column heading column 5

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CTXT6 - Column heading column 6

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CTXT7 - Column heading column 7

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CTXT8 - Column heading column 8

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CTXT9 - Column heading column 9

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)

MODIF - Interaction control

Data type:
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

OUTFT - Control of the output size

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

COL12 - Color 2 of key figure 1

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)

ROWLN - Line Height

Data type:
Default: 1
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)

SHOW_LINES - Internal use only

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)

STITL - Height of the title

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 - Internal use only

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

TTEXT - Title of the pushbutton graphic

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

VAL11 - Threshold value 1 of key figure 1

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

COL13 - Color 3 of key figure 1

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

VAL12 - Threshold value 2 of key figure 1

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

VAL13 - Threshold value 3 of key figure 1

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

VAL14 - Threshold value 4 of key figure 1

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

VAL15 - Threshold value 5 of key figure 1

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

VALD1 - Minimum value of key figure 1

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

VALU1 - Maximum value of key figure 1

Data type:
Default: 100
Optional: Yes
Call by Reference: No ( called with pass by value option)

VTXT1 - Description of key figure 1

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

WINID - Dialog parameters

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)

COL14 - Color 4 of key figure 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)

COL15 - Color 5 of key figure 1

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

COL16 - Color 6 of key figure 1

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

COLLN - Column width

Data type:
Default: 15
Optional: Yes
Call by Reference: No ( called with pass by value option)

CTXT1 - Column heading column 1

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CTXT2 - Column heading column 2

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for GRAPH_BUTTON_MATRIX

B_TYP - BMAT message type

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

COLNR - Number of the selected column

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

CUA_ID -

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)

ROWNR - Number of the selected line

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_BUTTON_MATRIX

ATTR - Internal table with attributes

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DATA - Internal table of the data

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SIZE - Internal table with size specifications

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for GRAPH_BUTTON_MATRIX 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_attr  TYPE STANDARD TABLE OF STRING, "   
lv_b_typ  TYPE STRING, "   
lv_col11  TYPE STRING, "   SPACE
lv_ctxt3  TYPE STRING, "   SPACE
lv_ctxt4  TYPE STRING, "   SPACE
lv_ctxt5  TYPE STRING, "   SPACE
lv_ctxt6  TYPE STRING, "   SPACE
lv_ctxt7  TYPE STRING, "   SPACE
lv_ctxt8  TYPE STRING, "   SPACE
lv_ctxt9  TYPE STRING, "   SPACE
lv_inbuf  TYPE STRING, "   SPACE
lv_modif  TYPE STRING, "   'X'
lv_outft  TYPE STRING, "   SPACE
lt_data  TYPE STANDARD TABLE OF STRING, "   
lv_col12  TYPE STRING, "   SPACE
lv_colnr  TYPE STRING, "   
lv_pwdid  TYPE STRING, "   SPACE
lv_rowln  TYPE STRING, "   1
lv_set_focus  TYPE STRING, "   'x'
lv_show_lines  TYPE STRING, "   SPACE
lv_stat  TYPE STRING, "   SPACE
lv_stitl  TYPE STRING, "   SPACE
lv_super  TYPE STRING, "   SPACE
lv_timer  TYPE STRING, "   0
lv_ttext  TYPE STRING, "   SPACE
lv_val11  TYPE STRING, "   0
lt_size  TYPE STANDARD TABLE OF STRING, "   
lv_col13  TYPE STRING, "   SPACE
lv_cua_id  TYPE STRING, "   
lv_val12  TYPE STRING, "   0
lv_val13  TYPE STRING, "   0
lv_val14  TYPE STRING, "   0
lv_val15  TYPE STRING, "   0
lv_vald1  TYPE STRING, "   0
lv_valu1  TYPE STRING, "   100
lv_vtxt1  TYPE STRING, "   SPACE
lv_winid  TYPE STRING, "   SPACE
lv_winpos  TYPE STRING, "   SPACE
lv_winszx  TYPE STRING, "   '50'
lv_col14  TYPE STRING, "   SPACE
lv_m_typ  TYPE STRING, "   
lv_winszy  TYPE STRING, "   '50'
lv_col15  TYPE STRING, "   SPACE
lv_rbuff  TYPE STRING, "   
lv_col16  TYPE STRING, "   SPACE
lv_rownr  TYPE STRING, "   
lv_colln  TYPE STRING, "   15
lv_rwnid  TYPE STRING, "   
lv_ctxt1  TYPE STRING, "   SPACE
lv_ctxt2  TYPE STRING. "   SPACE

  CALL FUNCTION 'GRAPH_BUTTON_MATRIX'  "Display pushbutton matrix
    EXPORTING
         COL11 = lv_col11
         CTXT3 = lv_ctxt3
         CTXT4 = lv_ctxt4
         CTXT5 = lv_ctxt5
         CTXT6 = lv_ctxt6
         CTXT7 = lv_ctxt7
         CTXT8 = lv_ctxt8
         CTXT9 = lv_ctxt9
         INBUF = lv_inbuf
         MODIF = lv_modif
         OUTFT = lv_outft
         COL12 = lv_col12
         PWDID = lv_pwdid
         ROWLN = lv_rowln
         SET_FOCUS = lv_set_focus
         SHOW_LINES = lv_show_lines
         STAT = lv_stat
         STITL = lv_stitl
         SUPER = lv_super
         TIMER = lv_timer
         TTEXT = lv_ttext
         VAL11 = lv_val11
         COL13 = lv_col13
         VAL12 = lv_val12
         VAL13 = lv_val13
         VAL14 = lv_val14
         VAL15 = lv_val15
         VALD1 = lv_vald1
         VALU1 = lv_valu1
         VTXT1 = lv_vtxt1
         WINID = lv_winid
         WINPOS = lv_winpos
         WINSZX = lv_winszx
         COL14 = lv_col14
         WINSZY = lv_winszy
         COL15 = lv_col15
         COL16 = lv_col16
         COLLN = lv_colln
         CTXT1 = lv_ctxt1
         CTXT2 = lv_ctxt2
    IMPORTING
         B_TYP = lv_b_typ
         COLNR = lv_colnr
         CUA_ID = lv_cua_id
         M_TYP = lv_m_typ
         RBUFF = lv_rbuff
         ROWNR = lv_rownr
         RWNID = lv_rwnid
    TABLES
         ATTR = lt_attr
         DATA = lt_data
         SIZE = lt_size
. " GRAPH_BUTTON_MATRIX




ABAP code using 7.40 inline data declarations to call FM GRAPH_BUTTON_MATRIX

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_col11) = ' '.
 
DATA(ld_ctxt3) = ' '.
 
DATA(ld_ctxt4) = ' '.
 
DATA(ld_ctxt5) = ' '.
 
DATA(ld_ctxt6) = ' '.
 
DATA(ld_ctxt7) = ' '.
 
DATA(ld_ctxt8) = ' '.
 
DATA(ld_ctxt9) = ' '.
 
DATA(ld_inbuf) = ' '.
 
DATA(ld_modif) = 'X'.
 
DATA(ld_outft) = ' '.
 
 
DATA(ld_col12) = ' '.
 
 
DATA(ld_pwdid) = ' '.
 
DATA(ld_rowln) = 1.
 
DATA(ld_set_focus) = 'x'.
 
DATA(ld_show_lines) = ' '.
 
DATA(ld_stat) = ' '.
 
DATA(ld_stitl) = ' '.
 
DATA(ld_super) = ' '.
 
 
DATA(ld_ttext) = ' '.
 
 
 
DATA(ld_col13) = ' '.
 
 
 
 
 
 
 
DATA(ld_valu1) = 100.
 
DATA(ld_vtxt1) = ' '.
 
DATA(ld_winid) = ' '.
 
DATA(ld_winpos) = ' '.
 
DATA(ld_winszx) = '50'.
 
DATA(ld_col14) = ' '.
 
 
DATA(ld_winszy) = '50'.
 
DATA(ld_col15) = ' '.
 
 
DATA(ld_col16) = ' '.
 
 
DATA(ld_colln) = 15.
 
 
DATA(ld_ctxt1) = ' '.
 
DATA(ld_ctxt2) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!