2009 Jul 06 9:31 PM
Hi Everybody,
Can anyone tell me what is the roll of table parameter opts while using the function module GRAPH_MATRIX_3D.
I have seen a code to pass a blank internal table having a character field to that parameter. The whole scenario is not clear tome.
SEEKING FOR YOUR HELP.....
2009 Jul 06 11:03 PM
This is what its written in the FM documentation: ( try to read it )
Options table
This parameter contains a table of display options. Setting the OPTS parameter allows the ABAP program to determine the appearance of the generated graph. You can set any display option available to the online user in the SAP Business Graphics menus.
Setting options in this table only determines the initial appearance of the display. The online user is still free to reset these options once the display appears on the monitor screen.
Each element in the OPTS table is a string with the format:
OptionKey = Value
The following table provides all the names for options (OptionKey) and what values (Value) are allowed. Yes-no options (marked "N/X" in the table) can be turned on with the value 'X' and off with the value 'N'.
Not all options work in all cases. For example, for a 2D graph, you can not request the 3D or Selection views as initial views. For more detailed information about these options, see the following documentation:
BC SAP Graphics: User's Guide
Option keys and values for using the OPTS table parameter
2009 Sep 09 10:14 AM
Hi,
when graph is displayed yu can chage its mode of view(in 2D ,3D etc...). some time you need to view the graph as 2D in the first time. like wise lots of options are avilable in that table.
It the 'opts' gave the functionality
TYPES : BEGIN OF ty_opttable,
options(30) TYPE c,
END OF ty_opttable.
DATA : it_opttable TYPE STANDARD TABLE OF ty_opttable,
wa_opttable TYPE ty_opttable.
wa_opttable-options = 'FISTK2 = X'.
APPEND wa_opttable TO it_opttable.
wa_opttable-options = 'FIFRST = 3D'.
APPEND wa_opttable TO it_opttable.
wa_opttable-options = 'P3LINS = X'.
APPEND wa_opttable TO it_opttable.
wa_opttable-options = 'P3SIDE = 8'.
CALL FUNCTION 'GRAPH_MATRIX_3D'
EXPORTING
col1 = 'XXXXX'
col2 = 'XXXXX'
titl = 'XXXXX'
dim1 = 'XXXXX'
dim2 = 'XXXXX''
TABLES
data = lt_xxxxx
opts = it_opttable
EXCEPTIONS
OTHERS = 1.
if you got the solution, please close the thread. 🐵