GRAPH_STRU_SET_OPTIONS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name GRAPH_STRU_SET_OPTIONS into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
GSUX
Released Date:
24.05.1995
Processing type: Remote-Enabled
CALL FUNCTION 'GRAPH_STRU_SET_OPTIONS' "SAP Structural Graphics: Setting options
* EXPORTING
* force = ' ' " gsux-flag Overlap settings with user settings
* winsizex = '50' " tgsux-winsizex Window width (in % with regard to screen)
* winsizey = '50' " tgsux-winsizey Window height (in % with regard to screen)
* winposx = 'C' " tgsux-winposx Window position horizontal
* winposy = 'C' " tgsux-winposy Window position vertical
* tbsizex = '15' " tgsux-tbsizex Toolbox width (in % with regard to screen)
* tbsizey = '25' " tgsux-tbsizey Toolbox height (in % with regard to screen)
* tbposx = 'L' " tgsux-tbposx Toolbox position horizontal
* tbposy = 'T' " tgsux-tbposy Toolbox position vertical
* colshadow = '08' " tgsux-colshadow Color of shading (see TGSU5 table)
* colgrid = '06' " tgsux-colgrid Color of auxiliary lines (see TGSU5 table)
* colemph = '02' " tgsux-colemph Color of marked objects (see TGSU5 table)
* colback = '15' " tgsux-colback Color of structure background (see TGSU5 table)
* colframe = '07' " tgsux-colframe Color of frame (see TGSU5 table)
* colacttib = '09' " tgsux-colacttib Color of active title line (see TGSU5 table)
* colacttit = '00' " tgsux-colacttit Color of active title text (see TGSU5 table)
* colinactib = '08' " tgsux-colinactib Color of inactive title bar (see TGSU5 table)
* colinactit = '07' " tgsux-colinactit Color of inactive title bar (see TGSU5 table)
* defshape = '00' " tgsux-defshape Standard object form (see TGSU6 table)
* defstyle = '00' " tgsux-defstyle Standard line type (see TGSU7 table)
* defboxcol = '13' " tgsux-defboxcol Standard object box color (see TGSU5 table)
* deftextcol = '00' " tgsux-deftextcol Standard object text color (see TGSU5 table)
* deflinecol = '10' " tgsux-deflinecol Standard line color (see TGSU5 table)
* printmode = '1' " tgsux-printmode Print: Printing mode
* destin = '2' " tgsux-destin Print: Target
* numeration = ' ' " tgsux-numeration Print: Number (' '/'X')
* output = 'sap.psc' " tgsux-output Print: Output
* frame = '0' " tgsux-frame Print: Frame
* export = '00' " tgsux-export Print: Output format (see TGSU1 table)
* pagformat = '02' " tgsux-pagformat Print: Page format (see table TGSU2)
* orient = '0' " tgsux-orient Print: Alignment
* unit = '1' " tgsux-unit Print: Unit
* printablex = 21 " tgsux-printablex Print: Width of printable area
* printabley = 29 " tgsux-printabley Print: Height of printable area
* borderx = 1 " tgsux-borderx Print: Horizontal edge
* bordery = 1 " tgsux-bordery Print: Vertical edge
* psofont = '01' " tgsux-psofont Print: Font type for objects (see table TGSU3)
* pslfont = '01' " tgsux-pslfont Print: Font type for lines (see table TGSU3)
* psofontsz = '12' " tgsux-psofontsz Print: Font size for objects
* pslfontsz = '08' " tgsux-pslfontsz Print: Font size for lines
* savesettgs = 'X' " tgsux-savesettgs
* secasesens = ' ' " tgsux-secasesens Search: Upper/lower case (' '/'X')
* seremselec = ' ' " tgsux-seremselec Search: Delete previous marking (' '/'X')
* sosortmode = '0' " tgsux-sosortmode Sort: Sorting
* sotextmode = '1' " tgsux-sotextmode Sort: Type of text
* soorder = '0' " tgsux-soorder Sort: Order
* depth = '00' " tgsuv-depth Display depth ('0' = all)
* display = '0' " tgsuv-display Display Mode
* knockon = '0' " tgsuv-knockon Subsequent mode
* represent = '0' " tgsuv-represent Display Type
* profile = ' ' " tgsuv-profile Profile
* direction = '1' " tgsuv-direction Layout: Alignment
* rotation = '000' " tgsuv-rotation Type of representation: Rotation ('0'/'90'/'180'/'360')
* grid = ' ' " tgsuv-grid Auxiliary lines (' '/'X')
* alignment = '0' " tgsuv-alignment Text alignment
* ofont = '00' " tgsuv-ofont Font type for objects (see table TGSU4)
* outerscalx = '80' " tgsuv-outerscalx Width of outer object frame (in %)
* outerscaly = '80' " tgsuv-outerscaly Height of outer object frame (in %)
* innerscalx = '70' " tgsuv-innerscalx Width of inner object frame (in %)
* innerscaly = '70' " tgsuv-innerscaly Height of inner object frame (in &)
* shadow = 'X' " tgsuv-shadow Object representation: With shading (' '/'X')
* solid = 'X' " tgsuv-solid Object representation: Filled in (' '/'X')
* linewrap = 'X' " tgsuv-linewrap Object representation: Line folding (' '/'X')
* linklook = '1' " tgsuv-linklook Line display
* lfont = '01' " tgsuv-lfont Font type for lines (see table TGSU4)
* lbutton = ' ' " tgsuv-lbutton Marking: With text (' '/'X')
* ltext = 'X' " tgsuv-ltext Marking: With button (' '/'X')
* arrows = 'X' " tgsuv-arrows Markings: With arrow (' '/'X')
* grouptexts = 'X' " tgsuv-grouptexts Combine same texts (' '/'X')
. " GRAPH_STRU_SET_OPTIONS
The ABAP code below is a full code listing to execute function module GRAPH_STRU_SET_OPTIONS including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
DATA(ld_force) = some text here
SELECT single WINSIZEX
FROM TGSUX
INTO @DATA(ld_winsizex).
SELECT single WINSIZEY
FROM TGSUX
INTO @DATA(ld_winsizey).
SELECT single WINPOSX
FROM TGSUX
INTO @DATA(ld_winposx).
SELECT single WINPOSY
FROM TGSUX
INTO @DATA(ld_winposy).
SELECT single TBSIZEX
FROM TGSUX
INTO @DATA(ld_tbsizex).
SELECT single TBSIZEY
FROM TGSUX
INTO @DATA(ld_tbsizey).
SELECT single TBPOSX
FROM TGSUX
INTO @DATA(ld_tbposx).
SELECT single TBPOSY
FROM TGSUX
INTO @DATA(ld_tbposy).
SELECT single COLSHADOW
FROM TGSUX
INTO @DATA(ld_colshadow).
SELECT single COLGRID
FROM TGSUX
INTO @DATA(ld_colgrid).
SELECT single COLEMPH
FROM TGSUX
INTO @DATA(ld_colemph).
SELECT single COLBACK
FROM TGSUX
INTO @DATA(ld_colback).
SELECT single COLFRAME
FROM TGSUX
INTO @DATA(ld_colframe).
SELECT single COLACTTIB
FROM TGSUX
INTO @DATA(ld_colacttib).
SELECT single COLACTTIT
FROM TGSUX
INTO @DATA(ld_colacttit).
SELECT single COLINACTIB
FROM TGSUX
INTO @DATA(ld_colinactib).
SELECT single COLINACTIT
FROM TGSUX
INTO @DATA(ld_colinactit).
SELECT single DEFSHAPE
FROM TGSUX
INTO @DATA(ld_defshape).
SELECT single DEFSTYLE
FROM TGSUX
INTO @DATA(ld_defstyle).
SELECT single DEFBOXCOL
FROM TGSUX
INTO @DATA(ld_defboxcol).
SELECT single DEFTEXTCOL
FROM TGSUX
INTO @DATA(ld_deftextcol).
SELECT single DEFLINECOL
FROM TGSUX
INTO @DATA(ld_deflinecol).
SELECT single PRINTMODE
FROM TGSUX
INTO @DATA(ld_printmode).
SELECT single DESTIN
FROM TGSUX
INTO @DATA(ld_destin).
SELECT single NUMERATION
FROM TGSUX
INTO @DATA(ld_numeration).
SELECT single OUTPUT
FROM TGSUX
INTO @DATA(ld_output).
SELECT single FRAME
FROM TGSUX
INTO @DATA(ld_frame).
SELECT single EXPORT
FROM TGSUX
INTO @DATA(ld_export).
SELECT single PAGFORMAT
FROM TGSUX
INTO @DATA(ld_pagformat).
SELECT single ORIENT
FROM TGSUX
INTO @DATA(ld_orient).
SELECT single UNIT
FROM TGSUX
INTO @DATA(ld_unit).
SELECT single PRINTABLEX
FROM TGSUX
INTO @DATA(ld_printablex).
SELECT single PRINTABLEY
FROM TGSUX
INTO @DATA(ld_printabley).
SELECT single BORDERX
FROM TGSUX
INTO @DATA(ld_borderx).
SELECT single BORDERY
FROM TGSUX
INTO @DATA(ld_bordery).
SELECT single PSOFONT
FROM TGSUX
INTO @DATA(ld_psofont).
SELECT single PSLFONT
FROM TGSUX
INTO @DATA(ld_pslfont).
SELECT single PSOFONTSZ
FROM TGSUX
INTO @DATA(ld_psofontsz).
SELECT single PSLFONTSZ
FROM TGSUX
INTO @DATA(ld_pslfontsz).
SELECT single SAVESETTGS
FROM TGSUX
INTO @DATA(ld_savesettgs).
SELECT single SECASESENS
FROM TGSUX
INTO @DATA(ld_secasesens).
SELECT single SEREMSELEC
FROM TGSUX
INTO @DATA(ld_seremselec).
SELECT single SOSORTMODE
FROM TGSUX
INTO @DATA(ld_sosortmode).
SELECT single SOTEXTMODE
FROM TGSUX
INTO @DATA(ld_sotextmode).
SELECT single SOORDER
FROM TGSUX
INTO @DATA(ld_soorder).
SELECT single DEPTH
FROM TGSUV
INTO @DATA(ld_depth).
SELECT single DISPLAY
FROM TGSUV
INTO @DATA(ld_display).
SELECT single KNOCKON
FROM TGSUV
INTO @DATA(ld_knockon).
SELECT single REPRESENT
FROM TGSUV
INTO @DATA(ld_represent).
SELECT single PROFILE
FROM TGSUV
INTO @DATA(ld_profile).
SELECT single DIRECTION
FROM TGSUV
INTO @DATA(ld_direction).
SELECT single ROTATION
FROM TGSUV
INTO @DATA(ld_rotation).
SELECT single GRID
FROM TGSUV
INTO @DATA(ld_grid).
SELECT single ALIGNMENT
FROM TGSUV
INTO @DATA(ld_alignment).
SELECT single OFONT
FROM TGSUV
INTO @DATA(ld_ofont).
SELECT single OUTERSCALX
FROM TGSUV
INTO @DATA(ld_outerscalx).
SELECT single OUTERSCALY
FROM TGSUV
INTO @DATA(ld_outerscaly).
SELECT single INNERSCALX
FROM TGSUV
INTO @DATA(ld_innerscalx).
SELECT single INNERSCALY
FROM TGSUV
INTO @DATA(ld_innerscaly).
SELECT single SHADOW
FROM TGSUV
INTO @DATA(ld_shadow).
SELECT single SOLID
FROM TGSUV
INTO @DATA(ld_solid).
SELECT single LINEWRAP
FROM TGSUV
INTO @DATA(ld_linewrap).
SELECT single LINKLOOK
FROM TGSUV
INTO @DATA(ld_linklook).
SELECT single LFONT
FROM TGSUV
INTO @DATA(ld_lfont).
SELECT single LBUTTON
FROM TGSUV
INTO @DATA(ld_lbutton).
SELECT single LTEXT
FROM TGSUV
INTO @DATA(ld_ltext).
SELECT single ARROWS
FROM TGSUV
INTO @DATA(ld_arrows).
SELECT single GROUPTEXTS
FROM TGSUV
INTO @DATA(ld_grouptexts).
. CALL FUNCTION 'GRAPH_STRU_SET_OPTIONS' * EXPORTING * force = ld_force * winsizex = ld_winsizex * winsizey = ld_winsizey * winposx = ld_winposx * winposy = ld_winposy * tbsizex = ld_tbsizex * tbsizey = ld_tbsizey * tbposx = ld_tbposx * tbposy = ld_tbposy * colshadow = ld_colshadow * colgrid = ld_colgrid * colemph = ld_colemph * colback = ld_colback * colframe = ld_colframe * colacttib = ld_colacttib * colacttit = ld_colacttit * colinactib = ld_colinactib * colinactit = ld_colinactit * defshape = ld_defshape * defstyle = ld_defstyle * defboxcol = ld_defboxcol * deftextcol = ld_deftextcol * deflinecol = ld_deflinecol * printmode = ld_printmode * destin = ld_destin * numeration = ld_numeration * output = ld_output * frame = ld_frame * export = ld_export * pagformat = ld_pagformat * orient = ld_orient * unit = ld_unit * printablex = ld_printablex * printabley = ld_printabley * borderx = ld_borderx * bordery = ld_bordery * psofont = ld_psofont * pslfont = ld_pslfont * psofontsz = ld_psofontsz * pslfontsz = ld_pslfontsz * savesettgs = ld_savesettgs * secasesens = ld_secasesens * seremselec = ld_seremselec * sosortmode = ld_sosortmode * sotextmode = ld_sotextmode * soorder = ld_soorder * depth = ld_depth * display = ld_display * knockon = ld_knockon * represent = ld_represent * profile = ld_profile * direction = ld_direction * rotation = ld_rotation * grid = ld_grid * alignment = ld_alignment * ofont = ld_ofont * outerscalx = ld_outerscalx * outerscaly = ld_outerscaly * innerscalx = ld_innerscalx * innerscaly = ld_innerscaly * shadow = ld_shadow * solid = ld_solid * linewrap = ld_linewrap * linklook = ld_linklook * lfont = ld_lfont * lbutton = ld_lbutton * ltext = ld_ltext * arrows = ld_arrows * grouptexts = ld_grouptexts . " GRAPH_STRU_SET_OPTIONS
IF SY-SUBRC EQ 0. "All OK ENDIF.
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_force | TYPE GSUX-FLAG , |
| ld_winsizex | TYPE TGSUX-WINSIZEX , |
| ld_winsizey | TYPE TGSUX-WINSIZEY , |
| ld_winposx | TYPE TGSUX-WINPOSX , |
| ld_winposy | TYPE TGSUX-WINPOSY , |
| ld_tbsizex | TYPE TGSUX-TBSIZEX , |
| ld_tbsizey | TYPE TGSUX-TBSIZEY , |
| ld_tbposx | TYPE TGSUX-TBPOSX , |
| ld_tbposy | TYPE TGSUX-TBPOSY , |
| ld_colshadow | TYPE TGSUX-COLSHADOW , |
| ld_colgrid | TYPE TGSUX-COLGRID , |
| ld_colemph | TYPE TGSUX-COLEMPH , |
| ld_colback | TYPE TGSUX-COLBACK , |
| ld_colframe | TYPE TGSUX-COLFRAME , |
| ld_colacttib | TYPE TGSUX-COLACTTIB , |
| ld_colacttit | TYPE TGSUX-COLACTTIT , |
| ld_colinactib | TYPE TGSUX-COLINACTIB , |
| ld_colinactit | TYPE TGSUX-COLINACTIT , |
| ld_defshape | TYPE TGSUX-DEFSHAPE , |
| ld_defstyle | TYPE TGSUX-DEFSTYLE , |
| ld_defboxcol | TYPE TGSUX-DEFBOXCOL , |
| ld_deftextcol | TYPE TGSUX-DEFTEXTCOL , |
| ld_deflinecol | TYPE TGSUX-DEFLINECOL , |
| ld_printmode | TYPE TGSUX-PRINTMODE , |
| ld_destin | TYPE TGSUX-DESTIN , |
| ld_numeration | TYPE TGSUX-NUMERATION , |
| ld_output | TYPE TGSUX-OUTPUT , |
| ld_frame | TYPE TGSUX-FRAME , |
| ld_export | TYPE TGSUX-EXPORT , |
| ld_pagformat | TYPE TGSUX-PAGFORMAT , |
| ld_orient | TYPE TGSUX-ORIENT , |
| ld_unit | TYPE TGSUX-UNIT , |
| ld_printablex | TYPE TGSUX-PRINTABLEX , |
| ld_printabley | TYPE TGSUX-PRINTABLEY , |
| ld_borderx | TYPE TGSUX-BORDERX , |
| ld_bordery | TYPE TGSUX-BORDERY , |
| ld_psofont | TYPE TGSUX-PSOFONT , |
| ld_pslfont | TYPE TGSUX-PSLFONT , |
| ld_psofontsz | TYPE TGSUX-PSOFONTSZ , |
| ld_pslfontsz | TYPE TGSUX-PSLFONTSZ , |
| ld_savesettgs | TYPE TGSUX-SAVESETTGS , |
| ld_secasesens | TYPE TGSUX-SECASESENS , |
| ld_seremselec | TYPE TGSUX-SEREMSELEC , |
| ld_sosortmode | TYPE TGSUX-SOSORTMODE , |
| ld_sotextmode | TYPE TGSUX-SOTEXTMODE , |
| ld_soorder | TYPE TGSUX-SOORDER , |
| ld_depth | TYPE TGSUV-DEPTH , |
| ld_display | TYPE TGSUV-DISPLAY , |
| ld_knockon | TYPE TGSUV-KNOCKON , |
| ld_represent | TYPE TGSUV-REPRESENT , |
| ld_profile | TYPE TGSUV-PROFILE , |
| ld_direction | TYPE TGSUV-DIRECTION , |
| ld_rotation | TYPE TGSUV-ROTATION , |
| ld_grid | TYPE TGSUV-GRID , |
| ld_alignment | TYPE TGSUV-ALIGNMENT , |
| ld_ofont | TYPE TGSUV-OFONT , |
| ld_outerscalx | TYPE TGSUV-OUTERSCALX , |
| ld_outerscaly | TYPE TGSUV-OUTERSCALY , |
| ld_innerscalx | TYPE TGSUV-INNERSCALX , |
| ld_innerscaly | TYPE TGSUV-INNERSCALY , |
| ld_shadow | TYPE TGSUV-SHADOW , |
| ld_solid | TYPE TGSUV-SOLID , |
| ld_linewrap | TYPE TGSUV-LINEWRAP , |
| ld_linklook | TYPE TGSUV-LINKLOOK , |
| ld_lfont | TYPE TGSUV-LFONT , |
| ld_lbutton | TYPE TGSUV-LBUTTON , |
| ld_ltext | TYPE TGSUV-LTEXT , |
| ld_arrows | TYPE TGSUV-ARROWS , |
| ld_grouptexts | TYPE TGSUV-GROUPTEXTS . |
This function module allows you to initially define all settings
available in SAP Structural Graphics. To do this, the function module
...See here for full SAP fm documentation
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name GRAPH_STRU_SET_OPTIONS or its description.
GRAPH_STRU_SET_OPTIONS - SAP Structural Graphics: Setting options GRAPH_STRU_SET_MESSAGE - SAP Structural Graphics: Set EOD message GRAPH_STRU_SET_DISPLAY - SAP Structural Graphics: Set text table GRAPH_STRUCTURAL - SAP Structural Graphics: ABAP/4 Interface GRAPH_SNUM_TAB - Interactive dialog box with value table and default buttons GRAPH_SET_FOCUS - Set focus on existing graphics program