본문 바로가기

ABAP 물타기/ALV

ALV : Select Layout (at selection-screen 이벤트에 Possible Entry)

  • Create Date   : 2010-07-04
  • Change Date : 2010-07-04

잡담 -ㅂ-;

명일 창원으로 출장간다... 에구구
비행기를 타고 바다로~  


Overview 

저장된 Layout 을 선택할 수 있도록 한다.
저장시에 i_save = '' 로 설정되면 Layout을 변경할 수는 있지만 저장이 불가능 하다.



parameters : p_vari like disvariant-variant. 

data : g_grid type ref to cl_gui_alv_grid,
       gs_variant like disvariant,
       gs_cs_variant like disvariant.

at selection-screen on VALUE-REQUEST FOR p_vari.
  gs_variant-report = sy-repid.
  call function 'REUSE_ALV_VARIANT_F4'
    EXPORTING
      is_variant = gs_variant
      i_save = 'A'
    IMPORTING
      ex_variant = gs_cs_variant.
 

    if sy-subrc eq 0.
    p_vari = gs_cs_variant-variant.
  endif.




'ABAP 물타기 > ALV' 카테고리의 다른 글

ALV : Grid 요소  (0) 2010.08.15
ALV : Layout Other Method  (0) 2010.08.15
SAP TREE : Simple Tree  (0) 2010.06.24
ALV : Edit ALV (update)  (0) 2010.06.18
ALV : Layout  (0) 2010.06.17