<?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: Adding Tool bar... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-tool-bar/m-p/2119611#M444063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have two solutions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;-1- Create a status &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use it in AT SELECTION-SCREEN OUTPUT with SET PF-STATUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;-2- Use FUNCTION KEY&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Pushbuttons in the Application Toolbar Locate the document in its SAP Library structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the application toolbar of the standard GUI status of the selection screen, five pushbuttons are predefined with the function codes FC01 to FC05, but are inactive by default. You can activate them during the definition of the selection screen as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN FUNCTION KEY &amp;lt;i&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The numbering &amp;lt;i&amp;gt; must be between 1 and 5. The individual function texts must be assigned to the FUNCTXT_0 components of structure SSCRFIELDS before the selection screen is called. You must declare this structure as an interface work area using the TABLES statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user chooses one of these buttons, the runtime environment triggers the AT SELECTION-SCREEN event and the function code FC0 is placed into the component UCOMM of the structure SSCRFIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the AT SELECTION-SCREEN event has been processed, the system displays the selection screen again. The only way to exit the selection screen and carry on processing the program is to choose Execute (F8). Consequently, the pushbuttons on the application toolbar are more suitable for controlling dynamic modifications of the selection screen than for controlling the program flow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&amp;lt;/i&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT demo_sel_screen_function_key.

TABLES sscrfields.

PARAMETERS: p_carrid TYPE s_carr_id,
            p_cityfr TYPE s_from_cit.

SELECTION-SCREEN: FUNCTION KEY 1,
                  FUNCTION KEY 2.

INITIALIZATION.
  sscrfields-functxt_01 = 'LH'.
  sscrfields-functxt_02 = 'UA'.

AT SELECTION-SCREEN.
  CASE sscrfields-ucomm.
      WHEN'FC01'.
      p_carrid = 'LH'.
      p_cityfr = 'Frankfurt'.
    WHEN 'FC02'.
      p_carrid = 'UA'.
      p_cityfr = 'Chicago'.
  ENDCASE.

