获取行数:
CALL METHOD <ref.var. to CL_GUI_ALV_GRID > ->get_selected_rows
IMPORTING
ET_INDEX_ROWS = <Internal table of type LVC_T_ROW > .
|
Parameter |
Meaning |
|
ET_INDEX_ROWS |
Table with indexes of the selected rows |
获取列数:
CALL METHOD <ref.var. to CL_GUI_ALV_GRID > ->get_selected_columns
IMPORTING
ET_INDEX_COLUMNS = <internal table of type LVC_T_COL > .
|
Parameter |
Meaning |
|
ET_INDEX_COLUMNS |
Table with field names of the selected columns |
本文介绍如何使用 ABAP 中的 CL_GUI_ALV_GRID 类来获取 ALV Grid 控件中选定的行与列。通过调用 get_selected_rows 和 get_selected_columns 方法,可以分别返回一个包含所选行索引和列名的内部表。

4641

被折叠的 条评论
为什么被折叠?



