Application Development and Automation 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: 
Read only

How to present a graph in a program

Former Member
0 Likes
1,069

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
887

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.

6 REPLIES 6
Read only

Former Member
0 Likes
887

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

Read only

Former Member
0 Likes
887

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

Read only

Former Member
0 Likes
887

Hi,

Please check CL_GUI_GRAPHICS class, I hope you can get some examples also.

Regards

Bhupal Reddy

Read only

Former Member
0 Likes
887

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.

Read only

0 Likes
887

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

Read only

Former Member
0 Likes
888

In alv reuse_alv_grid_display also u can experiment with the graph option in the output layout display