START-OF-SELECTION.
  WRITE / 'START-OF-SELECTION'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;This defines a standard selection screen with two parameters. In the application toolbar, two pushbuttons are assigned the texts LH and UA and activated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user clicks one of the buttons, the AT SELECTION-SCREEN event is triggered and there the input fields are preassigned correspondingly. &amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2007 08:23:35 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2007-04-04T08:23:35Z</dc:date>
    <item>
      <title>Adding Tool bar...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-tool-bar/m-p/2119607#M444059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to add the Tool bar for the Selection-Screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in Advance.&lt;/P&gt;&lt;P&gt;Akshitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 08:11:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-tool-bar/m-p/2119607#M444059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T08:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Tool bar...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-tool-bar/m-p/2119608#M444060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pls go through this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_nw04/helpdata/en/e7/0eb237e29bc368e10000009b38f8cf/content.htm"&amp;gt;http://help.sap.com/saphelp_nw04/helpdata/en/e7/0eb237e29bc368e10000009b38f8cf/content.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 08:14:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-tool-bar/m-p/2119608#M444060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T08:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Tool bar...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-tool-bar/m-p/2119609#M444061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akshitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SET PF-STATUS 'NAME'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create this PF-Status in SE41. In this Z PF-STATUS you can insert your own button..&lt;/P&gt;&lt;P&gt;But you need to handle this button click in your report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Kunjal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 08:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-tool-bar/m-p/2119609#M444061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T08:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Tool bar...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-tool-bar/m-p/2119610#M444062</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;Use the statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN FUNCTION KEY X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X must be between 1 and 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_sel_screen_function_key.&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;PARAMETERS: p_carrid TYPE s_carr_id,&lt;/P&gt;&lt;P&gt;            p_cityfr TYPE s_from_cit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: FUNCTION KEY 1,&lt;/P&gt;&lt;P&gt;                  FUNCTION KEY 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  sscrfields-functxt_01 = 'LH'.&lt;/P&gt;&lt;P&gt;  sscrfields-functxt_02 = 'UA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  CASE sscrfields-ucomm.&lt;/P&gt;&lt;P&gt;      WHEN'FC01'.&lt;/P&gt;&lt;P&gt;      p_carrid = 'LH'.&lt;/P&gt;&lt;P&gt;      p_cityfr = 'Frankfurt'.&lt;/P&gt;&lt;P&gt;    WHEN 'FC02'.&lt;/P&gt;&lt;P&gt;      p_carrid = 'UA'.&lt;/P&gt;&lt;P&gt;      p_cityfr = 'Chicago'.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  WRITE / 'START-OF-SELECTION'.&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;Reward points if useful......&lt;/P&gt;&lt;P&gt;Suresh.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 08:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-tool-bar/m-p/2119610#M444062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T08:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Tool bar...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-tool-bar/m-p/2119611#M444063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have two solutions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;-1- Create a status &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use it in AT SELECTION-SCREEN OUTPUT with SET PF-STATUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;-2- Use FUNCTION KEY&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Pushbuttons in the Application Toolbar Locate the document in its SAP Library structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the application toolbar of the standard GUI status of the selection screen, five pushbuttons are predefined with the function codes FC01 to FC05, but are inactive by default. You can activate them during the definition of the selection screen as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN FUNCTION KEY &amp;lt;i&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The numbering &amp;lt;i&amp;gt; must be between 1 and 5. The individual function texts must be assigned to the FUNCTXT_0 components of structure SSCRFIELDS before the selection screen is called. You must declare this structure as an interface work area using the TABLES statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user chooses one of these buttons, the runtime environment triggers the AT SELECTION-SCREEN event and the function code FC0 is placed into the component UCOMM of the structure SSCRFIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the AT SELECTION-SCREEN event has been processed, the system displays the selection screen again. The only way to exit the selection screen and carry on processing the program is to choose Execute (F8). Consequently, the pushbuttons on the application toolbar are more suitable for controlling dynamic modifications of the selection screen than for controlling the program flow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&amp;lt;/i&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT demo_sel_screen_function_key.

TABLES sscrfields.

PARAMETERS: p_carrid TYPE s_carr_id,
            p_cityfr TYPE s_from_cit.

SELECTION-SCREEN: FUNCTION KEY 1,
                  FUNCTION KEY 2.

INITIALIZATION.
  sscrfields-functxt_01 = 'LH'.
  sscrfields-functxt_02 = 'UA'.

AT SELECTION-SCREEN.
  CASE sscrfields-ucomm.
      WHEN'FC01'.
      p_carrid = 'LH'.
      p_cityfr = 'Frankfurt'.
    WHEN 'FC02'.
      p_carrid = 'UA'.
      p_cityfr = 'Chicago'.
  ENDCASE.

START-OF-SELECTION.
  WRITE / 'START-OF-SELECTION'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;This defines a standard selection screen with two parameters. In the application toolbar, two pushbuttons are assigned the texts LH and UA and activated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user clicks one of the buttons, the AT SELECTION-SCREEN event is triggered and there the input fields are preassigned correspondingly. &amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 08:23:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-tool-bar/m-p/2119611#M444063</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-04-04T08:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Tool bar...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-tool-bar/m-p/2119612#M444064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write set pf-status 'status_name'.&lt;/P&gt;&lt;P&gt;double click on 'status_name',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then a window appearswhere you can set your:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.User-interface&lt;/P&gt;&lt;P&gt;2.Application toolbar&lt;/P&gt;&lt;P&gt;3.Menu bar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information click below links:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/801d43454211d189710000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/801d43454211d189710000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/801dab454211d189710000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/801dab454211d189710000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you got some idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Rama.Pammi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 08:29:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-tool-bar/m-p/2119612#M444064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T08:29:49Z</dc:date>
    </item>
  </channel>
</rss>

