‎2008 Jun 24 2:44 PM
Can we split window using CL_SALV_TABLE class (ALV Object Model)?
If yes then how to split it?
If no then how this class is more useful than ALV Grid (CL_GUI_ALV_GRID) since I have read on SDN that CL_SALV_TABLE gives more collective interface to the ALV tools.
‎2008 Jun 24 2:48 PM
create one container....
split it... using cl_gui_splitter_container
use those containers for displaying the AVL using CL_SALV_TABLE
CREATE OBJECT v_custom_container1
EXPORTING container_name = v_container1.
CREATE OBJECT v_splitter
EXPORTING parent = v_custom_container1
rows = 2
columns = 1.
CALL METHOD v_splitter->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = v_parent_html.
CALL METHOD v_splitter->get_container
EXPORTING
row = 2
column = 1
RECEIVING
container = v_custom_container1_g.
CALL METHOD v_splitter->set_row_height
EXPORTING
id = 1
height = 30.
CREATE OBJECT v_grid1
EXPORTING i_parent = v_custom_container1_g.
CALL METHOD cl_salv_table=>factory
EXPORTING
list_display = IF_SALV_C_BOOL_SAP=>FALSE
r_container =
container_name = v_custom_container1_g.
IMPORTING
r_salv_table =
CHANGING
t_table =
Edited by: Amitava De on Jun 24, 2008 7:18 PM
‎2008 Jun 24 2:49 PM
For spliting the window you need to use first
data: g_docking_container_1 type ref to cl_gui_docking_container,
create object g_docking_container_1
exporting
repid = g_repid
dynnr = '300'
extension = 190
side = cl_gui_docking_container=>dock_at_left.
create object g_docking_container_2
exporting
repid = g_repid
dynnr = '300'
extension = 1200
side = cl_gui_docking_container=>dock_at_right.
....
....
....
try.
call method cl_salv_table=>factory
exporting
r_container = g_docking_container_2
importing
r_salv_table = gr_table
changing
t_table = i_ysccalv4.
catch cx_salv_msg.
endtry.
a®s
Edited by: a®s on Jun 24, 2008 9:52 AM