2010 Apr 30 5:51 AM
Hi All,
Can any one give suggestion for this
multiple row selection in ALV grid without using CTRL key
Thanks
Surendra
Hi All,
Can any one give suggestion for this
multiple row selection in ALV grid without using CTRL key
Thanks
Surendra
2010 Apr 30 6:34 AM
hi,
If you dont want to use control key for multiple selection of rows, i can suggest to you declare a field as check box in the final internal table and use it to for selecting the records.
2010 Apr 30 6:44 AM
hi suri,
if you are using OOPS ALV then take one extra column in fieldcatalog in editable mode dont take it in filnal ITAB jst in fcat
and u will get cell for selection of row.
wa_fieldcat1-row_pos = 1.
wa_fieldcat1-col_pos = 1.
wa_fieldcat1-fieldname = 'SEL'.
wa_fieldcat1-tabname = 'IT_OUTPUT'.
wa_fieldcat1-no_out = 'X'.
wa_fieldcat1-edit = 'X'.
APPEND wa_fieldcat1 TO it_fieldcat1.
CLEAR wa_fieldcat1.
in this way u will get sel for selection.
2010 Apr 30 6:50 AM
Hi,
Please go through this [Link as described.|/thread/1186399 [original link is broken];.
Hope this will serve your problem.
Thanks,
Abhijit
2010 Apr 30 6:53 AM
data: it_sal_fieldcat_tab TYPE slis_t_fieldcat_alv,
before populating the field catalogue, pass this,
Append the field for multiple selction
wa_fieldcat-fieldname = 'SELECTED'.
wa_fieldcat-tabname = 'IT_OUT'. " int table name
wa_fieldcat-datatype = 'CHAR'.
wa_fieldcat-reptext_ddic = 'SELECTED'.
wa_fieldcat-outputlen = 1 .
APPEND wa_fieldcat TO it_fieldcat_tab.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |