Object Oriented (OO) ALV Seçilen Satırı Alma
DATA: lt_selliste LIKE gt_itab OCCURS 0 WITH HEADER LINE.
DATA: t_rows TYPE lvc_t_row ,
ls_rows TYPE LINE OF lvc_t_row ,
t_rowno TYPE lvc_t_roid.
CALL METHOD grid1->get_selected_rows
IMPORTING
et_index_rows = t_rows
et_row_no = t_rowno.
DATA: lt_selliste LIKE gt_itab OCCURS 0 WITH HEADER LINE.
CLEAR lt_selliste.
REFRESH lt_selliste.
CLEAR ls_rows.
LOOP AT t_rows INTO ls_rows.
READ TABLE gt_itab INDEX ls_rows-index.
IF sy-subrc = 0.
MOVE-CORRESPONDING gt_itab TO lt_selliste.
APPEND lt_selliste.
ENDIF.
ENDLOOP.
Kaydol:
Kayıt Yorumları (Atom)
Hiç yorum yok:
Yorum Gönder