2009 Apr 29 10:43 PM
Hi,
When a row selected in ALV how should we recognize the Row Field?
Thanks
Hi,
When a row selected in ALV how should we recognize the Row Field?
Thanks
2009 Apr 29 11:17 PM
Hi,
Use method GET_SELECTED_ROWS assuming is it cl_gui_alv_grid. Check the importing parameter ET_ROW_NO to get indices of selected rows and subrows (i.e. subtotals).
For checking the field with its contents use GET_SELECTED_CELLS.
Regards
Marcin
Edited by: Marcin Pciak on Apr 30, 2009 12:20 AM
2009 Apr 30 6:22 AM
Hi Sowmya..
for this in ALV interactive u need to pass perform name to I_CALLBACK_USER_COMMAND in ALV grid FM. for that perform u need to pass 'slis_selfield' structure. this structure contains below info.
types: begin of slis_selfield,
tabname type slis_tabname,
tabindex like sy-tabix,
sumindex like sy-tabix,
endsum(1) type c,
sel_tab_field type slis_sel_tab_field,
value type slis_entry,
before_action(1) type c,
after_action(1) type c,
refresh(1) type c,
ignore_multi(1) type c, " ignore selection by checkboxes (F2)
col_stable(1) type c,
row_stable(1) type c,
colwidth_optimize(1) type c,
exit(1) type c,
fieldname type slis_fieldname,
grouplevel type i,
collect_from type i,
collect_to type i,
end of slis_selfield.
here u'll get row index, field name, value in that row field.
hope this is useful.
Regards,
KP.
2009 Apr 30 6:41 AM
Hi,
If it is Ordinary ALV program then try with the fields in SLIS_SELFIELD structure of SLIS type pool
If it is OOP ALV then work with GET_SELECTED_ROWS method which having exporting parameter row id.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |