<?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: Adding layout variant to selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-layout-variant-to-selection-screen/m-p/2412436#M538216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I have defined a internal table of type disvariant and confirmed that it contains value before passing to display method, while debugging i could read the values in internal table, but the changing parameter c_layout remains blank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jun 2007 09:29:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-21T09:29:19Z</dc:date>
    <item>
      <title>Adding layout variant to selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-layout-variant-to-selection-screen/m-p/2412434#M538214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;         Currently I am working on report program, where I have to allow user to select his own output pattern. i.e layout variant is to be added to selection screen. The report uses object oriented ALV for display purpose. [set_table_for_first_display]&lt;/P&gt;&lt;P&gt;I made following steps,&lt;/P&gt;&lt;P&gt;1.	Declared one parameter of type disvariant.&lt;/P&gt;&lt;P&gt;2.	At selection-screen on value-request I called function REUSE_ALV_VARIANT_F4.&lt;/P&gt;&lt;P&gt;3.	Passed internal table to method set_table_for_first_display.&lt;/P&gt;&lt;P&gt;Now I am able to create save new variant, on selection screen I can select the variant that I have created, but output shows the all the fields though&lt;/P&gt;&lt;P&gt;Only few are selected. Please tell me any modification so as to reflect the changes in output.&lt;/P&gt;&lt;P&gt;I  am searching for a function which maintains fieldcat according to user defined variant.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nilesh kulkarni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 09:07:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-layout-variant-to-selection-screen/m-p/2412434#M538214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T09:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Adding layout variant to selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-layout-variant-to-selection-screen/m-p/2412435#M538215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how u are passing this variant which is selected at selectioon screen to Output ?&lt;/P&gt;&lt;P&gt;means are u passing these variants to methods which display ALV or not ?&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;Peram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 09:11:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-layout-variant-to-selection-screen/m-p/2412435#M538215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T09:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding layout variant to selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-layout-variant-to-selection-screen/m-p/2412436#M538216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I have defined a internal table of type disvariant and confirmed that it contains value before passing to display method, while debugging i could read the values in internal table, but the changing parameter c_layout remains blank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 09:29:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-layout-variant-to-selection-screen/m-p/2412436#M538216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T09:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding layout variant to selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-layout-variant-to-selection-screen/m-p/2412437#M538217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U have to use REUSE_ALV_VARIANT_EXISTENCE inorder to use the layout u have selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After ur code of REUSE_ALV_VARIANT_F4.&lt;/P&gt;&lt;P&gt;try this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;   PERFORM PAI_OF_SELECTION_SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G_REPID = SY-REPID.&lt;/P&gt;&lt;P&gt;G_SAVE = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM PAI_OF_SELECTION_SCREEN .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT P_LAYOUT IS INITIAL.&lt;/P&gt;&lt;P&gt;    MOVE G_VARIANT TO GX_VARIANT.&lt;/P&gt;&lt;P&gt;    MOVE P_LAYOUT TO GX_VARIANT-VARIANT.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              I_SAVE     = G_SAVE&lt;/P&gt;&lt;P&gt;         CHANGING&lt;/P&gt;&lt;P&gt;              CS_VARIANT = GX_VARIANT.&lt;/P&gt;&lt;P&gt;    G_VARIANT = GX_VARIANT.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    PERFORM VARIANT_INIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " PAI_OF_SELECTION_SCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM variant_init .&lt;/P&gt;&lt;P&gt;  CLEAR G_VARIANT.&lt;/P&gt;&lt;P&gt;  G_VARIANT-REPORT = G_REPID.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " variant_init&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when u call ALV for display, pass ur display variant, in this case  = g_variant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;~Arun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Arun Shekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 09:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-layout-variant-to-selection-screen/m-p/2412437#M538217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T09:33:39Z</dc:date>
    </item>
  </channel>
</rss>

