Hi All,
I have developed one alv report and gave one graphics button. When I execute the program and if total number of line item come less than or equal to 32 then graph come perfect but when line item come more than 32 then it shows error ' Dimension too large ' . Can any body help me to fix this problem.
Thanks,
Rakesh
Hi,
I understand the problem but you cannot fix it by this function module try to check the documentation of the Tables parameter as it is mentioned that only 32 rows can be accommodated in this function module.
I'm giving you the documentation available in the Function module
Table with text fields and value fields The DATA table provides the function module with the data for the graph. Each row in the table has two fields: Data text: to label the given data value in the graph. This field is a string of any length. Data value: a numeric value to be represented in the graph. This field can be of type P or F. " DATA may contain at most 32 rows.
try to search for other function module or class.
may be you will have any chance in getting another function module which can accommodate more than 32 items
check the demo programs of the graphs from the transaction GRAL you'll have some chance to solve the issue
Thanks&Regards
Sarves
Example:
REPORT ZGRAPH.
DATA: BEGIN OF ITAB_DATA OCCURS 0,
DATANAME(15),
QUANTITY1 TYPE I,
QUANTITY2 TYPE I,
QUANTITY3 TYPE I,
END OF ITAB_DATA,
BEGIN OF ITAB_OPTIONS OCCURS 0,
OPTION(20),
END OF ITAB_OPTIONS.
ITAB_DATA-DATANAME = 'Rice'.
ITAB_DATA-QUANTITY1 = 55.
ITAB_DATA-QUANTITY2 = 62.
ITAB_DATA-QUANTITY3 = 59.
APPEND ITAB_DATA.
ITAB_DATA-DATANAME = 'Wheat'.
ITAB_DATA-QUANTITY1 = 35.
ITAB_DATA-QUANTITY2 = 52.
ITAB_DATA-QUANTITY3 = 44.
APPEND ITAB_DATA.
ITAB_DATA-DATANAME = 'Sugar'.
ITAB_DATA-QUANTITY1 = 18.
ITAB_DATA-QUANTITY2 = 22.
ITAB_DATA-QUANTITY3 = 19.
APPEND ITAB_DATA.
CALL FUNCTION 'GRAPH_MATRIX_3D'
EXPORTING
COL1 = 'Jan'
COL2 = 'Feb'
COL3 = 'Mar'
TITL = 'Quantity Consumed In KG.'
TABLES
DATA = ITAB_DATA
OPTS = ITAB_OPTIONS
EXCEPTIONS
OTHERS = 1.
Add a comment