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

Container for Graph

Former Member
0 Likes
1,140

Hi Experts,

I need ur help,

I was created a graph using custom container its working fine. But problem is i need display two graphs in one screen. I placed two containers on screen, but it shows only one container graph. Pl help me how can i display two graphs in one screen.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
605

Have a look at demo program DEMO_GFW_PRES_SHOW_MULT which shows 2 graphs on one screen... make sure in your code you are using the right container name as the parent for each separate graph.

Jonathan

3 REPLIES 3
Read only

Former Member
0 Likes
605

hi Devaraju,

Yes it possible

<b>pass the name of two container </b>

  • To Instantiate ALV grid control

create object ob_alvgrid

exporting

i_parent = ob_custom_container

exceptions

error_cntl_create = 1

error_cntl_init = 2

error_cntl_link = 3

error_dp_create = 4

others = 5.

if sy-subrc <> 0.

message e000 with text-033."Unable to display data in the ALV

endif.

clear wa_layout.

*<b> To display data in the ALV control</b>

call method ob_alvgrid->set_table_for_first_display

exporting

is_layout = wa_layout

  • IT_TOOLBAR_EXCLUDING = ''

changing

it_fieldcatalog = p_it_field_cat

it_outtab = p_it_table.

Amit

Read only

Former Member
0 Likes
606

Have a look at demo program DEMO_GFW_PRES_SHOW_MULT which shows 2 graphs on one screen... make sure in your code you are using the right container name as the parent for each separate graph.

Jonathan

Read only

0 Likes
605

Hi expert,

ThanQ, it is working fine. Here one more problem, showing two graphs bar chart and pie chart from one data. I need same color pattern for two charts. like first chart x and second chart x is same color. Pl. solve this probelm.