<?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: save layout Button in Object Oriented ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-layout-button-in-object-oriented-alv/m-p/7124829#M1511596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data: gr_layout  type ref to cl_salv_layout,
gr_alv     type ref to cl_salv_table,
....
 gs_key     type salv_s_layout_key,
.....
* in your SALV routine.... after FACTORY call
gs_key-report = sy-repid.
......
* User can save layout.
  gr_layout  = gr_alv-&amp;gt;get_layout( ). "layouts
  gr_layout-&amp;gt;set_key( gs_key ).  "Pass Program Name
  gr_layout-&amp;gt;set_save_restriction( cl_salv_layout=&amp;gt;restrict_none ). "User can save&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also Rich Heilman's excellent tutorials on SALV by searching for SALV Tutorial,&lt;/P&gt;&lt;P&gt;See also programs named: SALV* for demonstrations of SALV outputs and how to code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: BreakPoint on Jul 2, 2010 1:46 PM add references for tutorials&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Jul 2010 11:44:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-02T11:44:28Z</dc:date>
    <item>
      <title>save layout Button in Object Oriented ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-layout-button-in-object-oriented-alv/m-p/7124828#M1511595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  gurus,&lt;/P&gt;&lt;P&gt;I am working on Object Oriented ALV. I am facing one problem when the outpput get shown on the screen the save layout and select layout buttons are not appearing on the application toolbar of alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; TRY .&lt;/P&gt;&lt;P&gt;      cl_salv_table=&amp;gt;factory( IMPORTING r_salv_table = g_alv_out&lt;/P&gt;&lt;P&gt;                               CHANGING t_table      = i_alv ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Set status GUI&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      g_alv_out-&amp;gt;set_screen_status(&lt;/P&gt;&lt;P&gt;          pfstatus      = 'STANDARD'&lt;/P&gt;&lt;P&gt;          report        = sy-repid &lt;/P&gt;&lt;P&gt;          set_functions = g_alv_out-&amp;gt;C_FUNCTIONS_ALL ).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;       g_columns = g_alv_out-&amp;gt;get_columns( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Set new description texts for columns&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      PERFORM f_set_column_name USING:&lt;/P&gt;&lt;P&gt;            'LTEXT' text-001 text-001 text-001 space,&lt;/P&gt;&lt;P&gt;            'NAME1' text-002 text-002 text-002 space,&lt;/P&gt;&lt;P&gt;            'TXZ01' text-003 text-007 text-007 space,&lt;/P&gt;&lt;P&gt;            'KWERT' text-004 text-004 text-004 space,&lt;/P&gt;&lt;P&gt;            'WEMNG' text-005 text-010 text-011 space,&lt;/P&gt;&lt;P&gt;            'BALNC' text-012 text-013 text-014 space,&lt;/P&gt;&lt;P&gt;            'AFNAM' text-006 text-008 text-009 space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM f_set_column_name USING 'WEMNG'&lt;/P&gt;&lt;P&gt;              space space space 'WAERS'.&lt;/P&gt;&lt;P&gt;      PERFORM f_set_column_name USING 'KWERT'&lt;/P&gt;&lt;P&gt;              space space space 'WAERS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Set column as hotspot&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      g_column ?= g_columns-&amp;gt;get_column( 'EBELN' ).&lt;/P&gt;&lt;P&gt;      g_column-&amp;gt;set_cell_type( g_column-&amp;gt;hotspot ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      g_events = g_alv_out-&amp;gt;get_event( ).&lt;/P&gt;&lt;P&gt;      CREATE OBJECT gr_events .&lt;/P&gt;&lt;P&gt;      SET HANDLER gr_events-&amp;gt;on_double_click FOR g_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Display report&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      g_alv_out-&amp;gt;display( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CATCH cx_salv_msg.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where in the Status  STANDARD I have entered all the buttons includeing these two buttons &lt;/P&gt;&lt;P&gt;Can you please Help me in solving this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vinod parhad on Jul 2, 2010 1:35 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 11:35:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-layout-button-in-object-oriented-alv/m-p/7124828#M1511595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-02T11:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: save layout Button in Object Oriented ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-layout-button-in-object-oriented-alv/m-p/7124829#M1511596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data: gr_layout  type ref to cl_salv_layout,
gr_alv     type ref to cl_salv_table,
....
 gs_key     type salv_s_layout_key,
.....
* in your SALV routine.... after FACTORY call
gs_key-report = sy-repid.
......
* User can save layout.
  gr_layout  = gr_alv-&amp;gt;get_layout( ). "layouts
  gr_layout-&amp;gt;set_key( gs_key ).  "Pass Program Name
  gr_layout-&amp;gt;set_save_restriction( cl_salv_layout=&amp;gt;restrict_none ). "User can save&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also Rich Heilman's excellent tutorials on SALV by searching for SALV Tutorial,&lt;/P&gt;&lt;P&gt;See also programs named: SALV* for demonstrations of SALV outputs and how to code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: BreakPoint on Jul 2, 2010 1:46 PM add references for tutorials&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 11:44:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-layout-button-in-object-oriented-alv/m-p/7124829#M1511596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-02T11:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: save layout Button in Object Oriented ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-layout-button-in-object-oriented-alv/m-p/7124830#M1511597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the demo program SALV_DEMO_TABLE_LAYOUT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 11:49:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-layout-button-in-object-oriented-alv/m-p/7124830#M1511597</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-07-02T11:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: save layout Button in Object Oriented ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-layout-button-in-object-oriented-alv/m-p/7124831#M1511598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks this is the solution that i was looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 19:01:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-layout-button-in-object-oriented-alv/m-p/7124831#M1511598</guid>
      <dc:creator>former_member223090</dc:creator>
      <dc:date>2014-12-19T19:01:05Z</dc:date>
    </item>
  </channel>
</rss>

