‎2007 Sep 25 12:48 PM
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
‎2007 Sep 25 5:46 PM
Hi Harsha,
Can you tell me which class you have used to display Graphs.
so that i can give you more details.
Regards
Satish
‎2007 Sep 27 8:03 AM
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
‎2007 Sep 27 8:06 AM
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
‎2007 Sep 27 8:30 AM
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
‎2007 Sep 27 8:52 AM
back to the program? Din get you... BTW, the BACK & EXIT buttons on the graph window take u back. (if thats wat u want)
‎2007 Sep 26 4:03 AM
check BCALV* and RSDEMO* in SE38 for all standard programs
ALVGRID with refresh
http://www.geocities.com/mpioud/Z_DEMO_ALV_REFRESH_BUTTON.html
ALV Group Heading
http://www.sap-img.com/fu037.htm
http://www.sap-img.com/abap/test-alv-display-with-header-footer.htm
http://www.sap-img.com/abap/sample-alv-heading-in-alv.htm
ALV all Imp
http://www.geocities.com/mpioud/Abap_programs.html
http://www.sap-img.com/fu002.htm
http://www.sapdevelopment.co.uk/reporting/alvhome.htm
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_events.htm
ALV Documentation for Field
Rewards if useful............
Minal
‎2007 Dec 26 10:39 AM
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