<?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: size for parameters with user-command in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/size-for-parameters-with-user-command/m-p/2595219#M594373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;you cannot mention " user-command"  along with parameters(can use Modif id).&lt;/P&gt;&lt;P&gt;But u can use the "user-command " along with radio-button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert back if any issues,&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Aug 2007 17:25:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-06T17:25:29Z</dc:date>
    <item>
      <title>size for parameters with user-command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/size-for-parameters-with-user-command/m-p/2595218#M594372</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 declared the parameters as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_insty like qmat-art user-command chg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but gives me an error qmat-art does not have length 1. How to specify size along with user-command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;bindazme&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 17:22:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/size-for-parameters-with-user-command/m-p/2595218#M594372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T17:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: size for parameters with user-command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/size-for-parameters-with-user-command/m-p/2595219#M594373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;you cannot mention " user-command"  along with parameters(can use Modif id).&lt;/P&gt;&lt;P&gt;But u can use the "user-command " along with radio-button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert back if any issues,&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 17:25:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/size-for-parameters-with-user-command/m-p/2595219#M594373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T17:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: size for parameters with user-command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/size-for-parameters-with-user-command/m-p/2595220#M594374</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;Why you are using user-command with a parameter.&lt;/P&gt;&lt;P&gt;Whats your exact requirement.&lt;/P&gt;&lt;P&gt;Using usere command with a parameter makes no sence.&lt;/P&gt;&lt;P&gt;It is used mainly with radiobuttons, checkbokes ets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 17:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/size-for-parameters-with-user-command/m-p/2595220#M594374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T17:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: size for parameters with user-command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/size-for-parameters-with-user-command/m-p/2595221#M594375</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;User command will only work with parameter as checkbox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters: p_insty type c as checkbox user-command CHG.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 17:31:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/size-for-parameters-with-user-command/m-p/2595221#M594375</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-08-06T17:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: size for parameters with user-command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/size-for-parameters-with-user-command/m-p/2595222#M594376</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 2 parameter options and 2 buttons - activate and deactivate. I was told to use user-command to to make it both activate and deactivate without clicking the execute button on top left. The buttons work. But every time i have to click on the execute button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;bindazme&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 17:41:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/size-for-parameters-with-user-command/m-p/2595222#M594376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T17:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: size for parameters with user-command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/size-for-parameters-with-user-command/m-p/2595223#M594377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.


parameters: p_fld1 radiobutton group grp1 user-command chg default 'X',
            p_fld2 radiobutton group grp1.
selection-screen pushbutton /1(20) pb1 user-command act.
selection-screen pushbutton /1(20) pb2 user-command dea.

at selection-screen output.

  pb1 = 'Activate'.
  pb2 = 'Deactivate'.

  loop at screen.
    if screen-name = 'PB1'
       and p_fld2 = 'X'.
      screen-active = '0'.
    endif.
    if screen-name = 'PB2'
      and p_fld1 = 'X'.
      screen-active = '0'.
    endif.
    modify screen.
  endloop.

&lt;/CODE&gt;&lt;/PRE&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, 06 Aug 2007 17:59:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/size-for-parameters-with-user-command/m-p/2595223#M594377</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-06T17:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: size for parameters with user-command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/size-for-parameters-with-user-command/m-p/2595224#M594378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or making inactive?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.


parameters: p_fld1 radiobutton group grp1 user-command chg default 'X',
            p_fld2 radiobutton group grp1.
selection-screen pushbutton /1(20) pb1 user-command act.
selection-screen pushbutton /1(20) pb2 user-command dea.

at selection-screen output.

  pb1 = 'Activate'.
  pb2 = 'Deactivate'.

  loop at screen.
    if screen-name = 'PB1'
       and p_fld2 = 'X'.
      screen-input = '0'.      "&amp;lt;-- Not read for input
    endif.
    if screen-name = 'PB2'
      and p_fld1 = 'X'.
      screen-input = '0'.     "&amp;lt;-- Not read for input
    endif.
    modify screen.
  endloop.

&lt;/CODE&gt;&lt;/PRE&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, 06 Aug 2007 18:01:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/size-for-parameters-with-user-command/m-p/2595224#M594378</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-06T18:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: size for parameters with user-command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/size-for-parameters-with-user-command/m-p/2595225#M594379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I have misunderstood your question.  Try this sample coding.  Here I am forcing the "Execute" of the selection-screen based on the user clicking the buttons on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

tables: sscrfields.

selection-screen pushbutton /1(20) pb1 user-command act.
selection-screen pushbutton /1(20) pb2 user-command dea.

at selection-screen output.

pb1 = 'Activate'.
pb2 = 'Deactivate'.

at selection-screen.

  case sy-ucomm.

    when 'ACT' or 'DEA'.
      sscrfields-ucomm = 'ONLI'.

  endcase.


start-of-selection.


  write:/ 'START-of-SELECTION has been fired'.

&lt;/CODE&gt;&lt;/PRE&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, 06 Aug 2007 18:07:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/size-for-parameters-with-user-command/m-p/2595225#M594379</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-06T18:07:53Z</dc:date>
    </item>
  </channel>
</rss>

