<?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 delete layout icon from custom control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-layout-icon-from-custom-control/m-p/1963754#M395993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i display the customcontrol i want to delete change layout icon i did using it-toolbar_excluding ,with the help of ms_layout type LVC_S_LAYO but error is coming&lt;/P&gt;&lt;P&gt;please suggest me how to delete this from SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;using IT_TOOLBAR_EXCLUDING already i delete remaining icons i did not face any problem&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ramana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Feb 2007 08:59:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-21T08:59:20Z</dc:date>
    <item>
      <title>delete layout icon from custom control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-layout-icon-from-custom-control/m-p/1963754#M395993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i display the customcontrol i want to delete change layout icon i did using it-toolbar_excluding ,with the help of ms_layout type LVC_S_LAYO but error is coming&lt;/P&gt;&lt;P&gt;please suggest me how to delete this from SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;using IT_TOOLBAR_EXCLUDING already i delete remaining icons i did not face any problem&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ramana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 08:59:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-layout-icon-from-custom-control/m-p/1963754#M395993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T08:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: delete layout icon from custom control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-layout-icon-from-custom-control/m-p/1963755#M395994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;In PBO,

SET HANDLER o_eventreceiver-&amp;gt;handle_toolbar       FOR o_Alvgrid.

  CALL METHOD o_alvgrid-&amp;gt;set_table_for_first_display
     EXPORTING
*    I_BYPASSING_BUFFER            =
*    I_BUFFER_ACTIVE               =
*    I_CONSISTENCY_CHECK           =
*    I_STRUCTURE_NAME              =
       is_variant                    = w_variant
       i_save                        = c_a
*    I_DEFAULT                     = 'X'
       is_layout                     = p_layout
*    IS_PRINT                      =
       it_special_groups             = p_groups[]
       it_toolbar_excluding          = p_exclude[]
*    IT_HYPERLINK                  =
*    IT_ALV_GRAPHICS               =
*    IT_EXCEPT_QINFO               =
    CHANGING
       it_outtab                     = p_output[]
       it_fieldcatalog               = p_fieldcat[]
*    IT_SORT                       =
*    IT_FILTER                     =
    EXCEPTIONS
       invalid_parameter_combination = 1
       program_error                 = 2
       too_many_lines                = 3
       OTHERS                        = 4.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE i278.
    LEAVE LIST-PROCESSING.
  ENDIF.

INCLUDE &amp;lt;icon&amp;gt;.

* Predefine a local class for event handling to allow the
* declaration of a reference variable before the class is defined.
CLASS lcl_event_receiver DEFINITION DEFERRED.
CLASS cl_gui_container DEFINITION LOAD.

DATA : o_alvgrid          TYPE REF TO cl_gui_alv_grid,
       o_dockingcontainer TYPE REF TO cl_gui_docking_container,
       o_eventreceiver    TYPE REF TO lcl_event_receiver,

*---------------------------------------------------------------------*
*       Internal Tables
*---------------------------------------------------------------------*
* Function button table definitions
       i_exclude TYPE ui_functions,
*     new function buttons definition
       i_toolbar TYPE TABLE OF stb_button,
*      special group definitions
       i_groups  TYPE lvc_t_sgrp,
*      Field catalogue
       i_fieldcat TYPE lvc_t_fcat,
*      Selected rows on the grid
       i_selected_rows TYPE lvc_t_row,
*      Review materials
       i_reviewed_mat TYPE STANDARD TABLE OF mara,

       w_action(12) TYPE c,
* Define the layout structure
       w_layout  TYPE lvc_s_layo,
* Enable variant saving
       w_variant TYPE disvariant,

* new function buttons definition
       w_toolbar LIKE stb_button,
* selected rows in alv grid
       w_row LIKE lvc_s_row-index,
CLASS lcl_event_receiver DEFINITION.

*   event receiver definitions for ALV actions
  PUBLIC SECTION.
    CLASS-METHODS:
* Tool bar
       handle_toolbar
        FOR EVENT toolbar OF cl_gui_alv_grid
            IMPORTING e_object
                      e_interactive,
ENDCLASS.

* Implementation
************************************************************************
* Every event handler that is specified below should also be set after
* the object has been created.  This is done in the PBO processing.
* with the following command
* SET HANDLER oEventreceiver-&amp;gt;handle_toolbar FOR o_Alvgrid.
************************************************************************

CLASS lcl_event_receiver IMPLEMENTATION.
*  create the relevant buttons on the toolbars
  METHOD handle_toolbar.
* This method handles the user interaction with the tool bar.
    CASE w_action.
      WHEN 'SELECT'.
*========================
        REFRESH i_toolbar.
