2011년 3월 21일 월요일

ALV 그리드 화면 동기화 함수

그리드 껍데기를 인터널 테이블과 동기화

form check_changed using p_grid type ref to cl_gui_alv_grid.
data : l_valid, l_refresh.

call method p_grid->check_changed_data
  importing
    e_valid   = l_valid
  changing
    c_refresh = l_refresh.
endform.



인터널 테이블 내용을 그리드 껍데기와 동기화

form refresh_grid  using p_grid type ref to cl_gui_alv_grid.
  data:  ls_stable        type lvc_s_stbl.

  ls_stable-row  =  'X'.
  ls_stable-col  =  'X'.

  call method p_grid->refresh_table_display
    exporting
      i_soft_refresh = 'X'
      is_stable      = ls_stable.
endform.

댓글 없음:

댓글 쓰기