Skip to Content
author's profile photo Former Member
Former Member

GRAPH_2D : Dimension too large

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2009 at 06:27 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2009 at 08:57 AM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.