<?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 ALV toolbar layout selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-toolbar-layout-selection/m-p/6469277#M1416969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on a ALV grid toolbar you have a standard button to select a Layout or to change a layout.&lt;/P&gt;&lt;P&gt;But i want to have all of the 4 possibilities in it. you will get a menu with selection.&lt;/P&gt;&lt;P&gt;for example i did this:&lt;/P&gt;&lt;P&gt;&amp;lt;lfs_toolbar&amp;gt;-function = '&amp;amp;MB_VARIANT'.&lt;/P&gt;&lt;P&gt;  &amp;lt;lfs_toolbar&amp;gt;-icon = icon_alv_variant_choose.&lt;/P&gt;&lt;P&gt;  &amp;lt;lfs_toolbar&amp;gt;-quickinfo = 'Layout selecteren...'.&lt;/P&gt;&lt;P&gt;  &amp;lt;lfs_toolbar&amp;gt;-butn_type = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you only get 1 possibility and that is to select a layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want :&lt;/P&gt;&lt;P&gt;- Select layout&lt;/P&gt;&lt;P&gt;- Change layout&lt;/P&gt;&lt;P&gt;- Save layout&lt;/P&gt;&lt;P&gt;- Manage layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can I do that? is this standaard? I can't find it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Akin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Dec 2009 08:41:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-30T08:41:43Z</dc:date>
    <item>
      <title>ALV toolbar layout selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-toolbar-layout-selection/m-p/6469277#M1416969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on a ALV grid toolbar you have a standard button to select a Layout or to change a layout.&lt;/P&gt;&lt;P&gt;But i want to have all of the 4 possibilities in it. you will get a menu with selection.&lt;/P&gt;&lt;P&gt;for example i did this:&lt;/P&gt;&lt;P&gt;&amp;lt;lfs_toolbar&amp;gt;-function = '&amp;amp;MB_VARIANT'.&lt;/P&gt;&lt;P&gt;  &amp;lt;lfs_toolbar&amp;gt;-icon = icon_alv_variant_choose.&lt;/P&gt;&lt;P&gt;  &amp;lt;lfs_toolbar&amp;gt;-quickinfo = 'Layout selecteren...'.&lt;/P&gt;&lt;P&gt;  &amp;lt;lfs_toolbar&amp;gt;-butn_type = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you only get 1 possibility and that is to select a layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want :&lt;/P&gt;&lt;P&gt;- Select layout&lt;/P&gt;&lt;P&gt;- Change layout&lt;/P&gt;&lt;P&gt;- Save layout&lt;/P&gt;&lt;P&gt;- Manage layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can I do that? is this standaard? I can't find it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Akin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2009 08:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-toolbar-layout-selection/m-p/6469277#M1416969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-30T08:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: ALV toolbar layout selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-toolbar-layout-selection/m-p/6469278#M1416970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some ideas that can help you :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If you have seen this in any transaction or report . just try to find out how is it implemented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You can create your own PF status and then make these as menu option or them as buttons. In this you need to handle these by sy-ucomm . This will also require study of how these functions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Select layout&lt;/P&gt;&lt;P&gt;- Change layout&lt;/P&gt;&lt;P&gt;- Save layout&lt;/P&gt;&lt;P&gt;- Manage layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are implemented in standard. Debug and try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2009 11:32:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-toolbar-layout-selection/m-p/6469278#M1416970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-30T11:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: ALV toolbar layout selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-toolbar-layout-selection/m-p/6469279#M1416971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;I already have it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You only have to do is add a variant to it. that's it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make a variable:&lt;/P&gt;&lt;P&gt;Data: gs_variant           TYPE disvariant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give it youre reportname to it:   gs_variant-report = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use it with youre  Call Method!! -&amp;gt; then it will come automatically!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD gr_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_buffer_active               = abap_false&lt;/P&gt;&lt;P&gt;      i_bypassing_buffer            = abap_true&lt;/P&gt;&lt;P&gt;      is_layout                     = gs_layout&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;is_variant                    = gs_variant&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     it_toolbar_excluding          = lt_excluded&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      i_save                        = 'A'&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      it_outtab                     = gt_outtab&lt;/P&gt;&lt;P&gt;      it_fieldcatalog               = ut_fieldcat&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;      program_error                 = 2&lt;/P&gt;&lt;P&gt;      too_many_lines                = 3&lt;/P&gt;&lt;P&gt;      OTHERS                        = 4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2009 12:10:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-toolbar-layout-selection/m-p/6469279#M1416971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-30T12:10:03Z</dc:date>
    </item>
  </channel>
</rss>

