‎2008 Jul 03 5:50 AM
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.
‎2008 Jul 03 8:47 AM
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
‎2008 Jul 03 6:02 AM
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
‎2008 Jul 03 8:47 AM
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
‎2008 Jul 04 6:45 AM
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.