2008 Jul 14 8:25 AM
how to display a column as pushbutton for multiple selections
in alv output list just like checkbox
how to display a column as pushbutton for multiple selections
in alv output list just like checkbox
2008 Jul 14 8:28 AM
Hi,
Check this link..
To add push button on the toolbar.
http://abapreports.blogspot.com/2008/06/push-button-on-alv-grid-output-sample.html
Regards
Narin Nandivada.
2008 Jul 14 8:31 AM
2008 Jul 14 8:33 AM
specify in field catalog.. style as button...for entire column..
LOOP AT gt_fcat INTO ls_fcat
WHERE ( fieldname = 'EMP' ).
ls_fcat-style = cl_gui_alv_grid=>mc_style_button.
MODIFY gt_fcat FROM ls_fcat.
ENDLOOP.
Reward if useful,
devi.
2008 Jul 14 8:34 AM
Hi Ramesh,
Check this link:
http://help.sap.com/saphelp_erp2004/helpdata/en/88/387f380c2f2e3ce10000009b38f8cf/content.htm
Hope this helps you.
Regards,
Chandra Sekhar
2008 Jul 14 8:58 AM
Hello Ramesh
I assume you are looking for the "mark" row at the left side of the ALV grid. You can set this property in the layout (LVC_S_LAYO-SEL_MODE = 'D').
Regards
Uwe
2023 Mar 22 5:57 AM
Just set value of column to text you wish to be in button. For example:
TYPES: BEGIN OF ty_my_table_type,
button TYPE string,
some_value TYPE i,
END OF ty_my_table_type.
DATA: lt_my_table TYPE STANDARD TABLE OF ty_my_table_type,
ls_row TYPE ty_my_table_type.
LOOP AT lt_my_table INTO ls_row.
ls_row-button = 'YOUR_BUTTON_TEXT'.
ENDLOOP.
Then you assign table to ALV and set style for column button, something like:
CASE <ls_fieldcat>-fieldname.
WHEN 'BUTTON'.
<ls_fieldcat>-style = cl_gui_alv_grid=>mc_style_button.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |