<?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 Save variant in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-variant/m-p/2465609#M553692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed a ALV report, and included the icon ICON_ALV_VARIANTS with function code &amp;amp;OL0. With this icon, the user can change the way it see the report, hide columns or show other ones. But the report doesn't show the option to save that variant, so the user can load in a easy way later.&lt;/P&gt;&lt;P&gt;What do I have to do, so the user can save his variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Javier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2007 14:15:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-27T14:15:05Z</dc:date>
    <item>
      <title>Save variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-variant/m-p/2465609#M553692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed a ALV report, and included the icon ICON_ALV_VARIANTS with function code &amp;amp;OL0. With this icon, the user can change the way it see the report, hide columns or show other ones. But the report doesn't show the option to save that variant, so the user can load in a easy way later.&lt;/P&gt;&lt;P&gt;What do I have to do, so the user can save his variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Javier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 14:15:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-variant/m-p/2465609#M553692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T14:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Save variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-variant/m-p/2465610#M553693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;at selection-screen on value-request for p_vari.&lt;/P&gt;&lt;P&gt;**-- Display all existing variants&lt;/P&gt;&lt;P&gt;  call function 'REUSE_ALV_VARIANT_F4'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            is_variant = g_variant&lt;/P&gt;&lt;P&gt;            i_save     = g_save&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            e_exit     = g_exit&lt;/P&gt;&lt;P&gt;            es_variant = gx_variant&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            not_found  = 2.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 2.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type 'S'      number sy-msgno&lt;/P&gt;&lt;P&gt;            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    if g_exit = space.&lt;/P&gt;&lt;P&gt;      p_vari = gx_variant-variant.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out these sample program for illustration of above FM&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/alv-reporting-z-list-materials.htm" target="test_blank"&gt;http://www.sap-img.com/abap/alv-reporting-z-list-materials.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/what-is-alv-programming.htm" target="test_blank"&gt;http://www.sap-img.com/abap/what-is-alv-programming.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 14:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-variant/m-p/2465610#M553693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T14:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Save variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-variant/m-p/2465611#M553694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You have the following EXPORTING parameters in my function module: &lt;/P&gt;&lt;P&gt;I_DEFAULT = 'X' &lt;/P&gt;&lt;P&gt;I_SAVE = 'A' "&amp;lt;=== this is to be global &amp;amp; user IS_VARIANT = VARIANT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VARIANT has the program's name in the REPORT field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;The "user-specific saving" needs a special authorization: 
Authority-check object 'S_ALV_LAYO' id 'ACTVT' field '23', you can 
avoid this authorization with IS_LAYOUT-NO_AUTHOR = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 14:25:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-variant/m-p/2465611#M553694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T14:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Save variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-variant/m-p/2465612#M553695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Javier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This functionality is already existing with ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the application toll bar you can these three butoon for this option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no need to implement new codes for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 14:30:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-variant/m-p/2465612#M553695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T14:30:55Z</dc:date>
    </item>
  </channel>
</rss>

