<?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: LOOP AT SCREEN and USER-COMMAND in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-user-command/m-p/3034088#M717782</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi feng,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After every PAI event, the screen program automatically calls the PBO event so there is no need to call it manually. When you give usercommand to any particular field and if you change the value at runtime it will trigger the PAI. When the PAI is completed then PBO is triggered automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Muthu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2007 08:13:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-29T08:13:20Z</dc:date>
    <item>
      <title>LOOP AT SCREEN and USER-COMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-user-command/m-p/3034081#M717775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,experts.&lt;/P&gt;&lt;P&gt;I have a question when I want to modify the screen. My requirement is that: In the selection-screen there are two radio buttons, and four text fields. When I select the first radio button , the last two text fields will become gray; when I select the second radio button , the first two text fields will become gray.&lt;/P&gt;&lt;P&gt;At first , my code is below,but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS: &amp;lt;b&amp;gt;p_rb1 RADIOBUTTON GROUP radi DEFAULT 'X'&amp;lt;/b&amp;gt;,&lt;/P&gt;&lt;P&gt;            p_rb2 RADIOBUTTON GROUP radi.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_txt1(10) MODIF ID sc1,&lt;/P&gt;&lt;P&gt;            p_txt2(10) MODIF ID sc1,&lt;/P&gt;&lt;P&gt;            p_txt3(10) MODIF ID sc2,&lt;/P&gt;&lt;P&gt;            p_txt4(10) MODIF ID sc2.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  IF p_rb1 = 'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-group1 = 'SC2'.&lt;/P&gt;&lt;P&gt;        screen-input = '0'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-group1 = 'SC1'.&lt;/P&gt;&lt;P&gt;        screen-input = '0'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But after I adding &amp;lt;b&amp;gt;USER-COMMAND UC1 &amp;lt;/b&amp;gt;  to &amp;lt;b&amp;gt;p_rb1 RADIOBUTTON GROUP radi DEFAULT 'X'&amp;lt;/b&amp;gt; , it worked. &lt;/P&gt;&lt;P&gt;But I don't understand how the 'user-command uc1' works.Can you help me? And if you have a better idea , please tell me.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;feng.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 06:38:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-user-command/m-p/3034081#M717775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T06:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT SCREEN and USER-COMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-user-command/m-p/3034082#M717776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PARAMETERS: p_rb1 RADIOBUTTON GROUP radi DEFAULT 'X' &amp;lt;b&amp;gt;USER-COMMAND rb,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried and its working well..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 07:43:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-user-command/m-p/3034082#M717776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T07:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT SCREEN and USER-COMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-user-command/m-p/3034083#M717777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The addition 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. If a function code used in the GUI status of the selection screen is specified for fcode, the selection screen processing is affected accordingly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward if dis helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 07:47:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-user-command/m-p/3034083#M717777</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2007-10-29T07:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT SCREEN and USER-COMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-user-command/m-p/3034084#M717778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much, abapuser.&lt;/P&gt;&lt;P&gt;But in my code , I havn't used SSCRFIELDS. USER-COMMAND can trigger event AT SELECTION-SCREEN,can it trigger the event AT SELECTION-SCREEN OUTPUT?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;feng.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 07:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-user-command/m-p/3034084#M717778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T07:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT SCREEN and USER-COMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-user-command/m-p/3034085#M717779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Feng,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actaully when you give selection field without user command, the code under the AT SELECTION-SCREEN OUTPUT will be triggered when the program is executed or else if there is any user action performed on the selection screen for eg: SAVE, EXECUTE(F8)., So when you change the value of the radio button which doesnt have any user command name so it wont trigger the PBO event. Whereas when you mention the user command name to the radio button. When there is a change in the radio button it will trigger PBO and after it will trigger PAI which SELECTION-SCREEN OUTPUT. Specifying the user-command name is the better option to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Muthu,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 07:56:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-user-command/m-p/3034085#M717779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T07:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT SCREEN and USER-COMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-user-command/m-p/3034086#M717780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks , Muthu Prabakaran Selvam.&lt;/P&gt;&lt;P&gt;But I found this in the SAP Library:In the PBO of the selection screen, the &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT event is triggered. So, AT SELECTION-SCREEN OUTPUT is a PBO event. Can it triggers a PBO event?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;feng.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 08:06:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-user-command/m-p/3034086#M717780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T08:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT SCREEN and USER-COMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-user-command/m-p/3034087#M717781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;at selection-screen output is trigirred even if hit enter on screen.&lt;/P&gt;&lt;P&gt;so u can also use it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 08:11:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-user-command/m-p/3034087#M717781</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2007-10-29T08:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT SCREEN and USER-COMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-user-command/m-p/3034088#M717782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi feng,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After every PAI event, the screen program automatically calls the PBO event so there is no need to call it manually. When you give usercommand to any particular field and if you change the value at runtime it will trigger the PAI. When the PAI is completed then PBO is triggered automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Muthu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 08:13:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-user-command/m-p/3034088#M717782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T08:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT SCREEN and USER-COMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-user-command/m-p/3034089#M717783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Feng,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it will trigger PBO event. But for your requirement you can also refer below thread&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4351618"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 08:14:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-user-command/m-p/3034089#M717783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T08:14:06Z</dc:date>
    </item>
  </channel>
</rss>

