<?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: After user command is added tool disappeared in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-user-command-is-added-tool-disappeared/m-p/764081#M37329</link>
    <description>&lt;P&gt;its disappeared because you overwrite the mt_toobar:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;e_object-&amp;gt;mt_toolbar =VALUE ttb_button(( butn_type =3)(function='EDIT'icon= icon_edit_file butn_type =0)).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;you should add, not overwrite:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;e_object-&amp;gt;mt_toolbar =VALUE ttb_button( BASE ( e_object-&amp;gt;mt_toolbar ) ( butn_type =3)(function='EDIT'icon= icon_edit_file butn_type =0)).&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 09 Jan 2019 00:17:23 GMT</pubDate>
    <dc:creator>DoanManhQuynh</dc:creator>
    <dc:date>2019-01-09T00:17:23Z</dc:date>
    <item>
      <title>After user command is added tool disappeared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-user-command-is-added-tool-disappeared/m-p/764080#M37328</link>
      <description>&lt;P&gt;Hi all &lt;BR /&gt;I have a ALV grid in a modal dialog that looks as following:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/259686-2019-01-08-16-52-36.png" /&gt;&lt;/P&gt;
  &lt;P&gt;I tried to add tool bar to the ALV as following: &lt;/P&gt;
  &lt;P&gt;The event class :&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;CLASS lcl_evt_task_user_cmd IMPLEMENTATION.
  METHOD handle_toolbar.
    e_object-&amp;gt;mt_toolbar = VALUE ttb_button(
                           ( butn_type = 3 )
                           ( function = 'EDIT' icon = icon_edit_file butn_type = 0 )
                           ).
  ENDMETHOD.
  METHOD handle_user_command.
    CASE e_ucomm.
      WHEN 'EDIT'.
    ENDCASE.
*    cl_gui_cfw=&amp;gt;set_new_ok_code('DUMMY').
  ENDMETHOD.
ENDCLASS.&lt;/CODE&gt;&lt;/PRE&gt;and the way how I added:
  &lt;PRE&gt;&lt;CODE&gt;  METHOD show.
    FIELD-SYMBOLS &amp;lt;lt_table&amp;gt; TYPE STANDARD TABLE.
    IF c_go_provider-&amp;gt;c_go_grid IS INITIAL.
      DATA(lt_fieldcat) = me-&amp;gt;get_fieldcat( c_go_provider-&amp;gt;c_gv_struname ).
      c_go_provider-&amp;gt;c_go_container = NEW cl_gui_custom_container( container_name = co_grid_name ).
      c_go_provider-&amp;gt;c_go_grid = NEW cl_gui_alv_grid( i_parent = c_go_provider-&amp;gt;c_go_container ).
      ASSIGN c_go_provider-&amp;gt;c_gt_data-&amp;gt;* TO &amp;lt;lt_table&amp;gt;.
      me-&amp;gt;register_event( ).
      c_go_provider-&amp;gt;c_go_grid-&amp;gt;set_table_for_first_display(
       EXPORTING
          is_variant = VALUE disvariant( report = sy-repid )
          i_save = 'A'
          is_layout = VALUE lvc_s_layo( sel_mode = 'A' )
        CHANGING
          it_outtab = &amp;lt;lt_table&amp;gt;
          it_fieldcatalog = lt_fieldcat
       ).
      c_go_provider-&amp;gt;c_go_grid-&amp;gt;set_toolbar_interactive( ).
    ENDIF.
    c_go_provider-&amp;gt;c_go_grid-&amp;gt;refresh_table_display( ).
  ENDMETHOD.
  METHOD register_event.
    me-&amp;gt;c_go_event = NEW lcl_evt_task_user_cmd( ).
    SET HANDLER  me-&amp;gt;c_go_event-&amp;gt;handle_toolbar
                 me-&amp;gt;c_go_event-&amp;gt;handle_user_command
        FOR  c_go_provider-&amp;gt;c_go_grid.
  ENDMETHOD.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;After, the standard toolbar disappeared: &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/259687-2019-01-08-16-57-04.png" /&gt;&lt;/P&gt;
  &lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 16:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-user-command-is-added-tool-disappeared/m-p/764080#M37328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-01-08T16:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: After user command is added tool disappeared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-user-command-is-added-tool-disappeared/m-p/764081#M37329</link>
      <description>&lt;P&gt;its disappeared because you overwrite the mt_toobar:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;e_object-&amp;gt;mt_toolbar =VALUE ttb_button(( butn_type =3)(function='EDIT'icon= icon_edit_file butn_type =0)).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;you should add, not overwrite:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;e_object-&amp;gt;mt_toolbar =VALUE ttb_button( BASE ( e_object-&amp;gt;mt_toolbar ) ( butn_type =3)(function='EDIT'icon= icon_edit_file butn_type =0)).&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Jan 2019 00:17:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-user-command-is-added-tool-disappeared/m-p/764081#M37329</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2019-01-09T00:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: After user command is added tool disappeared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-user-command-is-added-tool-disappeared/m-p/764082#M37330</link>
      <description>&lt;P&gt;Question also asked on stackoverflow: &lt;A href="https://stackoverflow.com/questions/54099836/after-user-command-is-added-tool-disappeared" target="test_blank"&gt;https://stackoverflow.com/questions/54099836/after-user-command-is-added-tool-disappeared&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 09:53:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-user-command-is-added-tool-disappeared/m-p/764082#M37330</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-01-09T09:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: After user command is added tool disappeared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-user-command-is-added-tool-disappeared/m-p/764083#M37331</link>
      <description>&lt;P&gt;I see that you have the same issues as I have with spaces removed from code by SCN &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 09:55:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-user-command-is-added-tool-disappeared/m-p/764083#M37331</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-01-09T09:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: After user command is added tool disappeared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-user-command-is-added-tool-disappeared/m-p/764084#M37332</link>
      <description>&lt;P&gt;yes, space removed will happend when we copy text inside code tag from other answer (comment). I have been experience it for a few times.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 00:21:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-user-command-is-added-tool-disappeared/m-p/764084#M37332</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2019-01-10T00:21:17Z</dc:date>
    </item>
  </channel>
</rss>

