‎2009 Mar 17 7:59 AM
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 .
‎2009 Mar 17 8:06 AM
Hi,
Check with this link.
[https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/abap-changingCellcharacteristicsinALV+%2528OOPS%2529]
Regards,
NNR.
‎2009 Mar 17 8:25 AM
‎2009 Mar 17 9:32 AM
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..
‎2009 Mar 18 1:59 AM
i mean if i use ooalv that one column as button how to add icon in it?
‎2009 Mar 18 3:53 AM
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
‎2009 Mar 18 4:47 AM
‎2009 Mar 18 10:02 AM
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
‎2009 Mar 18 11:23 AM
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