<?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 Execute button in Report List in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-button-in-report-list/m-p/5847645#M1319117</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;I have an ALV wich executes with user commad button a Report List (write) ; then when the Report List is showed i need to execute some action with some button so i set a status gui with the button , but when i press the button any action is executed ; no control is passed to program even if i set the debug mode and then press that button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does somebody knows how can i catch a button in report list for make some action , taking in account that the report list was called from an ALV user command button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jul 2009 02:12:42 GMT</pubDate>
    <dc:creator>former_member425121</dc:creator>
    <dc:date>2009-07-08T02:12:42Z</dc:date>
    <item>
      <title>Execute button in Report List</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-button-in-report-list/m-p/5847645#M1319117</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;I have an ALV wich executes with user commad button a Report List (write) ; then when the Report List is showed i need to execute some action with some button so i set a status gui with the button , but when i press the button any action is executed ; no control is passed to program even if i set the debug mode and then press that button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does somebody knows how can i catch a button in report list for make some action , taking in account that the report list was called from an ALV user command button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 02:12:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-button-in-report-list/m-p/5847645#M1319117</guid>
      <dc:creator>former_member425121</dc:creator>
      <dc:date>2009-07-08T02:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Execute button in Report List</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-button-in-report-list/m-p/5847646#M1319118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you will need to activate the events of user_command in the events activating subroutine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
form f_eventtab_build changing lt_events type slis_t_event.
  data:
    lw_event type slis_alv_event.

  refresh lt_events.

  call function 'REUSE_ALV_EVENTS_GET'
    exporting
      i_list_type = 0
    importing
      et_events   = lt_events.

  read table lt_events
  with key name = slis_ev_user_command into lw_event.
  if sy-subrc = gc_zero.
    move slis_ev_user_command to: lw_event-form, lw_event-name.
    append lw_event to lt_events.
  endif.
endform.                    " f_eventtab_build


form user_command.
  if sy-ucomm = 'XXX'.
*   etc.....etc......  
  endif.

endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; does this solve your problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Andre Julius on Jul 8, 2009 4:30 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 02:28:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-button-in-report-list/m-p/5847646#M1319118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-08T02:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Execute button in Report List</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-button-in-report-list/m-p/5847647#M1319119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set the function code / sy-ucom value in your gui status.&lt;/P&gt;&lt;P&gt;then on the PAI&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;when '&amp;lt;value you set in gui status for that button&amp;gt;.&lt;/P&gt;&lt;P&gt;Put your code here&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 03:04:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-button-in-report-list/m-p/5847647#M1319119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-08T03:04:55Z</dc:date>
    </item>
  </channel>
</rss>

