SAP GRAPH_PORT Function Module for Calling up SAP portfolio graphics









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

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



Function GRAPH_PORT 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_PORT'"Calling up SAP portfolio graphics
EXPORTING
* FRM_BACKCLR = ' ' "Background color in the text
* OBJ_SVAL = ' ' "Column number of the size parameter
* OBJ_XARR = ' ' "Column number of the parameter for subsequent arrow / X
* OBJ_XVAL = ' ' "Column number of the parameter for position / X
* OBJ_YARR = ' ' "Column number of the parameter for subsequent arrow / Y
* OBJ_YVAL = ' ' "Column number of the parameter for item / Y
* PWDID = ' ' "
* SET_FOCUS = 'x' "Set focus during reload
* SO_CONTENTS = ' ' "Subtitle of generated SAPoffice document
* SO_RECEIVER = ' ' "Recipient of generated SAPoffice object
* SO_SEND = ' ' "Graphic storage in SAPoffice instead of display
* FRM_FRAMCLR = ' ' "Color of the coordinate frame in the text
* SO_TITLE = ' ' "Title of the generated SAPoffice document
* STAT = ' ' "
* SUPER = ' ' "
* TITLE_BACKCLR = ' ' "Background color for the heading in text
* TITLE_INFO = ' ' "Secondary heading, up to 50 characters
* TITLE_SIZE = ' ' "Size of the title text ('1' - '5')
* TITLE_TEXTCLR = ' ' "Text color of the heading in text
* TITLE_TITLE = ' ' "Main heading, up to 50 characters
* TITLE_WINDOW = ' ' "
* WINID = ' ' "
* FRM_GRIDX = ' ' "Coordinate grid: Number of intervals / X
* WINPOS = ' ' "Position of the output window (1..9)
* WINSZX = '50' "Size of the output window in X-direction (%)
* WINSZY = '50' "Size of the output window in Y-direction (%)
* AUTO_CMD_1 = ' ' "
* AUTO_CMD_2 = ' ' "
* FRM_GRIDY = ' ' "Coordinate grid: Number of intervals / Y
* FRM_SCALCLR = ' ' "Color of the coordinate grid in text
* FRM_SCALMOD = ' ' "Line type for lines of the coordinate grid
* FRM_SHADOW = ' ' "(Deepened) 3D effect for coordinate borders
* INBUF = ' ' "
* OBJ_SIZE = ' ' "Relative size (in %) of the biggest object

IMPORTING
CUA_ID = "
M_TYP = "
OBJ_ID = "
P_TYP = "
RBUFF = "
RWNID = "

TABLES
AREA_TAB = "Table for marked areas
AXIS = "
COL_TEXT = "Table for column headings
OBJT = "
VALUES = "
* LINES = "Table for drawing optional lines

EXCEPTIONS
INV_AREA_ALIGN = 1 INV_TITLE_CLR = 10 INV_WINID = 11 INV_AREA_CLR = 2 INV_AREA_FORM = 3 INV_AXIS_CLR = 4 INV_AXIS_COUNT = 5 INV_AXIS_POSITION = 6 INV_FRAM_CLR = 7 INV_FRAM_SCALMOD = 8 INV_OBJT_CLR = 9
.



IMPORTING Parameters details for GRAPH_PORT

FRM_BACKCLR - Background color in the text

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

OBJ_SVAL - Column number of the size parameter

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

OBJ_XARR - Column number of the parameter for subsequent arrow / X

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

OBJ_XVAL - Column number of the parameter for position / X

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

OBJ_YARR - Column number of the parameter for subsequent arrow / Y

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

OBJ_YVAL - Column number of the parameter for item / Y

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

PWDID -

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)

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)

FRM_FRAMCLR - Color of the coordinate frame in the text

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 -

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

SUPER -

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

TITLE_BACKCLR - Background color for the heading in text

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

TITLE_INFO - Secondary heading, up to 50 characters

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

TITLE_SIZE - Size of the title text ('1' - '5')

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

TITLE_TEXTCLR - Text color of the heading in text

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

TITLE_TITLE - Main heading, up to 50 characters

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

TITLE_WINDOW -

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)

FRM_GRIDX - Coordinate grid: Number of intervals / X

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

WINPOS - Position of the output window (1..9)

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

WINSZX - Size of the output window in X-direction (%)

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

WINSZY - Size of the output window in Y-direction (%)

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

AUTO_CMD_1 -

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

AUTO_CMD_2 -

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

FRM_GRIDY - Coordinate grid: Number of intervals / Y

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

FRM_SCALCLR - Color of the coordinate grid in text

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

FRM_SCALMOD - Line type for lines of the coordinate grid

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

FRM_SHADOW - (Deepened) 3D effect for coordinate borders

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

INBUF -

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

OBJ_SIZE - Relative size (in %) of the biggest object

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

EXPORTING Parameters details for GRAPH_PORT

