<?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 how to assign a function code to push button - cell in ALV Grid? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-a-function-code-to-push-button-cell-in-alv-grid/m-p/4684730#M1101390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A push button has been assigned to a cell in alv grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to assign a function code to this button and call it in the program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Nov 2008 15:19:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-10T15:19:19Z</dc:date>
    <item>
      <title>how to assign a function code to push button - cell in ALV Grid?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-a-function-code-to-push-button-cell-in-alv-grid/m-p/4684730#M1101390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A push button has been assigned to a cell in alv grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to assign a function code to this button and call it in the program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 15:19:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-a-function-code-to-push-button-cell-in-alv-grid/m-p/4684730#M1101390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T15:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to assign a function code to push button - cell in ALV Grid?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-a-function-code-to-push-button-cell-in-alv-grid/m-p/4684731#M1101391</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/e6/83a0375b5dd003e10000009b38f8cf/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/e6/83a0375b5dd003e10000009b38f8cf/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 15:24:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-a-function-code-to-push-button-cell-in-alv-grid/m-p/4684731#M1101391</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-11-10T15:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to assign a function code to push button - cell in ALV Grid?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-a-function-code-to-push-button-cell-in-alv-grid/m-p/4684732#M1101392</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;There will be a Function Code assigned to the PushButton. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trap the Function Code in the SY-UCOMM in Exit Subroutine "USER_COMMAND", and put your code inside that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 15:29:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-a-function-code-to-push-button-cell-in-alv-grid/m-p/4684732#M1101392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T15:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to assign a function code to push button - cell in ALV Grid?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-a-function-code-to-push-button-cell-in-alv-grid/m-p/4684733#M1101393</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_erp2004/helpdata/en/88/387f380c2f2e3ce10000009b38f8cf/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/88/387f380c2f2e3ce10000009b38f8cf/content.htm&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try,&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;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS cl_event_receiver DEFINITION.PUBLIC SECTION.   &lt;/P&gt;&lt;P&gt;DATA: ucomm TYPE sy-ucomm.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  toolbar&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;METHODS handle_toolbar_set     &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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  user command&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;METHODS handle_user_command&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;CLASS cl_event_receiver IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;METHOD handle_user_command.&lt;/P&gt;&lt;P&gt;   CASE e_ucomm.&lt;/P&gt;&lt;P&gt;     WHEN text-024.&lt;/P&gt;&lt;P&gt;       PERFORM upload_id.&lt;/P&gt;&lt;P&gt;     WHEN OTHERS.&lt;/P&gt;&lt;P&gt;   ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;    METHOD handle_toolbar_set.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;append a separator to normal toolbar&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   CLEAR ls_toolbar.&lt;/P&gt;&lt;P&gt;   MOVE 3 TO ls_toolbar-butn_type.&lt;/P&gt;&lt;P&gt;   APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.&lt;/P&gt;&lt;P&gt;CLEAR ls_toolbar.&lt;/P&gt;&lt;P&gt;   MOVE :text-032 TO ls_toolbar-function,&lt;/P&gt;&lt;P&gt;*" function code of the push button&lt;/P&gt;&lt;P&gt;         text-033 TO ls_toolbar-text.&lt;/P&gt;&lt;P&gt;*"text that will be displayed on the push button&lt;/P&gt;&lt;P&gt;   APPEND ls_toolbar&lt;/P&gt;&lt;P&gt;    TO e_object-&amp;gt;mt_toolbar.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;*set even handlers&lt;/P&gt;&lt;P&gt;SET HANDLER event_receiver1-&amp;gt;handle_toolbar_set  FOR g_grid1.&lt;/P&gt;&lt;P&gt; SET HANDLER event_receiver1-&amp;gt;handle_user_command FOR g_grid1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 15:50:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-a-function-code-to-push-button-cell-in-alv-grid/m-p/4684733#M1101393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T15:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to assign a function code to push button - cell in ALV Grid?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-a-function-code-to-push-button-cell-in-alv-grid/m-p/4684734#M1101394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use teh hotspot from the output of REUSE_ALV_GRID_DISPLAY_LVC. I tried the above suggestions, but I am getting a short dump for the set handler part - saying that the handler can not be null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what went wrong??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 18:33:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-a-function-code-to-push-button-cell-in-alv-grid/m-p/4684734#M1101394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T18:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to assign a function code to push button - cell in ALV Grid?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-a-function-code-to-push-button-cell-in-alv-grid/m-p/4684735#M1101395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BCALV_VERIFY_DATATYPES has a very good reference. used parts of the code and solved my issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 19:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-a-function-code-to-push-button-cell-in-alv-grid/m-p/4684735#M1101395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T19:27:30Z</dc:date>
    </item>
  </channel>
</rss>

