Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

interactive Graph

Former Member
0 Kudos

Hi all,

i am displaying 4 different graphs on custom screen using splitter (custom container). now i have to get the click functionality so that i can display the graph information in a list....

How to get this functionality...Help us...

Thanks in advance..

Sri harsha

7 REPLIES 7

Former Member
0 Kudos

Hi Harsha,

Can you tell me which class you have used to display Graphs.

so that i can give you more details.

Regards

Satish

0 Kudos

hI satish,

thanks for your reply.

i am trying with cl_gui_custom_container with splitter cl_gui_splitter_container.

i will give some more details about my requirement for better understanding.

i have to display four graphs on custom screen, if i click on the graph it has to display the graph details in a list.

How we can get this.....

Regards,

Sri harsha

0 Kudos

Hey,

Try this: using 'GRAPH_MATRIX_3D'

&----


*& Report ZKAR_GRAPHS

&----


*& This program demonstrates how easy it is to generate 3D or 2D graphs,

*& simply by populating the statistical data into an internal table and

*& passing it to a Function Module.

*&

*& The Example has no imput parameters, but they can be added based on

*& the requirement

&----


*& Written by: Karthik

*& URL: http://allaboutsap.blogspot.com

&----


REPORT ZKAR_GRAPHS.

      • Internal table to hold Statistical data

DATA:

BEGIN OF IT_DATA OCCURS 0,

DATANAME(15),

QUANTITY1 TYPE I,

QUANTITY2 TYPE I,

QUANTITY3 TYPE I,

END OF IT_DATA.

      • Internal table to hold Options

DATA:

BEGIN OF IT_OPTIONS OCCURS 0,

OPTION(20),

END OF IT_OPTIONS.

      • Populating statistics data

IT_DATA-DATANAME = 'India'.

IT_DATA-QUANTITY1 = 55.

IT_DATA-QUANTITY2 = 62.

IT_DATA-QUANTITY3 = 59.

APPEND IT_DATA.

IT_DATA-DATANAME = 'UK'.

IT_DATA-QUANTITY1 = 35.

IT_DATA-QUANTITY2 = 80.

IT_DATA-QUANTITY3 = 44.

APPEND IT_DATA.

IT_DATA-DATANAME = 'USA'.

IT_DATA-QUANTITY1 = 18.

IT_DATA-QUANTITY2 = 80.

IT_DATA-QUANTITY3 = 19.

APPEND IT_DATA.

      • Call FM to generate graph for the stats

CALL FUNCTION 'GRAPH_MATRIX_3D'

EXPORTING

COL1 = 'IT Professionals'

COL2 = 'Doctors'

COL3 = 'Engineers'

TITL = 'Professional Statistics'

TABLES

DATA = IT_DATA

OPTS = IT_OPTIONS

EXCEPTIONS

OTHERS = 1.

Reward if helpful

Regards,

Karthik

0 Kudos

hi karthik...

i am able to display the graphs... but the problem is " how get back to the program when user clicks on the graphs..."

Regards,

Sri harsha

0 Kudos

back to the program? Din get you... BTW, the BACK & EXIT buttons on the graph window take u back. (if thats wat u want)

Former Member
0 Kudos

hi, can u please suggest how u have achieved this graph. please send me a sample program if u have.

i am new to this type of graph display