<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: column as pushbutton in alv in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-as-pushbutton-in-alv/m-p/4340404#M1033829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/88/387f380c2f2e3ce10000009b38f8cf/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/88/387f380c2f2e3ce10000009b38f8cf/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Aug 2008 09:58:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-22T09:58:18Z</dc:date>
    <item>
      <title>column as pushbutton in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-as-pushbutton-in-alv/m-p/4340402#M1033827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;       i want to know the moethod by which we can display a coulumn as pushbutton in alv when we are usingFM Reuse_alv_list_display.. to display  ALV...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if possible then give me some sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 09:54:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-as-pushbutton-in-alv/m-p/4340402#M1033827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T09:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: column as pushbutton in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-as-pushbutton-in-alv/m-p/4340403#M1033828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.Have an extra field in your internal table, (ex: box)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Now mention the Field as Box field in the layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;layout-box_fieldname = 'BOX'. "from step 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3, pass this layout to the alv function parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can see a button.&lt;/P&gt;&lt;P&gt;is that you are expecting..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you want a button in the column then using this function module it is not possible. using LVC Function or OO ALV it is possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 09:58:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-as-pushbutton-in-alv/m-p/4340403#M1033828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T09:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: column as pushbutton in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-as-pushbutton-in-alv/m-p/4340404#M1033829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/88/387f380c2f2e3ce10000009b38f8cf/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/88/387f380c2f2e3ce10000009b38f8cf/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 09:58:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-as-pushbutton-in-alv/m-p/4340404#M1033829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T09:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: column as pushbutton in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-as-pushbutton-in-alv/m-p/4340405#M1033830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To display all cells of a column as pushbuttons, you use the field STYLE of the field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijetha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 09:59:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-as-pushbutton-in-alv/m-p/4340405#M1033830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T09:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: column as pushbutton in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-as-pushbutton-in-alv/m-p/4340406#M1033831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi syed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include this class in you program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE &amp;lt;cl_alv_control&amp;gt;.&lt;/P&gt;&lt;P&gt;by dbl clicking this you find ALV_STYLE_BUTTON&lt;/P&gt;&lt;P&gt;using this we can show the column as button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help you&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;deva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 10:00:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-as-pushbutton-in-alv/m-p/4340406#M1033831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T10:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: column as pushbutton in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-as-pushbutton-in-alv/m-p/4340407#M1033832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check This example which shows button in a cell&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ZTESTALV.

type-pools: slis.

*Fieldcatalog
data: it_fieldcat type lvc_t_fcat,
it_fieldcat1 type slis_t_fieldcat_alv..

*For Events
data:it_events type slis_t_event.

data: x_fieldcat type lvc_s_fcat,
x_fieldcat1 type slis_fieldcat_alv.
data:x_layout type lvc_s_layo.

data: begin of it_vbap occurs 0,
vbeln like vbap-vbeln,
posnr like vbap-posnr,
button(10),
end of it_vbap.
data: ls_outtab like line of it_vbap.
select vbeln
posnr
up to 10 rows
into corresponding fields of table it_vbap
from vbap.

data:l_pos type i value 1.
clear: l_pos.
l_pos = l_pos + 1.

x_fieldcat-seltext = 'Button'.
x_fieldcat-fieldname = 'BUTTON'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-icon = 'X'.
x_fieldcat-col_pos = l_pos.
x_fieldcat-outputlen = '10'.

x_fieldcat-style = x_fieldcat-style bit-xor
cl_gui_alv_grid=&amp;gt;mc_style_button bit-xor
cl_gui_alv_grid=&amp;gt;mc_style_enabled.
append x_fieldcat to it_fieldcat.
clear x_fieldcat.

l_pos = l_pos + 1.


x_fieldcat-seltext = 'VBELN'.
x_fieldcat-fieldname = 'VBELN'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = l_pos.
x_fieldcat-edit = 'X'.
x_fieldcat-outputlen = '10'.
x_fieldcat-ref_field = 'VBELN'.
x_fieldcat-ref_table = 'VBAK'.
append x_fieldcat to it_fieldcat.
clear x_fieldcat.
l_pos = l_pos + 1.

x_fieldcat-seltext = 'POSNR'.
x_fieldcat-fieldname = 'POSNR'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = l_pos.
x_fieldcat-outputlen = '5'.
append x_fieldcat to it_fieldcat.
clear x_fieldcat.
l_pos = l_pos + 1.

call function 'REUSE_ALV_GRID_DISPLAY_LVC'
  exporting
    i_callback_program = sy-repid
    is_layout_lvc      = x_layout
    it_fieldcat_lvc    = it_fieldcat
  tables
    t_outtab           = it_vbap[]
  exceptions
    program_error      = 1
    others             = 2.
if sy-subrc eq 0.

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 10:07:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-as-pushbutton-in-alv/m-p/4340407#M1033832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T10:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: column as pushbutton in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-as-pushbutton-in-alv/m-p/4340408#M1033833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 10:11:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-as-pushbutton-in-alv/m-p/4340408#M1033833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T10:11:34Z</dc:date>
    </item>
  </channel>
</rss>

