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

Graphs for ALV

Former Member
0 Likes
1,093

Hi Experts

i have an ALV Report which is running successfully.

Now i want to diaplay the report through Graphs.

i want to Display the Graphs for this ALV Report through Seperate T-Code

Hi Experts

i have an ALV Report which is running successfully.

Now i want to diaplay the report through Graphs.

i want to Display the Graphs for this ALV Report through Seperate T-Code

6 REPLIES 6
Read only

Former Member
0 Likes
978

hi,

you can use garph.

create a screen with container .

use this FM

GFW_PRES_SHOW

or check this prog

DEMO_GFW_PRES_SHOW.

Edited by: abap on Feb 23, 2009 7:43 AM

Read only

Former Member
0 Likes
978

HI Shalini

WELCOME TO SCN

Refere the following links

/people/varun.vijh/blog/2007/03/20/report-with-a-graph-an-approach

Regards

Sachin

Read only

Former Member
0 Likes
978

HI Shalini,

Kindly go through this link below:

Hope it helps

Regrds

Mansi

Read only

Former Member
0 Likes
978

Hi,

U can use Parameter 'IT_ALV_GRAPHICS'.

-


> This is Setting for display the ALV list diagram.

-


> The row type of table has two fields.

PROP_ID: Assain Constant of attribute of class CL_AVL_GRAPHICS_CU with prefix CO_PROPID_TO

this filed is to determine the changes to be made to the graphics.

Use the CL_ALV_GRAPHICS_CU -


> CO_PROPID_TITLE. attributes.

-


> PROP_VAL : The value of the relavent topic,for Example : "My Title".

For some reference.

See the following link Also.

http://help.sap.com/saphelp_nw04/helpdata/EN/5d/ad993888a5b268e10000009b38f8cf/content.htm

Thanks,

Neelima.

Read only

rahul2000
Contributor
0 Likes
978

Hi Shalini,

For ALV Reports,by default u will find the graph icon,which on clicked u will gert a graph of all the summable values together.

If you want an individual grapgh then you will have to use the FM GRAPH_MATRIX_3D

See if you can use this grapgh,else get back to us on the same.

Rahul.

Read only

Former Member
0 Likes
978

see the following example

&----


*& Report ZGRAPHS_3D

*&

&----


*&

*&

&----


REPORT ZGRAPHS_3D.

TYPES: BEGIN OF ttab_data,

dataname(15),

quantity1 TYPE i,

quantity2 TYPE i,

quantity3 TYPE i,

END OF ttab_data.

TYPES: BEGIN OF ttab_options,

option(20),

END OF ttab_options.

DATA: itab_data TYPE TABLE OF ttab_data,

xtab_data LIKE LINE OF itab_data.

DATA: itab_options TYPE TABLE OF ttab_options,

xtab_options LIKE LINE OF itab_options.

xtab_data-dataname = 'Screws'.

xtab_data-quantity1 = 5500.

xtab_data-quantity2 = 6200.

xtab_data-quantity3 = 5900.

APPEND xtab_data TO itab_data.

xtab_data-dataname = 'Nails'.

xtab_data-quantity1 = 3500.

xtab_data-quantity2 = 5200.

xtab_data-quantity3 = 4400.

APPEND xtab_data TO itab_data.

xtab_data-dataname = 'Nuts'.

xtab_data-quantity1 = 1800.

xtab_data-quantity2 = 2200.

xtab_data-quantity3 = 1900.

APPEND xtab_data TO itab_data.

xtab_data-dataname = 'Fastners'.

xtab_data-quantity1 = 5500.

xtab_data-quantity2 = 6200.

xtab_data-quantity3 = 5900.

APPEND xtab_data TO itab_data.

xtab_data-dataname = 'Bolts'.

xtab_data-quantity1 = 3500.

xtab_data-quantity2 = 5200.

xtab_data-quantity3 = 4400.

APPEND xtab_data TO itab_data.

xtab_data-dataname = 'Clamps'.

xtab_data-quantity1 = 1800.

xtab_data-quantity2 = 2200.

xtab_data-quantity3 = 1900.

APPEND xtab_data TO itab_data.

xtab_data-dataname = 'Hand Tools'.

xtab_data-quantity1 = 5500.

xtab_data-quantity2 = 6200.

xtab_data-quantity3 = 5900.

APPEND xtab_data TO itab_data.

xtab_data-dataname = 'Saws'.

xtab_data-quantity1 = 3500.

xtab_data-quantity2 = 5200.

xtab_data-quantity3 = 4400.

APPEND xtab_data TO itab_data.

xtab_data-dataname = 'Jigs'.

xtab_data-quantity1 = 1800.

xtab_data-quantity2 = 2200.

xtab_data-quantity3 = 1900.

APPEND xtab_data TO itab_data.

CALL FUNCTION 'GRAPH_MATRIX_3D'

EXPORTING

titl = 'Usage in $'

col1 = 'Materials'

TABLES

data = itab_data

opts = itab_options.