<?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: Customized Button code not working on selection screen. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/customized-button-code-not-working-on-selection-screen/m-p/4165791#M995917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the short program which will show how to do it. You are simply checking for the USER-COMMAND value CHK and changing it to ONLI which is the F8 button, then the START-OF-SELECTION will be fired and you can output the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zyou_0001.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TABLES:  sscrfields.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN PUSHBUTTON 2(10)  pbut1 USER-COMMAND chk.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  pbut1 = 'Test This'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  IF sscrfields-ucomm = 'CHK'.&lt;/P&gt;&lt;P&gt;    sscrfields-ucomm = 'ONLI'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  DO 10 TIMES.&lt;/P&gt;&lt;P&gt;    WRITE:/ sy-index.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&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;Mohammed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2008 10:25:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-21T10:25:11Z</dc:date>
    <item>
      <title>Customized Button code not working on selection screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customized-button-code-not-working-on-selection-screen/m-p/4165787#M995913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a button on the selection screen next to Execute button on the Application Tool Bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written some validations on the button.It was defined on the PF-Status and its funtion text i have given as 'Show'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is that the code is not working.When I execute the button,the screen just remains their.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sy-comm always returns the value of 'UCOM' for whatever even takes place on the screen.The execution of the program does not stops their in debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me with some sample code and also provide the value of sy-ucomm which i should use for the customized button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good points will be rewarded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 10:09:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customized-button-code-not-working-on-selection-screen/m-p/4165787#M995913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T10:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Customized Button code not working on selection screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customized-button-code-not-working-on-selection-screen/m-p/4165788#M995914</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;First of all you need to set function code of that button in PF status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then write code as&lt;/P&gt;&lt;P&gt;In PAI&lt;/P&gt;&lt;P&gt;caes sy-ucomm&lt;/P&gt;&lt;P&gt;when 'FCODE'.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 10:12:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customized-button-code-not-working-on-selection-screen/m-p/4165788#M995914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T10:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Customized Button code not working on selection screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customized-button-code-not-working-on-selection-screen/m-p/4165789#M995915</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;case sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'FCODE'.&lt;/P&gt;&lt;P&gt;&amp;lt;codings&amp;gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;when 'FCODE2'.&lt;/P&gt;&lt;P&gt;&amp;lt;codings&amp;gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: prabhu p on Jul 21, 2008 12:16 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 10:15:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customized-button-code-not-working-on-selection-screen/m-p/4165789#M995915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T10:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Customized Button code not working on selection screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customized-button-code-not-working-on-selection-screen/m-p/4165790#M995916</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;first of all in  SET PF-STATUS 'TAB_STATUS'.&lt;/P&gt;&lt;P&gt; in application tool bar create your FCODE button of normal application type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that in your PAI write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'FCODE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help you.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 10:23:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customized-button-code-not-working-on-selection-screen/m-p/4165790#M995916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T10:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Customized Button code not working on selection screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customized-button-code-not-working-on-selection-screen/m-p/4165791#M995917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the short program which will show how to do it. You are simply checking for the USER-COMMAND value CHK and changing it to ONLI which is the F8 button, then the START-OF-SELECTION will be fired and you can output the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zyou_0001.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TABLES:  sscrfields.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN PUSHBUTTON 2(10)  pbut1 USER-COMMAND chk.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  pbut1 = 'Test This'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  IF sscrfields-ucomm = 'CHK'.&lt;/P&gt;&lt;P&gt;    sscrfields-ucomm = 'ONLI'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  DO 10 TIMES.&lt;/P&gt;&lt;P&gt;    WRITE:/ sy-index.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&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;Mohammed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 10:25:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customized-button-code-not-working-on-selection-screen/m-p/4165791#M995917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T10:25:11Z</dc:date>
    </item>
  </channel>
</rss>

