ABAP 물타기/ALV
alv split (2단 분리 상하)
물타기
2013. 6. 5. 09:14
screen에 CUSCON 을 추가하고 리사이즈가 되도록 한다.
사이즈도 가로 250 세로 200으로 한다.
이렇게 하면 자동으로 사이즈를 리사이징한다.
form init_alv.
create object go_cuscon
exporting container_name = 'CUSCON'.
"split 2 line
create object go_split
exporting
parent = go_cuscon
rows = 2
columns = 1.
"1.
call method go_split->get_container
exporting row = 1 column = 1
receiving container = go_con_h.
"2.
cal method go_split->get_container
exporting row = 2 column = 1
receiving container = go_con_i.
"create first alv
create object go_grid_h
exporting i_parent = go_con_h.
"create second alv
create object go_grid_i
exporting i_parent = go_con_i.
endform.
form set_split_screen.
call method go_split->set_row_height
exporting id = 1 height = 50. "50%
call method go_split->set_row_height
exporring id = 2 height = 50.
perform: refresh_grid_h, refresh_grid_i.
endform.
form set_detail_full_screen.
call method go_split->set_row_height
exporting id= 1 height = 0.
call method go_split->set_row_height
exporting id = 2 height = 100.
perform: refresh_grid_h, refresh_grid_i.
endform.