<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2004456#M408435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you had defined your custom buttons in the application tool bar , to handle the user command of custom buttons as well as some standard functions we use USER_COMMAND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM &amp;lt;b&amp;gt;USER_COMMAND&amp;lt;/b&amp;gt; USING P_UCOMM TYPE SY-UCOMM&lt;/P&gt;&lt;P&gt;                        P_SELFLD TYPE SLIS_SELFIELD.&lt;/P&gt;&lt;P&gt;    CASE P_UCOMM.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    WHEN '&amp;amp;IC1'.    "Double click&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Mar 2007 14:27:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-12T14:27:34Z</dc:date>
    <item>
      <title>USER-COMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2004454#M408433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Can anybody tell me , what is the functionlity of USER-COMMAND in ALV report?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I seen a line like below in the ALV report.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;I_callback_user_command = 'USER_COMMAND'  &amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide me , what is the functionality of this and in what situation  i can use this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;kp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 14:24:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2004454#M408433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T14:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: USER-COMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2004455#M408434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;USER_COMMAND here is a form name ..&lt;/P&gt;&lt;P&gt;It makes a perform call...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM user_command  USING r_ucomm LIKE sy-ucomm          &lt;/P&gt;&lt;P&gt;                         rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here program gives the control back to the program from ALV... Here u can do what ever u want in this program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fRO EXAMPLE ...&lt;/P&gt;&lt;P&gt;FORM stable using lw_ucomm type sy-ucomm fs_selfield type slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  case lw_ucomm.&lt;/P&gt;&lt;P&gt;    when '&amp;amp;OUP'.&lt;/P&gt;&lt;P&gt;      sort t_flight descending stable by carrid connid." fldate.&lt;/P&gt;&lt;P&gt;    when '&amp;amp;ODN'.&lt;/P&gt;&lt;P&gt;      sort t_flight descending stable by carrid connid fldate.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards ,&lt;/P&gt;&lt;P&gt;sai ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 14:26:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2004455#M408434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T14:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: USER-COMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2004456#M408435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you had defined your custom buttons in the application tool bar , to handle the user command of custom buttons as well as some standard functions we use USER_COMMAND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM &amp;lt;b&amp;gt;USER_COMMAND&amp;lt;/b&amp;gt; USING P_UCOMM TYPE SY-UCOMM&lt;/P&gt;&lt;P&gt;                        P_SELFLD TYPE SLIS_SELFIELD.&lt;/P&gt;&lt;P&gt;    CASE P_UCOMM.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    WHEN '&amp;amp;IC1'.    "Double click&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 14:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2004456#M408435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T14:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: USER-COMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2004457#M408436</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;Passing an EXIT routine indicates to the ALV that the application wants&lt;/P&gt;&lt;P&gt;to respond to certain function codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally, these are function codes that are unknown to the ALV (that&lt;/P&gt;&lt;P&gt;is, are not standard ALV functions) and that were defined and set by a&lt;/P&gt;&lt;P&gt;user status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The interface of the form routine specified must be defined as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        FORM user_command  USING r_ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;                                 rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The EXIT routine is called whenever a function unknown to the ALV is&lt;/P&gt;&lt;P&gt; triggered or if the routine call before/after the execution of a&lt;/P&gt;&lt;P&gt; standard function code has been defined by interface parameter&lt;/P&gt;&lt;P&gt; IT_EVENT_EXIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 14:28:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2004457#M408436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T14:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: USER-COMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2004458#M408437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This line is telling the ALV that this is the FORM routine which will handle the function codes from the ALV grid.  You can put your own buttons on the toolbar and handle them in this FORM routine.  You can also handle such things like the double click on a line in the ALV using the FORM defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 14:28:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2004458#M408437</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-03-12T14:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: USER-COMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2004459#M408438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We use this statement for interactive reporting purpose from the basic list of ALV.&lt;/P&gt;&lt;P&gt;like:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;call hierarchical ALV display function module&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            i_callback_program       = 'ZWMR_PICK_STATUS_REPORT'&lt;/P&gt;&lt;P&gt;            i_callback_pf_status_set = 'SET_STATUS'&lt;/P&gt;&lt;P&gt;            i_callback_user_command =&lt;/P&gt;&lt;P&gt;               'USER_COMMAND' "custom gui status form&lt;/P&gt;&lt;P&gt;...............................................................................&lt;/P&gt;&lt;P&gt;and in the User Command we write the code what;s to do  further:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  user_command&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&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;      form called on user command from ALV list&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;FORM user_command USING r_ucomm     LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;                        rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: index TYPE i,&lt;/P&gt;&lt;P&gt;        w_disp_head LIKE LINE OF t_disp_head,&lt;/P&gt;&lt;P&gt;        w_door LIKE likp-lgtor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR r_lgtor. REFRESH r_lgtor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE r_ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'PICK'. " Double click line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Check field clicked on within ALVgrid report&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IF rs_selfield-fieldname = 'VBELN'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Read data table, using index of row user clicked on&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        READ TABLE t_disp_tab INTO wa_item_tab INDEX&lt;/P&gt;&lt;P&gt;                          rs_selfield-tabindex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Set parameter ID for transaction screen field&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        SET PARAMETER ID 'VL' FIELD wa_item_tab-vbeln.&lt;/P&gt;&lt;P&gt;        CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN.&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;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 14:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2004459#M408438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T14:30:49Z</dc:date>
    </item>
  </channel>
</rss>

