<?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: user command event is not working ........ in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-event-is-not-working/m-p/8611397#M1663221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Lingaraj.&lt;/P&gt;&lt;P&gt;Check your events handlers is registered&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET HANDLER go_event_receiver-&amp;gt;handle_double_click FOR go_grid.
SET HANDLER go_event_receiver-&amp;gt;handle_toolbar      FOR go_grid.
SET HANDLER go_event_receiver-&amp;gt;handle_user_command FOR go_grid.
SET HANDLER go_event_receiver-&amp;gt;handle_menu_button  FOR go_grid.
SET HANDLER go_event_receiver-&amp;gt;handle_context_menu FOR go_grid.
SET HANDLER go_event_receiver-&amp;gt;on_f4               FOR go_grid.
SET HANDLER go_event_receiver-&amp;gt;handle_data_changed FOR go_grid.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;before calling an ALV:&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;go_grid-&amp;gt;set_table_for_first_display(
     EXPORTING  is_layout        = ls_layout
                is_variant       = ls_variant
                i_save           = 'A'
      CHANGING  it_outtab        = gt_outtab
                it_fieldcatalog  = lt_fieldcat&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will be helpful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;George Shlyahov.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Feb 2012 08:57:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-24T08:57:19Z</dc:date>
    <item>
      <title>user command event is not working ........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-event-is-not-working/m-p/8611396#M1663220</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class event_class definition.&lt;/P&gt;&lt;P&gt;  public section.&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;       handle_user_command&lt;/P&gt;&lt;P&gt;           for event after_user_command of cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;               importing e_ucomm.&lt;/P&gt;&lt;P&gt;    methods:handle_hotspot&lt;/P&gt;&lt;P&gt;      for event  hotspot_click of cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;           importing e_row_id.&lt;/P&gt;&lt;P&gt;endclass.                    "event_class DEFINITION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******&lt;STRONG&gt;selection screen&lt;/STRONG&gt;**************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call screen 100.&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 event_class 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;********&lt;STRONG&gt;class implimentations&lt;/STRONG&gt;********************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class event_class 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 'SAVE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   wa_default-checkbox = 'X'.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;  endmethod.            "handle_user_command&lt;/P&gt;&lt;P&gt;  method  handle_hotspot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_default-checkbox = 'X'.&lt;/P&gt;&lt;P&gt;    lv_layout-zebra = 'X'.&lt;/P&gt;&lt;P&gt;    lv_hotspot = lv_hotspot + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    modify       lit_default&lt;/P&gt;&lt;P&gt;    index        e_row_id&lt;/P&gt;&lt;P&gt;    from         wa_default&lt;/P&gt;&lt;P&gt;    transporting checkbox.&lt;/P&gt;&lt;P&gt;    lv_id = e_row_id.&lt;/P&gt;&lt;P&gt;*************&lt;STRONG&gt;refreshing tables&lt;/STRONG&gt;************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call method wa_alv-&amp;gt;refresh_table_display&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       is_stable      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       i_soft_refresh =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       finished       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       others         = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endmethod.        &lt;/P&gt;&lt;P&gt;            "handle_user_command&lt;/P&gt;&lt;P&gt;method user_command.&lt;/P&gt;&lt;P&gt;*****&lt;STRONG&gt;some code i will write with help of e_ucomm&lt;/STRONG&gt;**********(   control not comming here)&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endclass.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,Here i have one alv grid display if i click on grid checkbox method (hotspot) will triggers properly,,,,but if i select any button like save ,modify i have created on screen method user_command is not triggering ,control is going to pai of that screen.my question is it shold trigger usr_command right??????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help appriciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 08:24:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-event-is-not-working/m-p/8611396#M1663220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-24T08:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: user command event is not working ........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-event-is-not-working/m-p/8611397#M1663221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Lingaraj.&lt;/P&gt;&lt;P&gt;Check your events handlers is registered&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET HANDLER go_event_receiver-&amp;gt;handle_double_click FOR go_grid.
SET HANDLER go_event_receiver-&amp;gt;handle_toolbar      FOR go_grid.
SET HANDLER go_event_receiver-&amp;gt;handle_user_command FOR go_grid.
SET HANDLER go_event_receiver-&amp;gt;handle_menu_button  FOR go_grid.
SET HANDLER go_event_receiver-&amp;gt;handle_context_menu FOR go_grid.
SET HANDLER go_event_receiver-&amp;gt;on_f4               FOR go_grid.
SET HANDLER go_event_receiver-&amp;gt;handle_data_changed FOR go_grid.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;before calling an ALV:&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;go_grid-&amp;gt;set_table_for_first_display(
     EXPORTING  is_layout        = ls_layout
                is_variant       = ls_variant
                i_save           = 'A'
      CHANGING  it_outtab        = gt_outtab
                it_fieldcatalog  = lt_fieldcat&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will be helpful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;George Shlyahov.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 08:57:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-event-is-not-working/m-p/8611397#M1663221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-24T08:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: user command event is not working ........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-event-is-not-working/m-p/8611398#M1663222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 07:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-event-is-not-working/m-p/8611398#M1663222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-27T07:36:23Z</dc:date>
    </item>
  </channel>
</rss>

