<?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: Button in alv cell in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-alv-cell/m-p/2149213#M453691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I've used this and it worked well cl_gui_alv_grid=&amp;gt;MC_STYLE_BUTTON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm finding some dificult to handle the click event... it does not do anything...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Alexandre&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Apr 2007 14:17:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-03T14:17:40Z</dc:date>
    <item>
      <title>Button in alv cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-alv-cell/m-p/2149208#M453686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to put a button is an alv cell, just like we put a icon?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Alexandre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 20:17:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-alv-cell/m-p/2149208#M453686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T20:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Button in alv cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-alv-cell/m-p/2149209#M453687</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;Please check program BCALV_TEST_GRID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also check for  cl_gui_alv_grid=&amp;gt;mc_style_button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 20:52:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-alv-cell/m-p/2149209#M453687</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-04-02T20:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Button in alv cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-alv-cell/m-p/2149210#M453688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also you can copy the status gui using trx SE80&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Sebastiá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 21:40:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-alv-cell/m-p/2149210#M453688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T21:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Button in alv cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-alv-cell/m-p/2149211#M453689</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;&lt;/P&gt;&lt;P&gt;Try,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;set icon fields for all fields that contains the ICON in their name!&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR ls_fcat.&lt;/P&gt;&lt;P&gt;  ls_fcat-icon = c_checked.&lt;/P&gt;&lt;P&gt;  ls_fcat-edit = 'X'.&lt;/P&gt;&lt;P&gt;  ls_fcat-style = ls_fcat-style bit-xor&lt;/P&gt;&lt;P&gt;                  cl_gui_alv_grid=&amp;gt;MC_STYLE_BUTTON bit-xor&lt;/P&gt;&lt;P&gt;                  cl_gui_alv_grid=&amp;gt;MC_STYLE_ENABLEd.&lt;/P&gt;&lt;P&gt;  MODIFY exi_fieldcat FROM ls_fcat TRANSPORTING icon&lt;/P&gt;&lt;P&gt;          WHERE fieldname CS 'ICON'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 03:15:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-alv-cell/m-p/2149211#M453689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T03:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Button in alv cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-alv-cell/m-p/2149212#M453690</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 add a push button and handle it,you have to define a local class and use the methods &amp;lt;b&amp;gt;handle_toolbar&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;handle_user_command&amp;lt;/b&amp;gt;.Here is a sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CLASS lcl_eh DEFINITION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_eh DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ls_toolbar TYPE stb_button.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHODS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;handle_toolbar&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;FOR EVENT toolbar OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;IMPORTING e_object e_interactive,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;handle_user_command&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;FOR EVENT user_command OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;IMPORTING e_ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS. "lcl_eh DEFINITION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;*Type referencing an object of the class&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DATA: lo_obj TYPE REF TO lcl_eh.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CLASS lcl_eh IMPLEMENTATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_eh IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;*METHOD: HANDLE_TOOLBAR&lt;/P&gt;&lt;P&gt;*DESCRIPTION: This method provides the necessary detail required to&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create an extra button in the toolbar.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD handle_toolbar.&lt;/P&gt;&lt;P&gt;CLEAR ls_toolbar.&lt;/P&gt;&lt;P&gt;MOVE 'CREATE' TO ls_toolbar-function.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MOVE 0 TO ls_toolbar-butn_type.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;MOVE 'CREATE' TO ls_toolbar-text.&lt;/P&gt;&lt;P&gt;MOVE 'ICON_DETAIL' TO ls_toolbar-icon.&lt;/P&gt;&lt;P&gt;MOVE 'CREATE' TO ls_toolbar-quickinfo.&lt;/P&gt;&lt;P&gt;APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.&lt;/P&gt;&lt;P&gt;ENDMETHOD. "handle_toolbar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;*METHOD: HANDLE_USER_COMMAND&lt;/P&gt;&lt;P&gt;*DESCRIPTION: This method is used to handle the push button&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD handle_user_command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE e_ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'CREATE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**logic&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Beejal&lt;/P&gt;&lt;P&gt;**reward if this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 04:21:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-alv-cell/m-p/2149212#M453690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T04:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Button in alv cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-alv-cell/m-p/2149213#M453691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I've used this and it worked well cl_gui_alv_grid=&amp;gt;MC_STYLE_BUTTON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm finding some dificult to handle the click event... it does not do anything...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Alexandre&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 14:17:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-alv-cell/m-p/2149213#M453691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T14:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Button in alv cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-alv-cell/m-p/2149214#M453692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found it, the event BUTTON_CLICK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the answers.&lt;/P&gt;&lt;P&gt;Alexandre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 14:25:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-alv-cell/m-p/2149214#M453692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T14:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Button in alv cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-alv-cell/m-p/2149215#M453693</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;how did you put an Icon on the button. I have Buttons but there is only the ID on them and not the Picture of the Icon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sinan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 16:06:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-alv-cell/m-p/2149215#M453693</guid>
      <dc:creator>sinan_keklik</dc:creator>
      <dc:date>2007-04-17T16:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Button in alv cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-alv-cell/m-p/2149216#M453694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my field is a char(4), I just move the icon to this, and in the fieldcatalog I put the -datatype = 'ICON'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexandre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 17:15:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-alv-cell/m-p/2149216#M453694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T17:15:44Z</dc:date>
    </item>
  </channel>
</rss>

