<?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: Text  on  pushbutton in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-on-pushbutton/m-p/4631047#M1090595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your method for handling toolbar button do this coding.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"somewhere in class define a method for hadling toolbar
handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
                      IMPORTING e_object e_interactive,
...
"then in implemenation part 
  METHOD handle_toolbar.
    DATA: ls_toolbar TYPE stb_button.
" append a separator to normal toolbar
    CLEAR ls_toolbar.
    MOVE 3 TO ls_toolbar-butn_type.
    APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.
" append an icon to 
    CLEAR ls_toolbar.
    MOVE 'INS' TO ls_toolbar-function.        "here goes your funtion code
    MOVE icon_insert_multiple_lines TO ls_toolbar-icon.  "here name of the icon to dsiplay 
    MOVE text-tl1 TO ls_toolbar-quickinfo.    "here add your text as quickinfo
    MOVE text-tl2 TO ls_toolbar-text.          "here goes your text on pushbutton
    MOVE ' ' TO ls_toolbar-disabled.
    APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.
  ENDMETHOD.     
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2008 13:42:12 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2008-10-15T13:42:12Z</dc:date>
    <item>
      <title>Text  on  pushbutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-on-pushbutton/m-p/4631046#M1090594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;         In my current report i am using ALV TREE by using cl_gui_alv_tree.&lt;/P&gt;&lt;P&gt;in which i have added a pushbutton &amp;amp; added functionality to them ,but i want a text on that push button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me to get the text on the push button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 13:21:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-on-pushbutton/m-p/4631046#M1090594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T13:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Text  on  pushbutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-on-pushbutton/m-p/4631047#M1090595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your method for handling toolbar button do this coding.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"somewhere in class define a method for hadling toolbar
handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
                      IMPORTING e_object e_interactive,
...
"then in implemenation part 
  METHOD handle_toolbar.
    DATA: ls_toolbar TYPE stb_button.
" append a separator to normal toolbar
    CLEAR ls_toolbar.
    MOVE 3 TO ls_toolbar-butn_type.
    APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.
" append an icon to 
    CLEAR ls_toolbar.
    MOVE 'INS' TO ls_toolbar-function.        "here goes your funtion code
    MOVE icon_insert_multiple_lines TO ls_toolbar-icon.  "here name of the icon to dsiplay 
    MOVE text-tl1 TO ls_toolbar-quickinfo.    "here add your text as quickinfo
    MOVE text-tl2 TO ls_toolbar-text.          "here goes your text on pushbutton
    MOVE ' ' TO ls_toolbar-disabled.
    APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.
  ENDMETHOD.     
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 13:42:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-on-pushbutton/m-p/4631047#M1090595</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2008-10-15T13:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Text  on  pushbutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-on-pushbutton/m-p/4631048#M1090596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONCATENATE '@FN@'  'My Buttton' INTO p_button  SEPARATED BY space. " This will add a icon  + text to the button.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Aman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 13:48:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-on-pushbutton/m-p/4631048#M1090596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T13:48:49Z</dc:date>
    </item>
  </channel>
</rss>

