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

Two Graphs in a single screen

Former Member
0 Likes
1,445

Hi Experts,

I want to display two graphs in a single screen. It should be a pie chart.

Currently I did one pie chart using GRAPH_MATRIX_2D.

It is working fine.

But i want to display another PIE Chart within the same screen.

Can anyone help me sort out?

Thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
1,109

Hi Vimal,

Please have a look on the example program DEMO_GFW_PRES_SHOW_MULT

Also have a look on GRAL T-Code

You may have to use two different container in your screen and fill those with Graphs as per your requirement..

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

ilesh Nandaniya

5 REPLIES 5
Read only

Former Member
0 Likes
1,109

This message was moderated.

Read only

0 Likes
1,109

Hi Harini,

The links which sent u is nice....

My requirement is to display two pie charts in a same screen.

As per ur suggession, one pie chart is coming with colors but another pie chart is not coming with colors. simply comes with white...

If i wants to display with BAR chart, i want the each beam value....

can you tell me how to do?

Read only

Former Member
0 Likes
1,109

Hi Vimal,

Go throungh the following code. it will help you.

REPORT Z_3DGRAPH.*structure declaration for performance measurementTYPES: 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 tablewa_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.

Regards,

Rajesh Kumar

Read only

Former Member
1,110

Hi Vimal,

Please have a look on the example program DEMO_GFW_PRES_SHOW_MULT

Also have a look on GRAL T-Code

You may have to use two different container in your screen and fill those with Graphs as per your requirement..

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

ilesh Nandaniya

Read only

0 Likes
1,109

Thank youuuuuuuu <3.