10-01-2008 10:21 AM
how can i select multiple records in alv grid .and how can i catch those recards?
10-01-2008 10:24 AM
Hi,
Change layout selection field. Use like this...
clear gs_layout.
gs_layout-sel_mode = 'A'. "Allow multi line selection
gs_layout-info_fname = 'ROW_COLINFO'.
gs_layout-zebra = 'X'.
call method gcc_grid_dm->set_table_for_first_display
exporting
* i_structure_name = c_s_dmhdr
is_variant = gs_variant
i_save = 'A'
is_layout = gs_layout "layout
* it_toolbar_excluding = gt_excl_fun[]
changing
it_outtab = gt_not_linked_debitmemos[]
it_fieldcatalog = gt_fcat[]
exceptions
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
others = 4.
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Use this method to get selected rows...
call method gcc_grid_dmtr->get_selected_rows
importing
et_index_rows = lt_rows.
Hope it will helps
10-01-2008 10:23 AM
hey,
You can use the checkbox in the alv and then using that you will be able to select multiple lines.
Regards.
Midhun Abraham
10-01-2008 10:43 AM
10-01-2008 10:24 AM
Hi,
Change layout selection field. Use like this...
clear gs_layout.
gs_layout-sel_mode = 'A'. "Allow multi line selection
gs_layout-info_fname = 'ROW_COLINFO'.
gs_layout-zebra = 'X'.
call method gcc_grid_dm->set_table_for_first_display
exporting
* i_structure_name = c_s_dmhdr
is_variant = gs_variant
i_save = 'A'
is_layout = gs_layout "layout
* it_toolbar_excluding = gt_excl_fun[]
changing
it_outtab = gt_not_linked_debitmemos[]
it_fieldcatalog = gt_fcat[]
exceptions
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
others = 4.
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Use this method to get selected rows...
call method gcc_grid_dmtr->get_selected_rows
importing
et_index_rows = lt_rows.
Hope it will helps
10-01-2008 10:34 AM
10-01-2008 10:26 AM
10-01-2008 10:30 AM
>
> how can i select multiple records in alv grid .and how can i catch those recards?
By select statement.
10-01-2008 10:36 AM
>By select statement.
I am doubtful, he should use key board Ctrl Shift buttons, not the select statement 😛
10-01-2008 10:53 AM
> I am doubtful, he should use key board Ctrl Shift buttons, not the select statement 😛
Why not just Ctrl +Y
no need of too bother for press Shift
@subhir :
iam not allowed to press ctrl shift buttons
Are you still using Boxes?
Cheers
Edited by: Ámit Güjärgoüd on Oct 1, 2008 11:53 AM
10-01-2008 10:34 AM
Hi
Good
check this forum link, hope this will help you to solve your problem.
https://forums.sdn.sap.com/post!reply.jspa?threadID=1016192
Thanks
mrutyun^
10-01-2008 10:38 AM
Hi,
Press Ctrl or shift button and then select rows. it will select....
10-01-2008 10:50 AM
10-01-2008 10:55 AM
Hi,
Other wise use check box to select multiple rows..
Please refer this program : BCALV_EDIT_05 in SE38 tcode