mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-02 04:36:49 +08:00
Add Select all/none buttons to table select popup
This commit is contained in:
parent
051f3fb6a3
commit
8ed5d896ab
|
@ -749,8 +749,8 @@ CLASS lcl_popups IMPLEMENTATION.
|
||||||
CHANGING t_table = lt_popup_list ).
|
CHANGING t_table = lt_popup_list ).
|
||||||
|
|
||||||
GET REFERENCE OF lt_popup_list INTO mtr_select_list.
|
GET REFERENCE OF lt_popup_list INTO mtr_select_list.
|
||||||
mo_select_list_popup->set_screen_status( pfstatus = 'ST850'
|
mo_select_list_popup->set_screen_status( pfstatus = '102'
|
||||||
report = 'SAPLKKBL' ).
|
report = 'SAPMSVIM' ).
|
||||||
|
|
||||||
mo_select_list_popup->set_screen_popup( start_column = 1
|
mo_select_list_popup->set_screen_popup( start_column = 1
|
||||||
end_column = 65
|
end_column = 65
|
||||||
|
@ -808,13 +808,33 @@ CLASS lcl_popups IMPLEMENTATION.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
METHOD on_select_list_function_click.
|
METHOD on_select_list_function_click.
|
||||||
|
DATA:
|
||||||
|
lsr_line TYPE REF TO t_popup_select_list.
|
||||||
|
|
||||||
CASE e_salv_function.
|
CASE e_salv_function.
|
||||||
WHEN 'GOON'.
|
WHEN 'O.K.'.
|
||||||
mo_select_list_popup->close_screen( ).
|
mo_select_list_popup->close_screen( ).
|
||||||
|
|
||||||
WHEN 'ABR'.
|
WHEN 'ABR'.
|
||||||
"Canceled: clear list to overwrite nothing
|
"Canceled: clear list to overwrite nothing
|
||||||
CLEAR mtr_select_list->*.
|
CLEAR mtr_select_list->*.
|
||||||
mo_select_list_popup->close_screen( ).
|
mo_select_list_popup->close_screen( ).
|
||||||
|
|
||||||
|
WHEN 'SALL'.
|
||||||
|
LOOP AT mtr_select_list->* REFERENCE INTO lsr_line.
|
||||||
|
lsr_line->selected = abap_true.
|
||||||
|
ENDLOOP.
|
||||||
|
mo_select_list_popup->refresh( ).
|
||||||
|
|
||||||
|
WHEN 'DSEL'.
|
||||||
|
LOOP AT mtr_select_list->* REFERENCE INTO lsr_line.
|
||||||
|
lsr_line->selected = abap_false.
|
||||||
|
ENDLOOP.
|
||||||
|
mo_select_list_popup->refresh( ).
|
||||||
|
|
||||||
|
WHEN OTHERS.
|
||||||
|
CLEAR mtr_select_list->*.
|
||||||
|
mo_select_list_popup->close_screen( ).
|
||||||
ENDCASE.
|
ENDCASE.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user