<?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/2218623#M476031</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;chk this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zchk.
 
 
tables: sscrfields.
 
PARAMETERS: p_hold AS RADIOBUTTON DEFAULT 'X' USER-COMMAND hold.
 
at selection-screen.
 
  PERFORM sscr_user_commands.
*---------------------------------------------------------------------*
*       FORM sscr_user_commands                                       *
*---------------------------------------------------------------------*
FORM sscr_user_commands.
  CASE sscrfields-ucomm.
    WHEN 'HOLD'.            " Make this uppercase.
 
      break-point.
 
  ENDCASE.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 May 2007 09:11:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-11T09:11:50Z</dc:date>
    <item>
      <title>user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2218622#M476030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in radio button at the end we used user command usr..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why we are using this.eg,          &lt;/P&gt;&lt;P&gt; SELECTION-SCREEN BEGIN OF BLOCK RB WITH FRAME TITLE text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt;             PARAMETERS : Import RADIOBUTTON GROUP RB user-command usr,&lt;/P&gt;&lt;P&gt;                          Export RADIOBUTTON GROUP RB DEFAULT 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 09:08:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2218622#M476030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T09:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2218623#M476031</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;chk this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zchk.
 
 
tables: sscrfields.
 
PARAMETERS: p_hold AS RADIOBUTTON DEFAULT 'X' USER-COMMAND hold.
 
at selection-screen.
 
  PERFORM sscr_user_commands.
*---------------------------------------------------------------------*
*       FORM sscr_user_commands                                       *
*---------------------------------------------------------------------*
FORM sscr_user_commands.
  CASE sscrfields-ucomm.
    WHEN 'HOLD'.            " Make this uppercase.
 
      break-point.
 
  ENDCASE.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 09:11:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2218623#M476031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T09:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2218624#M476032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;USER COMMAND will perform actions on radiobutton click&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;chk this example first using USER-COMMAND USR&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ABC MESSAGE-ID ZZ.

PARAMETERS : IMPORT RADIOBUTTON GROUP RB USER-COMMAND USR,
EXPORT RADIOBUTTON GROUP RB DEFAULT 'X'.

PARAMETERS : P_MATNR LIKE MARA-MATNR.

AT SELECTION-SCREEN OUTPUT.


  IF IMPORT EQ 'X'.
    LOOP AT SCREEN.
      IF SCREEN-NAME EQ 'P_MATNR'.
        SCREEN-INPUT = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSEIF EXPORT EQ 'X'.
    LOOP AT SCREEN.
      IF SCREEN-NAME EQ 'P_MATNR'.
        SCREEN-INPUT = 1.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;and then removing user-command , notice the difference&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ABC MESSAGE-ID ZZ.

PARAMETERS : IMPORT RADIOBUTTON GROUP RB 
EXPORT RADIOBUTTON GROUP RB DEFAULT 'X'.

PARAMETERS : P_MATNR LIKE MARA-MATNR.

AT SELECTION-SCREEN OUTPUT.


  IF IMPORT EQ 'X'.
    LOOP AT SCREEN.
      IF SCREEN-NAME EQ 'P_MATNR'.
        SCREEN-INPUT = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSEIF EXPORT EQ 'X'.
    LOOP AT SCREEN.
      IF SCREEN-NAME EQ 'P_MATNR'.
        SCREEN-INPUT = 1.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 09:17:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2218624#M476032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T09:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2218625#M476033</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;in radio buttons USER-COMMAND can be used to assign a function code fcode to the first parameter in a radio button group. The function code fcode must be specified directly, and have a maximum length of 20 characters. To evaluate the function code, an interface work area of the structure SSCRFIELDS from the ABAP Dictionary must be declared using the statement TABLES. When the user selects any radio button of the radio button group on the selection screen, the runtime environment triggers the event AT SELECTION-SCREEN and transfers the function code fcode to the component ucomm of the interface work area sscrfields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 09:20:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2218625#M476033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T09:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2218626#M476034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for everyone for helping me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 10:32:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/2218626#M476034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T10:32:25Z</dc:date>
    </item>
  </channel>
</rss>

