<?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: ALV layout in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/5492877#M1256903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srikanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can have the layout on the selection screen.&lt;/P&gt;&lt;P&gt;What you can do is print the first layout and save the layout with the name.&lt;/P&gt;&lt;P&gt;Then print the ALV for the second internal table and save it's layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you can get both the layouts on the screen by using the following code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though this might not solve your problem totally, this might lead you to a nearer solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS:     p_var      TYPE disvariant-variant,
      	    gs_variant TYPE disvariant.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_var.
  PERFORM get_alv_variant
          USING    if_salv_c_layout=&amp;gt;restrict_none
          CHANGING p_var
                   gs_variant.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM get_alv_variant
  USING    i_restrict    TYPE salv_de_layout_restriction
  CHANGING cv_layout     TYPE disvariant-variant
           cs_variant    TYPE disvariant.

  DATA: ls_layout TYPE salv_s_layout_info,
        ls_key    TYPE salv_s_layout_key.

  ls_key-report = sy-repid.

  ls_layout = cl_salv_layout_service=&amp;gt;f4_layouts(
   s_key    = ls_key
   restrict = i_restrict ).

  cv_layout = ls_layout-layout.
  MOVE-CORRESPONDING ls_layout TO cs_variant.

ENDFORM.                    
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2009 10:31:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-14T10:31:43Z</dc:date>
    <item>
      <title>ALV layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/5492876#M1256902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am displaying 2alvs on single page using Obect oriented ABAP. Both the ALVs have different tables to display. now if i save one display layout for first ALV, it is displaying the same in second too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to give two parameter on selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Layout1----for 1st alv&lt;/P&gt;&lt;P&gt;Layout2----for 2nd alv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any way to get layouts list ALV specific rather then program specific.&lt;/P&gt;&lt;P&gt;I want F4 help for layout1 should show only the layouts saved for 1st ALV &amp;amp; F4 for layout2 should show layout saved for 2nd alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:24:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/5492876#M1256902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T10:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: ALV layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/5492877#M1256903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srikanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can have the layout on the selection screen.&lt;/P&gt;&lt;P&gt;What you can do is print the first layout and save the layout with the name.&lt;/P&gt;&lt;P&gt;Then print the ALV for the second internal table and save it's layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you can get both the layouts on the screen by using the following code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though this might not solve your problem totally, this might lead you to a nearer solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS:     p_var      TYPE disvariant-variant,
      	    gs_variant TYPE disvariant.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_var.
  PERFORM get_alv_variant
          USING    if_salv_c_layout=&amp;gt;restrict_none
          CHANGING p_var
                   gs_variant.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM get_alv_variant
  USING    i_restrict    TYPE salv_de_layout_restriction
  CHANGING cv_layout     TYPE disvariant-variant
           cs_variant    TYPE disvariant.

  DATA: ls_layout TYPE salv_s_layout_info,
        ls_key    TYPE salv_s_layout_key.

  ls_key-report = sy-repid.

  ls_layout = cl_salv_layout_service=&amp;gt;f4_layouts(
   s_key    = ls_key
   restrict = i_restrict ).

  cv_layout = ls_layout-layout.
  MOVE-CORRESPONDING ls_layout TO cs_variant.

ENDFORM.                    
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:31:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/5492877#M1256903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T10:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: ALV layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/5492878#M1256904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey!&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;if you are using the class CL_GUI_ALV_GRID&lt;/P&gt;&lt;P&gt; in method SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;parameter IS_VARIANT-report here should put different names if you have more than one alv in the same screen. something like IS_VARIANT-report = 'zreport1' for the first ALV and IS_VARIANT-report = 'zreport2' for the alv 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:36:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/5492878#M1256904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T10:36:12Z</dc:date>
    </item>
  </channel>
</rss>

