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

value on Bar/ Pie Chart using GRAPH_MATRIX_3D

Former Member
0 Likes
1,734

Hi ,

i was generated a Graph with the help of FM GRAPH_MATRIX_3D .

I am getting Proper output according to data. My requirment is , i want to display value on

column/ beam . In case of if it PIE Chart i want also value according to Area.

Option given in Graph checked by me , but i didn't get any way to show the value. According to value

only i can see the size of tower but not the excet value of that.

Is there any way to show the value on Graph in each column with above function module or another way to

reach this requirement ?

Regards,

Vipul Darji

12 REPLIES 12
Read only

Former Member
0 Likes
1,543

hi ,

Search for programs GFW_PROG* these are all graph programs this might be useful...

Read only

Former Member
0 Likes
1,543

REPORT ZGRAPH.

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 = 'Rice'.

ITAB_DATA-QUANTITY1 = 55.

ITAB_DATA-QUANTITY2 = 62.

ITAB_DATA-QUANTITY3 = 59.

APPEND ITAB_DATA.

ITAB_DATA-DATANAME = 'Wheat'.

ITAB_DATA-QUANTITY1 = 35.

ITAB_DATA-QUANTITY2 = 52.

ITAB_DATA-QUANTITY3 = 44.

APPEND ITAB_DATA.

ITAB_DATA-DATANAME = 'Sugar'.

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 = 'Quantity Consumed In KG.'

TABLES

DATA = ITAB_DATA

OPTS = ITAB_OPTIONS

EXCEPTIONS

OTHERS = 1.

Edited by: krupa jani on Aug 7, 2009 11:03 AM

Read only

0 Likes
1,543

Hi krupa,

This is a Program to Display Graph . In my Program i done all this thing. i can see tower(column) according to value.

But my question was that , Is there any way to Show that value(Quantity) in tower(column)?

There is Option avilable in Graph Window. But i checked all from that , none is working for my requirment.

Any body have solution of this..?

Regadrs,

Vipul Darji

Read only

0 Likes
1,543

hi friend go to t-code gral go through the program


GFW_PROG_POINT_WITH_LABEL
[http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESGRA/BCFESGRA.pdf] review the page from 118 -130. i think it might be useful for developing graphics program by using object oriented concept. regards surender

Read only

0 Likes
1,543

Hi,

Still not found my answer. i want to display value(quantity/rate) on column(beam) with

the help of these FM 'GRAPH_MATRIX_3D'.

By this FM 'GRAPH_MATRIX_3D' i am getting proper ouput. But ENDUSER wants a Value

on each Column(Beam).

Reagrds,

Vipul Darji

Read only

0 Likes
1,543

hi vipu

try this option display the report by using Reuse_alv_grid_display. and then press graphics button in the application toolbar. right click in the graphics display, context menu is open ->chart options in the chart options, click the data labels tab.and choose the options as show lable ->apply ->ok.. this is the way where u depict the value at the top of the beam, i try to depict the value in 3D format. regards surender.s

Read only

0 Likes
1,543

Hi Vipul!

Im also facing the same problem.

As we know that the values are not accurate to view. So its better to display values(numbers) on top of each tower in 3D Graph.

How to display that? Kindly suggest me any solution.

With Regards,

Yarnagula sudhir.

Read only

Former Member
0 Likes
1,543

hi Vipu

T.CODE :- GRAL

u got demo report as per your requirement.

Read only

Former Member
0 Likes
1,543

Solved it.

Read only

0 Likes
1,543

Hi

I have the same problem with you .

Can you tell me how to solve it ?

Thank you very much.

Read only

0 Likes
1,543

Hi Cloud Deng!

Im also facing the same problem.

As we know that the values are not accurate to view. So its better to display values(numbers) on top of each tower in 3D Graph.

How to display that? Kindly suggest me any solution.

With Regards,

Yarnagula sudhir.

Read only

0 Likes
1,543

Hi Cloud Deng and Yarnagula,

Did you guys manage to solve how to put value on top the columns in the bar chart?

What about Vipul, care to share how you had it done?

Regards,

William

William Wilstroth