*Drilldown Totals Level '&amp;amp;AUF'
*Calculate Average '&amp;amp;AVERAGE'
*Back '&amp;amp;F03'
*ABC Analysis '&amp;amp;ABC'
*Call Sequence '&amp;amp;BEBN'
*Seagate Info Batch Processing '&amp;amp;CRBATCH'
*Seagate Info Web Processing '&amp;amp;CRWEB'
*Line Items '&amp;amp;BEB1'
*Master Data '&amp;amp;BEB2'
*More Calls '&amp;amp;BEB3'
*Call Report '&amp;amp;BEB9'
*Extended Storage of SAPQuery '&amp;amp;XINT'
*XXL '&amp;amp;XXL'
*Check Entries '&amp;amp;CHECK'
*Columns Invisible '&amp;amp;COL_INV'
*Optimize columns '&amp;amp;OPTIMIZE'
*Current Variant '&amp;amp;COL0'
*Save Data '&amp;amp;DATA_SAVE'
*Delete Filter '&amp;amp;DELETE_FILTER'
*Deselect All Rows '&amp;amp;SAL'
*Choose Detail '&amp;amp;DETAIL'
*Exclude all Grid Functions '&amp;amp;EXCLALLFC'
*CrystalReportsTM (Export with Data) '&amp;amp;CRDATA'
*Crystal Reports (TM) ( Start Designer) '&amp;amp;CRDESIG'
*Crystal ( Templ ). '&amp;amp;CRTEMPL'
*MicrosoftTM Database File '&amp;amp;MDB'
*Additional Query Functions '&amp;amp;EXT'
*F4 '&amp;amp;F4'
*Filters '&amp;amp;FILTER'
*Find '&amp;amp;FIND'
*Freeze to Column '&amp;amp;CFI'
*Graphic '&amp;amp;GRAPH'
*Help '&amp;amp;HELP'
*HTML download '&amp;amp;HTML'
*Information '&amp;amp;INFO'
*Read Variant '&amp;amp;LOAD'
*Local: Append Row '&amp;amp;LOCAL&amp;amp;APPEND'
*Local: Copy '&amp;amp;LOCAL&amp;amp;COPY'
*Local: Copy Row '&amp;amp;LOCAL&amp;amp;COPY_ROW'
*Local: Cut '&amp;amp;LOCAL&amp;amp;CUT'
*Local: Delete Row '&amp;amp;LOCAL&amp;amp;DELETE_ROW'
*Local: Insert Row '&amp;amp;LOCAL&amp;amp;INSERT_ROW'
*Local: Move Row '&amp;amp;LOCAL&amp;amp;MOVE_ROW'
*Local: Paste '&amp;amp;LOCAL&amp;amp;PASTE'
*Locally: Paste new Row '&amp;amp;LOCAL&amp;amp;PASTE_NEW_ROW'
*Undo '&amp;amp;LOCAL&amp;amp;UNDO'
*Maintain Variants '&amp;amp;MAINTAIN'
*Maximum '&amp;amp;MAXIMUM'
*Minimum '&amp;amp;MINIMUM'
*Export Local File '&amp;amp;PC'
*Print '&amp;amp;PRINT'
*Print Backend '&amp;amp;PRINT_BACK'
*Print Preview '&amp;amp;PRINT_BACK_PREVIEW'
*Refresh '&amp;amp;REFRESH'
*Report/Report Interface '&amp;amp;REPREP'
*Save Variant '&amp;amp;SAVE'
*Select All Rows '&amp;amp;ALL'
*Send '&amp;amp;SEND'
*Separator '&amp;amp;&amp;amp;SEP'
*Sort '&amp;amp;SORT'
*Sort in ascending order '&amp;amp;SORT_ASC'
*Sort in descending order '&amp;amp;SORT_DSC'
*Subtotals '&amp;amp;SUBTOT'
*Total '&amp;amp;SUMC'
*Export Office '&amp;amp;ML'
*Export Reporting Tree '&amp;amp;SERP'
*Unfreeze Columns '&amp;amp;CDF'
*View Change '&amp;amp;VIEW'
*Crystal Preview Inplace '&amp;amp;VCRYSTAL'
*Excel Inplace '&amp;amp;VEXCEL'
*Grid Control '&amp;amp;VGRID'
*Word processing '&amp;amp;AQW'
        PERFORM f9801_toolbar_create USING: '3' '' '' '' '' '',
                                    '0' 'FCODE' icon_modify
                                     text-006 '' '',
                                     '0' 'RFBACK' icon_arrow_left
                                     text-007 '' ''.

        LOOP AT i_toolbar INTO w_toolbar.
          APPEND w_toolbar TO e_object-&amp;gt;mt_toolbar.
        ENDLOOP.


      WHEN OTHERS.

        REFRESH i_toolbar.
        PERFORM f9801_toolbar_create USING: '3' '' '' '' '' '',
                                    '0' 'FCODE' icon_checked
                                     text-008 '' text-005.

        LOOP AT i_toolbar INTO w_toolbar.
          APPEND w_toolbar TO e_object-&amp;gt;mt_toolbar.
        ENDLOOP.
    ENDCASE.

  ENDMETHOD.
FORM f9801_toolbar_create USING    value(pbuttontype)
                             value(pfunction)
                             value(picon)
                             value(pquickinfo)
                             value(pdisabled)
                             value(ptext).

* If the user clicks on the default button ALV raises
* directly event BEFORE_USER_COMMAND
* (then USER_COMMAND, AFTER_USER_COMMAND).
  CLEAR w_toolbar.
  MOVE : pfunction   TO w_toolbar-function,
         picon       TO w_toolbar-icon,
         pquickinfo  TO w_toolbar-quickinfo,
         pbuttontype TO w_toolbar-butn_type,
         pdisabled   TO w_toolbar-disabled,
         ptext       TO w_toolbar-text.
  APPEND w_toolbar TO i_toolbar.


ENDFORM.                    " f9801_toolbar_create
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 09:58:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-layout-icon-from-custom-control/m-p/1963755#M395994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T09:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: delete layout icon from custom control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-layout-icon-from-custom-control/m-p/1963756#M395995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i did not get your answer send me exct lines needed for that point only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 10:49:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-layout-icon-from-custom-control/m-p/1963756#M395995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T10:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: delete layout icon from custom control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-layout-icon-from-custom-control/m-p/1963757#M395996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U need to add these whole code u have to choose the function code from the list which I have provided pass the saem in the perform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if u find helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 11:02:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-layout-icon-from-custom-control/m-p/1963757#M395996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T11:02:47Z</dc:date>
    </item>
  </channel>
</rss>

