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

Displaying a Graph

Former Member
0 Likes
640

Hello,

I want to display graph, with 2 parameters as bars and the 3rd parameter as a line .

i.e. in the same graph i want bars and line.

im using the function module 'GFW_PRES_SHOW_MULT'.

Kindly help.

Thank u in advance.

Regards,

Pranali.

4 REPLIES 4
Read only

Former Member
0 Likes
616

Hi,

Try this FM - GRAPH_MATRIX_3D.

Regards,

Billa

Read only

Former Member
0 Likes
616

hi,

try like this

REPORT Z_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 Rs.'

TABLES

DATA = ITAB_DATA

OPTS = ITAB_OPTIONS

EXCEPTIONS

OTHERS = 1.

reward if useful...

Read only

i048168
Product and Topic Expert
Product and Topic Expert
0 Likes
616

Hi,

The following link might be very useful.

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESGRA/BCFESGRA.pdf

Regards

Vadi

Read only

kai_gutenkunst
Product and Topic Expert
Product and Topic Expert
0 Likes
616

Hi Pranali,

this is not possible with this old function module.

Use the chart engine instead where you can easily define the chart type per data series.

Download the SAP Chart Designer from SDN - Downloads - WebAS and check out its features. The corresponding ABAP classes are cl_gui_chart_engine / cl_igs_chart_engine.

Regards, Kai