<?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 a button to the application toolbar in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-button-to-the-application-toolbar/m-p/962176#M67695</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to do this in report program selection scree,&lt;/P&gt;&lt;P&gt;you can do the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ytest.
TABLES:  sscrfields .
INCLUDE &amp;lt;icon&amp;gt; .

SELECTION-SCREEN FUNCTION KEY 1 .
parameters: pc(1) .

INITIALIZATION .


  CONCATENATE icon_next_object 'test button at applicatin toolbar'
  INTO
       sscrfields-functxt_01 .


AT SELECTION-SCREEN.

  IF sscrfields-ucomm EQ 'FC01' .

    break sy-uname .
  ENDIF .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jul 2005 08:10:54 GMT</pubDate>
    <dc:creator>athavanraja</dc:creator>
    <dc:date>2005-07-22T08:10:54Z</dc:date>
    <item>
      <title>Adding a button to the application toolbar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-button-to-the-application-toolbar/m-p/962170#M67689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. How to add a custom button to the application toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2005 18:19:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-button-to-the-application-toolbar/m-p/962170#M67689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-21T18:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a button to the application toolbar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-button-to-the-application-toolbar/m-p/962171#M67690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add a button my modifying the GUI Status.  In your program double click on the statement SET PF-STATUS 'XXX'.  This will take you to the gui status.  Add your button there.   If you are working with a report program and there is no statement like this,  then you can add it.  Before you start writing your list, just make sure that you have this statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

SET PF-STATUS 'LIST'.

&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>Thu, 21 Jul 2005 18:35:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-button-to-the-application-toolbar/m-p/962171#M67690</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-07-21T18:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a button to the application toolbar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-button-to-the-application-toolbar/m-p/962172#M67691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/selscr/but_appbut.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/selscr/but_appbut.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also refer the program: BCALV_GRID_05 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2005 03:23:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-button-to-the-application-toolbar/m-p/962172#M67691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-22T03:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a button to the application toolbar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-button-to-the-application-toolbar/m-p/962173#M67692</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;Look at this sample code,&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/abap/add-button-to-alv-toolbar-with-reuse-alv-list-display.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/abap/add-button-to-alv-toolbar-with-reuse-alv-list-display.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&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="517729"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.planetsap.com/Tips_and_Tricks.htm" target="test_blank"&gt;http://www.planetsap.com/Tips_and_Tricks.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Judith.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2005 03:25:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-button-to-the-application-toolbar/m-p/962173#M67692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-22T03:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a button to the application toolbar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-button-to-the-application-toolbar/m-p/962174#M67693</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;Create a GUI status.In that go to Application toolbar.&lt;/P&gt;&lt;P&gt;In that enter the name of the button you want to create in Application toolbar[1-7] and then press enter.In the dialog box that is appearing after that,choose static text and then enter Function text.Then choose something in the popup next appearing for Assign Function to Function Key.Activate the GUI status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the PBO of the screen you created in the report,&lt;/P&gt;&lt;P&gt;write the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PFSTATUS 'ZSTATUS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here ZSTATUS is the name of the GUI you created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While executing the report,you can see the custom button created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.If so,reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2005 03:35:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-button-to-the-application-toolbar/m-p/962174#M67693</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-07-22T03:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a button to the application toolbar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-button-to-the-application-toolbar/m-p/962175#M67694</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;1. create GUI status with "Status" name and "Short text"&lt;/P&gt;&lt;P&gt;2. Now a screen will appear with the following,&lt;/P&gt;&lt;P&gt;   a. Menu Bar&lt;/P&gt;&lt;P&gt;   b. Application tool bar&lt;/P&gt;&lt;P&gt;   c. Function keys&lt;/P&gt;&lt;P&gt;3. Click the down arrow near the application toolbar&lt;/P&gt;&lt;P&gt;4. Enter the function code like SAVE, EXIT, etc., You  &lt;/P&gt;&lt;P&gt;   can also give ur own meaningful naming convention .&lt;/P&gt;&lt;P&gt;   For example ( ZTEST)&lt;/P&gt;&lt;P&gt;5. Now press enter, it will ask for "Static text" or "Dynamic Text". Choose Static text and press enter&lt;/P&gt;&lt;P&gt;6. Now it will ask for function text and Icon name. Specify some function text ( what it does ) and Icon name u want to attach.&lt;/P&gt;&lt;P&gt;7. Press enter. It will ask for function keys. Specify a function key and press enter.&lt;/P&gt;&lt;P&gt;8. Now u can handle this function code (ZTEST) either in PBO/PAI like IF FUNCTION = ZTEST ...ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to set the GUI status u have created in PBO event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example code to set PF status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;  MODULE liste_initialisieren.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE setstatus_0100.&lt;/P&gt;&lt;P&gt;   LOOP AT extract WITH CONTROL&lt;/P&gt;&lt;P&gt;   tctrl_ztufi_league CURSOR nextline.&lt;/P&gt;&lt;P&gt;    MODULE liste_show_liste.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above MODULE setstatus_0100 do the following,&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'ZGUI'. ( The GUI status u have created).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2005 05:27:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-button-to-the-application-toolbar/m-p/962175#M67694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-22T05:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a button to the application toolbar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-button-to-the-application-toolbar/m-p/962176#M67695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to do this in report program selection scree,&lt;/P&gt;&lt;P&gt;you can do the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ytest.
TABLES:  sscrfields .
INCLUDE &amp;lt;icon&amp;gt; .

SELECTION-SCREEN FUNCTION KEY 1 .
parameters: pc(1) .

INITIALIZATION .


  CONCATENATE icon_next_object 'test button at applicatin toolbar'
  INTO
       sscrfields-functxt_01 .


AT SELECTION-SCREEN.

  IF sscrfields-ucomm EQ 'FC01' .

    break sy-uname .
  ENDIF .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2005 08:10:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-button-to-the-application-toolbar/m-p/962176#M67695</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-07-22T08:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a button to the application toolbar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-button-to-the-application-toolbar/m-p/962177#M67696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the PF Status  the function Code should start with '&amp;amp;'&lt;/P&gt;&lt;P&gt;for Button Display&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2005 11:10:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-button-to-the-application-toolbar/m-p/962177#M67696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-22T11:10:56Z</dc:date>
    </item>
  </channel>
</rss>

