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.
'ABAP 물타기 > ALV' 카테고리의 다른 글
check alv field catalog (0) | 2013.06.18 |
---|---|
alv split header text area (0) | 2013.06.05 |
alv column width optimize (0) | 2013.06.04 |
ALV : CELL TAB 01 (필드 비활성화) (0) | 2011.10.24 |
PF-SATUS EXCLUDING (제외) (0) | 2011.09.30 |