CUA_ID -

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

M_TYP -

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

OBJ_ID -

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

P_TYP -

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

RBUFF -

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

RWNID -

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

TABLES Parameters details for GRAPH_PORT

AREA_TAB - Table for marked areas

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

AXIS -

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

COL_TEXT - Table for column headings

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

OBJT -

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

VALUES -

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

LINES - Table for drawing optional lines

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

EXCEPTIONS details

INV_AREA_ALIGN - Invalid value for ALIGN in table AREA_TAB

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

INV_TITLE_CLR - Invalid color value for parameter TITLE_xxx

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

INV_WINID - The value for WINID is not correct

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

INV_AREA_CLR - Invalid color value in table AREA_TAB

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

INV_AREA_FORM - Invalid value for FORM in table AREA_TAB

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

INV_AXIS_CLR - Invalid color value in table AXIS

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

INV_AXIS_COUNT - Too many axes (more than 4)

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

INV_AXIS_POSITION - Invalid value for position in table AXIS

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

INV_FRAM_CLR - Invalid color value for the parameter FRM_xxx

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

INV_FRAM_SCALMOD - Invalid value for FRM_SCALMOD

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

INV_OBJT_CLR - Invalid color value in table OBJT

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

Copy and paste ABAP code example for GRAPH_PORT 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:
lv_cua_id  TYPE STRING, "   
lt_area_tab  TYPE STANDARD TABLE OF GPOAREA, "   
lv_frm_backclr  TYPE GPOAREA, "   SPACE
lv_inv_area_align  TYPE GPOAREA, "   
lv_obj_sval  TYPE GPOAREA, "   SPACE
lv_inv_title_clr  TYPE GPOAREA, "   
lv_obj_xarr  TYPE GPOAREA, "   SPACE
lv_inv_winid  TYPE GPOAREA, "   
lv_obj_xval  TYPE GPOAREA, "   SPACE
lv_obj_yarr  TYPE GPOAREA, "   SPACE
lv_obj_yval  TYPE GPOAREA, "   SPACE
lv_pwdid  TYPE GPOAREA, "   SPACE
lv_set_focus  TYPE GPOAREA, "   'x'
lv_so_contents  TYPE GPOAREA, "   SPACE
lv_so_receiver  TYPE GPOAREA, "   SPACE
lv_so_send  TYPE GPOAREA, "   SPACE
lt_axis  TYPE STANDARD TABLE OF GPOAXIS, "   
lv_m_typ  TYPE GPOAXIS, "   
lv_frm_framclr  TYPE GPOAXIS, "   SPACE
lv_inv_area_clr  TYPE GPOAXIS, "   
lv_so_title  TYPE GPOAXIS, "   SPACE
lv_stat  TYPE GPOAXIS, "   SPACE
lv_super  TYPE GPOAXIS, "   SPACE
lv_title_backclr  TYPE GPOAXIS, "   SPACE
lv_title_info  TYPE GPOAXIS, "   SPACE
lv_title_size  TYPE GPOAXIS, "   SPACE
lv_title_textclr  TYPE GPOAXIS, "   SPACE
lv_title_title  TYPE GPOAXIS, "   SPACE
lv_title_window  TYPE GPOAXIS, "   SPACE
lv_winid  TYPE GPOAXIS, "   SPACE
lv_obj_id  TYPE GPOAXIS, "   
lt_col_text  TYPE STANDARD TABLE OF GPOAXIS, "   
lv_frm_gridx  TYPE GPOAXIS, "   SPACE
lv_inv_area_form  TYPE GPOAXIS, "   
lv_winpos  TYPE GPOAXIS, "   SPACE
lv_winszx  TYPE GPOAXIS, "   '50'
lv_winszy  TYPE GPOAXIS, "   '50'
lv_auto_cmd_1  TYPE GPOAXIS, "   SPACE
lv_auto_cmd_2  TYPE GPOAXIS, "   SPACE
lt_objt  TYPE STANDARD TABLE OF GPOOBJT, "   
lv_p_typ  TYPE GPOOBJT, "   
lv_frm_gridy  TYPE GPOOBJT, "   SPACE
lv_inv_axis_clr  TYPE GPOOBJT, "   
lv_rbuff  TYPE GPOOBJT, "   
lt_values  TYPE STANDARD TABLE OF GPOOBJT, "   
lv_frm_scalclr  TYPE GPOOBJT, "   SPACE
lv_inv_axis_count  TYPE GPOOBJT, "   
lt_lines  TYPE STANDARD TABLE OF GPOLINE, "   
lv_rwnid  TYPE GPOLINE, "   
lv_frm_scalmod  TYPE GPOLINE, "   SPACE
lv_inv_axis_position  TYPE GPOLINE, "   
lv_frm_shadow  TYPE GPOLINE, "   SPACE
lv_inv_fram_clr  TYPE GPOLINE, "   
lv_inbuf  TYPE GPOLINE, "   SPACE
lv_inv_fram_scalmod  TYPE GPOLINE, "   
lv_obj_size  TYPE GPOLINE, "   SPACE
lv_inv_objt_clr  TYPE GPOLINE. "   

  CALL FUNCTION 'GRAPH_PORT'  "Calling up SAP portfolio graphics
    EXPORTING
         FRM_BACKCLR = lv_frm_backclr
         OBJ_SVAL = lv_obj_sval
         OBJ_XARR = lv_obj_xarr
         OBJ_XVAL = lv_obj_xval
         OBJ_YARR = lv_obj_yarr
         OBJ_YVAL = lv_obj_yval
         PWDID = lv_pwdid
         SET_FOCUS = lv_set_focus
         SO_CONTENTS = lv_so_contents
         SO_RECEIVER = lv_so_receiver
         SO_SEND = lv_so_send
         FRM_FRAMCLR = lv_frm_framclr
         SO_TITLE = lv_so_title
         STAT = lv_stat
         SUPER = lv_super
         TITLE_BACKCLR = lv_title_backclr
         TITLE_INFO = lv_title_info
         TITLE_SIZE = lv_title_size
         TITLE_TEXTCLR = lv_title_textclr
         TITLE_TITLE = lv_title_title
         TITLE_WINDOW = lv_title_window
         WINID = lv_winid
         FRM_GRIDX = lv_frm_gridx
         WINPOS = lv_winpos
         WINSZX = lv_winszx
         WINSZY = lv_winszy
         AUTO_CMD_1 = lv_auto_cmd_1
         AUTO_CMD_2 = lv_auto_cmd_2
         FRM_GRIDY = lv_frm_gridy
         FRM_SCALCLR = lv_frm_scalclr
         FRM_SCALMOD = lv_frm_scalmod
         FRM_SHADOW = lv_frm_shadow
         INBUF = lv_inbuf
         OBJ_SIZE = lv_obj_size
    IMPORTING
         CUA_ID = lv_cua_id
         M_TYP = lv_m_typ
         OBJ_ID = lv_obj_id
         P_TYP = lv_p_typ
         RBUFF = lv_rbuff
         RWNID = lv_rwnid
    TABLES
         AREA_TAB = lt_area_tab
         AXIS = lt_axis
         COL_TEXT = lt_col_text
         OBJT = lt_objt
         VALUES = lt_values
         LINES = lt_lines
    EXCEPTIONS
        INV_AREA_ALIGN = 1
        INV_TITLE_CLR = 10
        INV_WINID = 11
        INV_AREA_CLR = 2
        INV_AREA_FORM = 3
        INV_AXIS_CLR = 4
        INV_AXIS_COUNT = 5
        INV_AXIS_POSITION = 6
        INV_FRAM_CLR = 7
        INV_FRAM_SCALMOD = 8
        INV_OBJT_CLR = 9
