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

Label on Bar Graph

Former Member
0 Likes
1,092

Dear Champs ,

I am using one Function Module that is GRAPH_MATRIX_3D.

In this i am getting the data correct and object is working fine.

I want to label the graph by putting the value on the tower like ( 300 kg, 400 kg ).

Please help me out .

I will be highly thankful to you.

Thanks and Regards

Vivek Srivastava

Dear Champs ,

I am using one Function Module that is GRAPH_MATRIX_3D.

In this i am getting the data correct and object is working fine.

I want to label the graph by putting the value on the tower like ( 300 kg, 400 kg ).

Please help me out .

I will be highly thankful to you.

Thanks and Regards

Vivek Srivastava

8 REPLIES 8
Read only

Former Member
0 Likes
1,056

Friends Please help me out.

Read only

0 Likes
1,056

Hi,

May be this sample code can help you:-

REPORT Z_3DGRAPH.
*structure declaration for performance measurement
TYPES: BEGIN OF ty_performance,
company(15) TYPE c,
q1 TYPE i,
q2 TYPE i,
q3 type i,
q4 type i,
END OF ty_performance.
*structure declaration for options table
types : BEGIN OF ty_opttable,
options(30) TYPE c,
END OF ty_opttable.
*Internal table and work area declarations
DATA: it_performance TYPE STANDARD TABLE OF ty_performance,
wa_performance TYPE ty_performance.
DATA : it_opttable type standard table of ty_opttable,
wa_opttable type ty_opttable.
*initialization event
INITIALIZATION.
*start of selection event
START-OF-SELECTION.
*clearing the work areas
CLEAR WA_PERFORMANCE.
CLEAR wa_opttable.
*appending values into the performance internal table
wa_performance-company = 'Company A'.
wa_performance-q1 = 78.
wa_performance-q2 = 68.
wa_performance-q3 = 79.
wa_performance-q4 = 80.
append wa_performance to it_performance.
wa_performance-company = 'Company B'.
wa_performance-q1 = 48.
wa_performance-q2 = 68.
wa_performance-q3 = 69.
wa_performance-q4 = 70.
append wa_performance to it_performance.
wa_performance-company = 'Company C'.
wa_performance-q1 = 78.
wa_performance-q2 = 48.
wa_performance-q3 = 79.
wa_performance-q4 = 85.
append wa_performance to it_performance.
*appending values into the options internal table
wa_opttable-options = 'P3TYPE = TO'.
APPEND wa_opttable TO it_opttable.
wa_opttable-options = 'P2TYPE = VB'.
APPEND wa_opttable TO it_opttable.
wa_opttable-options = 'TISIZE = 1'.
APPEND wa_opttable TO it_opttable.
*calling the graph function module
CALL FUNCTION 'GRAPH_MATRIX_3D'
EXPORTING
col1 = 'Quarter 1'
col2 = 'Quarter 2'
col3 = 'Quarter 3'
col4 = 'Quarter 4'
dim1 = 'In Percentage%'
set_focus = 'X'
titl = 'Company Performances'
TABLES
data = it_performance
opts = it_opttable
EXCEPTIONS
others = 1.

Manas M.

Read only

0 Likes
1,056

Dear Manas,

I am very thankful for your reply, i am using the same program that u have written.

Manas Issue is i want to display the value on each tower(BAR) so that user can

easily get the exact amount on front.

Please help me a little more .

Yours

vivek

Read only

0 Likes
1,056

>

>

>

REPORT Z_3DGRAPH.
> *structure declaration for performance measurement
> ...
> ...

>

> Manas M.

Copy&pasted from

You didn't even correct the syntax error in Rajesh's original code!

Read only

0 Likes
1,056

This is not the first time it happened .

Read only

Former Member
0 Likes
1,056

hi

this is not possible in graph_matrix_3d

go to tcode gral GFW_PROG_POINT_WITH_LAB GFW: Programming example of a chart with a labelled point

otherwise go by ALV .

Thanks & regards

Surender

Read only

Former Member
0 Likes
1,056

Hi Vivek,

Check the below link.

Let me know if you need any more help.

Manas M.

Read only

Former Member
0 Likes
1,056

thanks