report zsalv_030 .
*----------------------------------------------------------------------*
* CLASS lcl_handle_events DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
class lcl_handle_events definition.
public section.
methods:
on_double_click for event double_click of cl_salv_events_table
importing row column.
endclass. "lcl_handle_events DEFINITION
*----------------------------------------------------------------------*
* CLASS lcl_handle_events IMPLEMENTATION
*----------------------------------------------------------------------*
class lcl_handle_events implementation.
method on_double_click.
perform show_cell_info using row column '더블 클릭하였습니다.'.
endmethod. "on_double_click
endclass. "lcl_handle_events IMPLEMENTATION
data gt_itab type table of sflight.
data gr_table type ref to cl_salv_table.
data gr_event type ref to lcl_handle_events.
start-of-selection.
select * from sflight into table gt_itab
up to 25 rows.
cl_salv_table=>factory(
importing
r_salv_table = gr_table
changing
t_table = gt_itab ).
data lr_event type ref to cl_salv_events_table.
lr_event = gr_table->get_event( ).
create object gr_event.
set handler gr_event->on_double_click for lr_event.
gr_table->display( ).
*&---------------------------------------------------------------------*
*& Form SHOW_CELL_INFO
*&---------------------------------------------------------------------*
form show_cell_info using p_row type i
p_column type lvc_fname
p_text type string.
data: l_row type char10.
write p_row to l_row left-justified.
concatenate l_row '번째 라인의' p_column '컬럼을' p_text
into p_text separated by space.
message i000(0k) with p_text.
endform. " show_cell_info
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
430 | REPORT Z13_001 | sapjoy | 2007.01.08 | 2362 |
429 | report zsalv_013 | sapjoy | 2010.08.20 | 2361 |
428 | REPORT z19_002 | sapjoy | 2007.03.24 | 2360 |
427 | REPORT z18_008 | sapjoy | 2007.03.07 | 2359 |
426 | REPORT Z11_010 | sapjoy | 2006.12.22 | 2358 |
425 | Z07_005 | sapjoy | 2006.12.06 | 2353 |
424 | REPORT Z017_007 [3] | sapjoy | 2007.02.11 | 2353 |
423 | REPORT z18_004 [1] | sapjoy | 2007.03.05 | 2348 |
422 | report zsalv_023 . | sapjoy | 2010.08.20 | 2347 |
421 | REPORT Z17_003 | sapjoy | 2007.02.08 | 2347 |
420 | REPORT Z07_018 | sapjoy | 2006.12.08 | 2341 |
419 | method DISPLAY_LIST . [2] | sapjoy | 2007.10.28 | 2341 |
418 | REPORT z17_18 . | sapjoy | 2012.08.01 | 2339 |
417 | REPORT Z10_001 | sapjoy | 2008.04.14 | 2339 |
416 | report zsalv_003 | sapjoy | 2010.08.20 | 2336 |
415 | REPORT ZBAPI_ALE | sapjoy | 2009.02.05 | 2334 |
414 | report zsalv_011 | sapjoy | 2010.08.20 | 2331 |
» | report zsalv_030 . | sapjoy | 2010.08.20 | 2330 |
412 | report zsalv_018 . | sapjoy | 2010.08.20 | 2327 |
411 | REPORT Z07_012 | sapjoy | 2006.12.08 | 2326 |