. " GRAPH_PORT




ABAP code using 7.40 inline data declarations to call FM GRAPH_PORT

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_frm_backclr) = ' '.
 
 
DATA(ld_obj_sval) = ' '.
 
 
DATA(ld_obj_xarr) = ' '.
 
 
DATA(ld_obj_xval) = ' '.
 
DATA(ld_obj_yarr) = ' '.
 
DATA(ld_obj_yval) = ' '.
 
DATA(ld_pwdid) = ' '.
 
DATA(ld_set_focus) = 'x'.
 
DATA(ld_so_contents) = ' '.
 
DATA(ld_so_receiver) = ' '.
 
DATA(ld_so_send) = ' '.
 
 
 
DATA(ld_frm_framclr) = ' '.
 
 
DATA(ld_so_title) = ' '.
 
DATA(ld_stat) = ' '.
 
DATA(ld_super) = ' '.
 
DATA(ld_title_backclr) = ' '.
 
DATA(ld_title_info) = ' '.
 
DATA(ld_title_size) = ' '.
 
DATA(ld_title_textclr) = ' '.
 
DATA(ld_title_title) = ' '.
 
DATA(ld_title_window) = ' '.
 
DATA(ld_winid) = ' '.
 
 
 
DATA(ld_frm_gridx) = ' '.
 
 
DATA(ld_winpos) = ' '.
 
DATA(ld_winszx) = '50'.
 
DATA(ld_winszy) = '50'.
 
DATA(ld_auto_cmd_1) = ' '.
 
DATA(ld_auto_cmd_2) = ' '.
 
 
 
DATA(ld_frm_gridy) = ' '.
 
 
 
 
DATA(ld_frm_scalclr) = ' '.
 
 
 
 
DATA(ld_frm_scalmod) = ' '.
 
 
DATA(ld_frm_shadow) = ' '.
 
 
DATA(ld_inbuf) = ' '.
 
 
DATA(ld_obj_size) = ' '.
 
 


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!