본문 바로가기
ABAP

ALV Refresh시 Layout 재설정 (SET_FRONTEND_LAYOUT)

by clode 2023. 3. 1.
728x90
반응형

REFRSEH 구문에 아래 SET_FRONTEND_LAYOUT 구문 추가

  DATA: LS_STABLE TYPE LVC_S_STBL VALUE 'XX'. 
  DATA: LS_LAYOUT TYPE LVC_S_LAYO.

    LS_LAYOUT-CWIDTH_OPT = ABAP_TRUE.
    LS_LAYOUT-ZEBRA = ABAP_TRUE.

    CALL METHOD PO_GRID->SET_FRONTEND_LAYOUT
      EXPORTING
        IS_LAYOUT = LS_LAYOUT.

  CALL METHOD PO_GRID->REFRESH_TABLE_DISPLAY
    EXPORTING
      I_SOFT_REFRESH = ABAP_TRUE
      IS_STABLE      = LS_STABLE.
728x90
반응형

'ABAP' 카테고리의 다른 글

BDC Program Logic  (0) 2023.03.01
MESSAGE  (0) 2023.03.01
Pop-up ALV  (0) 2023.02.27
ALV Standard Add/Delete row Button  (0) 2023.02.24
View Event  (0) 2023.02.24

댓글