- Create Date : 2011-01-04
- Change Date : 2011-01-04
잡담 -ㅂ-;
SALV 좋아보이지만... edit 기능이 안 되는걸로 알고 있다...
Poupup ALV
아래와 같이 체크를 하면 GRID 모드에서 LIST 모드로 수정됨
list_display = 'X'
REPORT Z0020.
TABLES: pa0002.
TYPES: BEGIN OF ty_outtab,
pernr like pa0002-pernr,
begda like pa0002-begda,
endda like pa0002-endda,
vorna like pa0002-vorna,
nachn like pa0002-nachn,
END OF ty_outtab.
DATA: gt_outtab TYPE STANDARD TABLE OF ty_outtab,
gr_table TYPE REF TO cl_salv_table.
*----------------------------------------------------------------------*
* SELECTION-SCREEN *
*----------------------------------------------------------------------*
selection-screen begin of block gen with frame.
select-options:s_pernr for pa0002-pernr.
selection-screen end of block gen.
*----------------------------------------------------------------------*
* START-OF-SELECTION *
*----------------------------------------------------------------------*
start-of-selection.
perform select_data.
*----------------------------------------------------------------------*
* END-OF-SELECTION *
*----------------------------------------------------------------------*
end-of-selection.
perform display_fullscreen.
*&---------------------------------------------------------------------*
*& Form select_data
*----------------------------------------------------------------------*
form select_data .
select pernr
begda
endda
vorna
nachn
from pa0002
into table gt_outtab
where pernr in s_pernr.
endform. " select_data
*&---------------------------------------------------------------------*
*& Form display_fullscreen
*----------------------------------------------------------------------*
form display_fullscreen .
data: lr_content type ref to cl_salv_form_element.
cl_salv_table=>factory(
exporting
list_display = ''
importing
r_salv_table = gr_table
changing
t_table = gt_outtab ).
gr_table->set_screen_popup(
start_column = 1
end_column = 100
start_line = 1
end_line = 20 ).
data: lr_selections type ref to cl_salv_selections.
lr_selections = gr_table->get_selections( ).
lr_selections->set_selection_mode(
if_salv_c_selection_mode=>row_column ).
gr_table->display( ).
endform. " display_fullscreen
'ABAP 물타기 > ALV' 카테고리의 다른 글
fieldcatalog 순서지정 (0) | 2011.02.01 |
---|---|
function alv f4 (커스터마이징) (0) | 2011.01.26 |
ALV : Function ALV Tip (0) | 2011.01.04 |
ALV : METHOD-01 (0) | 2010.09.13 |
ALV : fieldcatalog attribute (0) | 2010.08.29 |