<?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: apply different layout in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/apply-different-layout/m-p/7413423#M1548412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I supposed you use ALV (OO, LVC or REUSE FM) all those objects have parameters to manage display variants : look for IS_VARIANT and I_SAVE, the code above was intended to be used to fill IS_VARIANT parameter :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
     EXPORTING
(...)
          i_save     = lv_save
          is_variant = ls_variant
(...)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD alv-&amp;gt;set_table_for_first_display
  EXPORTING
(...)
    is_variant                    = ls_variant
    i_save                        = lv_save
(...)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The use of handle allow management of many different ALV layouts in a single program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Oct 2010 11:55:45 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2010-10-14T11:55:45Z</dc:date>
    <item>
      <title>apply different layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/apply-different-layout/m-p/7413420#M1548409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,i am facing a problem now:i develop an ABAP report program,with 3 radio buttons on selection screen,output 3 lists correspondingly,they get different  fields,now if i config a userlayout for one output list,and set it as default layout for all users,this layout will apply to another two lists,how can i make it as list -specific for all users?i tried to create 3 GUIs,but it failed,any suggestion will be appreciate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 10:57:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/apply-different-layout/m-p/7413420#M1548409</guid>
      <dc:creator>former_member533538</dc:creator>
      <dc:date>2010-10-14T10:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: apply different layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/apply-different-layout/m-p/7413421#M1548410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a "handle" in your variant (structure DISVARIANT, field handle) use a different handle value for each list, so you can have 3 different default layouts, and layouts are related to one list.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ls_variant-report = sy-repid.
IF radio1 EQ c_x.
  ls_variant-handle = '0001'.
ELSEIF radio2 EQ c_x.
  ls_variant-handle = '0002'.
ELSEIF radio3 EQ c_x.
  ls_variant-handle = '0003'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 11:08:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/apply-different-layout/m-p/7413421#M1548410</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-10-14T11:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: apply different layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/apply-different-layout/m-p/7413422#M1548411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raymond ,thank you very much.I am new about SAP,can you explain more detail ?i am confused that how can i use handle to connect to specific layout?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 11:35:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/apply-different-layout/m-p/7413422#M1548411</guid>
      <dc:creator>former_member533538</dc:creator>
      <dc:date>2010-10-14T11:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: apply different layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/apply-different-layout/m-p/7413423#M1548412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I supposed you use ALV (OO, LVC or REUSE FM) all those objects have parameters to manage display variants : look for IS_VARIANT and I_SAVE, the code above was intended to be used to fill IS_VARIANT parameter :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
     EXPORTING
(...)
          i_save     = lv_save
          is_variant = ls_variant
(...)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD alv-&amp;gt;set_table_for_first_display
  EXPORTING
(...)
    is_variant                    = ls_variant
    i_save                        = lv_save
(...)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The use of handle allow management of many different ALV layouts in a single program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 11:55:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/apply-different-layout/m-p/7413423#M1548412</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-10-14T11:55:45Z</dc:date>
    </item>
  </channel>
</rss>

