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

column as pushbutton in alv

Former Member
0 Likes
9,545

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

6 REPLIES 6
Read only

Former Member
4,210

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.

Read only

Former Member
0 Likes
4,210

hiii

please refer to following links

regards

twinkal.

Read only

Former Member
0 Likes
4,210

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.

Read only

Former Member
0 Likes
4,210

Hi Ramesh,

Check this link:

http://help.sap.com/saphelp_erp2004/helpdata/en/88/387f380c2f2e3ce10000009b38f8cf/content.htm

Hope this helps you.

Regards,

Chandra Sekhar

Read only

uwe_schieferstein
Active Contributor
0 Likes
4,210

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

Read only

4,210

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.