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

Alv Cells Button ?

Former Member
0 Likes
1,486

Hi Everybody ,

I want to add buttons to ALV in a column .

Please Look At this picture : http://img18.imageshack.us/img18/4892/wwsds.jpg .

EDIT :http://img18.imageshack.us/img18/7046/wwsdsm.jpg

In the ACIKLAMA field I want add button .. How can I add button This field .

Thanks for Reply .

Serkann .

8 REPLIES 8
Read only

Former Member
0 Likes
1,066

Hi,

Check with this link.

[https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/abap-changingCellcharacteristicsinALV+%2528OOPS%2529]

Regards,

NNR.

Read only

Former Member
0 Likes
1,066

hi

i want to ask how to add icon to this button

Read only

Former Member
0 Likes
1,066

Hi.

If you want to know how to create an icon in the button..

When you create a button in pf status. double click it.

it will ask for icon name.. there will be a list of icons from which you can select..

M still not sure if you are asking the same thing..

Read only

0 Likes
1,066

i mean if i use ooalv that one column as button how to add icon in it?

Read only

Former Member
0 Likes
1,066

Hi ,

Kindly go through this link below:

https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action%3fpageid=60654876

Hope it helps

Regards

Mansi

Read only

Former Member
Read only

Former Member
0 Likes
1,066

Problem is not solved . I write this codes But Dont create button in ALV cells How can I add button ??

Screen view is here : http://img13.imageshack.us/img13/221/capturen.jpg

My code is here :


EDIT :
DATA  : wa_celltab TYPE lvc_s_styl,
        it_celltab TYPE lvc_t_styl .
----------------------------------------------------------
 gs_layout-stylefname  = 'CELLTAB' .
-----------------------------------------------------------
DATA lt_ot LIKE gt_ot_1 OCCURS 0 WITH HEADER LINE .
LOOP AT gt_ot_1 INTO lt_ot.
 perform set_grid_button changing it_celltab.
   lt_ot-celltab[]   = it_celltab[].
   gt_ot_1-celltab[] = lt_ot-celltab[] .
   lt_ot-button = '@55@'.
   MODIFY gt_ot_1 FROM lt_ot  .
 ENDLOOP.
ENDFORM.    

*&---------------------------------------------------------------------*
*&      Form  SET_GRID_BUTTON
*&---------------------------------------------------------------------*

form set_grid_button  changing  ct_style type lvc_t_styl.

data: ls_button type lvc_s_styl.
  clear ct_style.
  wa_celltab-fieldname = 'BUTTON'.
   wa_celltab-style     = cl_gui_alv_grid=>mc_style_button.
   wa_celltab-style2    = space.
   wa_celltab-style3    = space.
   wa_celltab-style4    = space.
   wa_celltab-maxlen    = 5.
  insert  wa_celltab into table ct_style.
endform.                    " SET_GRID_BUTTON

Thanks for reply .

Serkann

Edited by: Serkan Taskan : for Show DATAS

Read only

0 Likes
1,066

Uhm... maybe:

1 - include ICON.

2 - in your code, add the following lines to your workarea of the field catalog:

wa_celltab-scrtext_l = YOURICON. "for example, ICON_CHECKED
  wa_celltab-coltext = YOURICON.

Hope this helps,

Matteo

EDIT: sorry, I misunderstood... I was thinking you wanted icons on the column bar.

Edited by: Matteo Montalto on Mar 18, 2009 12:24 PM