Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV Grid Selection

Former Member
0 Likes
634

Hi All,

Can any one give suggestion for this

multiple row selection in ALV grid without using CTRL key

Thanks

Surendra

4 REPLIES 4
Read only

Former Member
0 Likes
609

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.

Read only

Former Member
0 Likes
609

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.

Read only

Abhijit74
Active Contributor
0 Likes
609

Hi,

Please go through this [Link as described.|/thread/1186399 [original link is broken];.

Hope this will serve your problem.

Thanks,

Abhijit

Read only

Former Member
0 Likes
609

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.