2006 Dec 28 1:23 PM
Hi All,
This is Sangeet.I want to place a graph , that we do manually kind of X-Y axis type , representing a break even analysis sort of representation, please can anyone guide me how should I put up a graph in a module pool program ? Is there any function module for it ?
Thanks.
Sangeet.
2006 Dec 29 12:55 PM
In alv reuse_alv_grid_display also u can experiment with the graph option in the output layout display
Hi All,
This is Sangeet.I want to place a graph , that we do manually kind of X-Y axis type , representing a break even analysis sort of representation, please can anyone guide me how should I put up a graph in a module pool program ? Is there any function module for it ?
Thanks.
Sangeet.
2006 Dec 28 1:25 PM
Check these programs
GRAPHICS_ACTIVATE_ICF_SERVICES
GRAPHICS_GIS_VIEW_DEMO
GRAPHICS_GUI_CE_DEMO
GRAPHICS_IGS_ADMIN
GRAPHICS_IGS_CE_TEST
GRAPHICS_IGS_CHART_TEST
GRAPHICS_IGS_IMGCONV_DEMO
GRAPHICS_IGS_ZIPPER_DEMO
AW_TEST_CHART
DIMSPPB_BARCHART_DEMO1
DIMSPPB_BARCHART_DEMO2
DIMSPPB_BARCHART_DEMO3
DIMSPPB_BARCHART_DEMO4
DIMSPPB_BARCHART_DEMO5
Some more function mudules,
GRAPH_2D
GRAPH_2D_MENUE
GRAPH_3D
GRAPH_BUSG_COLOR_SET
GRAPH_BUSG_MENU_SET
GRAPH_MATRIX
GRAPH_MATRIX_2D
GRAPH_MATRIX_3D
GRAPH_MATRIX_4D
Regards
Kathirvel
2006 Dec 28 1:28 PM
Hi Sangeet,
Check std program:
GRAPHICS_GIS_VIEW_DEMO
GRAPHICS_IGS_CHART_TEST GFW: Programming example of a bar chart
REPORT ZGRO_TEST.
*
TABLES: MARA.
*
DATA: BEGIN OF IGRAPH OCCURS 0,
TEXT(07),
VALUE LIKE SY-INDEX,
END OF IGRAPH.
*
START-OF-SELECTION.
*
SELECT * FROM MARA UP TO 10 ROWS.
IGRAPH-TEXT = MARA-MATNR+11(7).
IGRAPH-VALUE = SY-DBCNT.
APPEND IGRAPH.
ENDSELECT.
*
CALL FUNCTION 'GRAPH_2D'
EXPORTING
TITL = 'Muster'
VALT = 'Index'
WINSZX = '75'
WINSZY = '75'
TABLES
DATA = IGRAPH.
*
END-OF-SELECTION.
There are several FM. look at SE37 with GRAPH*
Suggest you to <b>Search in SDN with key - GRAPH</b>Will get few more useful related Posts.
Reward points if this Helps.
Manish
2006 Dec 28 1:28 PM
Hi,
Please check CL_GUI_GRAPHICS class, I hope you can get some examples also.
Regards
Bhupal Reddy
2006 Dec 28 2:09 PM
Hi Kathirvel Balakrishnan,
I'm basically a fresh learner , n perhaps why I'm finding difficulty in viewing n executing the list of programs u have sent me ,of course I've idea about the module pool programs, could you please guide me in how to execute those so that I can understand how do they work .
The programs are-
GRAPHICS_ACTIVATE_ICF_SERVICES
GRAPHICS_GIS_VIEW_DEMO
GRAPHICS_GUI_CE_DEMO
GRAPHICS_IGS_ADMIN
GRAPHICS_IGS_CE_TEST
GRAPHICS_IGS_CHART_TEST
GRAPHICS_IGS_IMGCONV_DEMO
GRAPHICS_IGS_ZIPPER_DEMO
Thanks.
2006 Dec 28 2:19 PM
Hi Swara
It is same as any normal report. For example GRAPHICS_IGS_CHART_TEST -> just execute this report. It will take to another screen with,
RFC destination - IGS_RFC_DEST
Call count - 1
If you execute again from here, it will display a chart.
Then try the TCODE - <b>GRAL</b>. This will display many example report names. Double click to execute them.
Very simple example,
[code]
REPORT zkb_graph .
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 = 'Electricity'.
itab_data-quantity1 = 55.
itab_data-quantity2 = 62.
itab_data-quantity3 = 59.
APPEND itab_data.
itab_data-dataname = 'Gas'.
itab_data-quantity1 = 35.
itab_data-quantity2 = 52.
itab_data-quantity3 = 44.
APPEND itab_data.
itab_data-dataname = 'Water'.
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 = 'Utility Expenses in US$.'
TABLES
data = itab_data
opts = itab_options
EXCEPTIONS
OTHERS = 1.
[/code]
Please try this, and let me know if did help you or not.
Regards
Kathirvel
2006 Dec 29 12:55 PM
In alv reuse_alv_grid_display also u can experiment with the graph option in the output layout display
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |