<?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: Functionality of button as insert in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/functionality-of-button-as-insert/m-p/5586047#M1273698</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;When you are adding your button on application toolbar, assing function code of standard &lt;EM&gt;INSERT&lt;/EM&gt; function to it.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"class definition
methods: handle_toolbar_ins FOR EVENT toolbar OF cl_gui_alv_grid
                     IMPORTING e_object e_interactive,

"class implementation
method handle_toolbar_ins.

    DATA: ls_toolbar TYPE stb_button.
" append an icon to show booking table
    CLEAR ls_toolbar.
    MOVE cl_gui_alv_grid=&amp;gt;MC_FC_LOC_INSERT_ROW to ls_toolbar-function. "&amp;lt;- this will provide standard function code to your custom button
    MOVE icon_change_password TO ls_toolbar-icon.
    MOVE text-tl3 TO ls_toolbar-quickinfo.
    MOVE text-tl4 TO ls_toolbar-text.
    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;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we change the tesxt of the standard button? &lt;/P&gt;&lt;P&gt;How can we add image to the standard button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think we can. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2009 15:55:04 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2009-05-05T15:55:04Z</dc:date>
    <item>
      <title>Functionality of button as insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/functionality-of-button-as-insert/m-p/5586046#M1273697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell i have hide all the buttons on a standard alv in ALV webdynpro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have added my own button by name INSERT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i get the functionality of standard button insert row in ALV to this button INSERT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we change the tesxt of the standard button?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we add image to the standard button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx,&lt;/P&gt;&lt;P&gt;Badri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 15:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/functionality-of-button-as-insert/m-p/5586046#M1273697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T15:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Functionality of button as insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/functionality-of-button-as-insert/m-p/5586047#M1273698</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;When you are adding your button on application toolbar, assing function code of standard &lt;EM&gt;INSERT&lt;/EM&gt; function to it.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"class definition
methods: handle_toolbar_ins FOR EVENT toolbar OF cl_gui_alv_grid
                     IMPORTING e_object e_interactive,

"class implementation
method handle_toolbar_ins.

    DATA: ls_toolbar TYPE stb_button.
" append an icon to show booking table
    CLEAR ls_toolbar.
    MOVE cl_gui_alv_grid=&amp;gt;MC_FC_LOC_INSERT_ROW to ls_toolbar-function. "&amp;lt;- this will provide standard function code to your custom button
    MOVE icon_change_password TO ls_toolbar-icon.
    MOVE text-tl3 TO ls_toolbar-quickinfo.
    MOVE text-tl4 TO ls_toolbar-text.
    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;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we change the tesxt of the standard button? &lt;/P&gt;&lt;P&gt;How can we add image to the standard button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think we can. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 15:55:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/functionality-of-button-as-insert/m-p/5586047#M1273698</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-05-05T15:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Functionality of button as insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/functionality-of-button-as-insert/m-p/5586048#M1273699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;U need to add another element to the already existing element set to the node which is bound to the table UI Element. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put the code below inside the INSERT action method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*{table is the node which is bound to the table UI element }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data lo_nd_table type ref to if_wd_context_node.&lt;/P&gt;&lt;P&gt;data lo_el_table type ref to if_wd_context_element.&lt;/P&gt;&lt;P&gt;data lt_el_table type wdr_context_element_set.&lt;/P&gt;&lt;P&gt;data ls_table type wd_this-&amp;gt;element_table.&lt;/P&gt;&lt;P&gt;data lt_table type wd_this-&amp;gt;elements_table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lo_nd_table = wd_context-&amp;gt;get_child_node( name = wd_this-&amp;gt;wdctx_table ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lt_el_table = lo_nd_table-&amp;gt;get_elements( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lt_el_table into lo_el_table.&lt;/P&gt;&lt;P&gt;  lo_el_table-&amp;gt;get_static_attributes(&lt;/P&gt;&lt;P&gt;                        importing &lt;/P&gt;&lt;P&gt;                            static_attributes = ls_table ).&lt;/P&gt;&lt;P&gt;append ls_table to lt_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lo_nd_table-&amp;gt;bind_table( lt_table ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 07:19:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/functionality-of-button-as-insert/m-p/5586048#M1273699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T07:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Functionality of button as insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/functionality-of-button-as-insert/m-p/5586049#M1273700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx u r answe is appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 10:38:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/functionality-of-button-as-insert/m-p/5586049#M1273700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T10:38:15Z</dc:date>
    </item>
  </channel>
</rss>

