<?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: Change layout in ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-layout-in-alv/m-p/3352990#M804365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if i code gs_fieldcat-no_out = 'X', will it affect the user when he want to display that field when he click on the change layout button and choose that field to be shown. Will the field still be shown or not shown?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jan 2008 10:11:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-22T10:11:08Z</dc:date>
    <item>
      <title>Change layout in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-layout-in-alv/m-p/3352985#M804360</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;&lt;/P&gt;&lt;P&gt;I got this table contain 5 field. All these fields are output in the ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i hide default 2 field instead on screen load. Only display the neccessary 3 field out. But when the user click on the change layout button, he can choose whatever field to be display as he like. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i achieve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 09:58:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-layout-in-alv/m-p/3352985#M804360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T09:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change layout in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-layout-in-alv/m-p/3352986#M804361</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;use this logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: variant type disvariant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variant-report = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     i_callback_program                = sy_repid&lt;/P&gt;&lt;P&gt;     it_fieldcat                       = ist_fcat[]&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;i_save                            = 'X'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;is_variant                        = variant&lt;/STRONG&gt;   &lt;/P&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;      t_outtab                          = ist_main[]&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     program_error                     = 1&lt;/P&gt;&lt;P&gt;     OTHERS                            = 2&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&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;regards,&lt;/P&gt;&lt;P&gt;Santosh Thorat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 10:01:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-layout-in-alv/m-p/3352986#M804361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T10:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Change layout in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-layout-in-alv/m-p/3352987#M804362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dhwani shah on Jan 22, 2008 11:09 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 10:03:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-layout-in-alv/m-p/3352987#M804362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T10:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change layout in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-layout-in-alv/m-p/3352988#M804363</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;USe the following code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fill the defaule variant tab as below with  required fields as below.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;FORM check_fieldcat_variant_l.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA h_fieldcat_wa TYPE slis_fieldcat_alv.&lt;/P&gt;&lt;P&gt;  DATA h_index       LIKE sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  h_index = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE g_selfields_tab LINES sy-tabix.&lt;/P&gt;&lt;P&gt;  IF sy-tabix IS INITIAL.&lt;/P&gt;&lt;P&gt;    LOOP AT g_fieldcat_tab INTO h_fieldcat_wa.&lt;/P&gt;&lt;P&gt;      CASE h_fieldcat_wa-fieldname.&lt;/P&gt;&lt;P&gt;        WHEN 'PM_SELECTED'.&lt;/P&gt;&lt;P&gt;          h_fieldcat_wa-no_out  = space.&lt;/P&gt;&lt;P&gt;          h_fieldcat_wa-col_pos = 1.&lt;/P&gt;&lt;P&gt;        WHEN 'Z_RSLID'.&lt;/P&gt;&lt;P&gt;          h_fieldcat_wa-no_out  = space.&lt;/P&gt;&lt;P&gt;          h_fieldcat_wa-col_pos = 2.&lt;/P&gt;&lt;P&gt;        WHEN 'Z_FUNLC'.&lt;/P&gt;&lt;P&gt;          h_fieldcat_wa-no_out  = space.&lt;/P&gt;&lt;P&gt;          h_fieldcat_wa-col_pos = 3.&lt;/P&gt;&lt;P&gt;        WHEN 'Z_SMPDS'.&lt;/P&gt;&lt;P&gt;          h_fieldcat_wa-no_out = space.&lt;/P&gt;&lt;P&gt;          h_fieldcat_wa-col_pos = 4.&lt;/P&gt;&lt;P&gt;        WHEN 'Z_SCHDT'.&lt;/P&gt;&lt;P&gt;          h_fieldcat_wa-no_out = space.&lt;/P&gt;&lt;P&gt;          h_fieldcat_wa-col_pos = 5.&lt;/P&gt;&lt;P&gt;        WHEN 'Z_SCHTM'.&lt;/P&gt;&lt;P&gt;          h_fieldcat_wa-no_out = space.&lt;/P&gt;&lt;P&gt;          h_fieldcat_wa-col_pos = 6.&lt;/P&gt;&lt;P&gt;        WHEN 'Z_ANLYT'.&lt;/P&gt;&lt;P&gt;          h_fieldcat_wa-no_out = space.&lt;/P&gt;&lt;P&gt;          h_fieldcat_wa-col_pos = 7.&lt;/P&gt;&lt;P&gt;        WHEN OTHERS.&lt;/P&gt;&lt;P&gt;          h_fieldcat_wa-no_out = g_x.&lt;/P&gt;&lt;P&gt;      ENDCASE.&lt;/P&gt;&lt;P&gt;      MODIFY g_fieldcat_tab FROM h_fieldcat_wa.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                               " CHECK_FIELDCAT_VARIANT_L&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and pass the  that intrnal table in the following FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              i_buffer_active          = g_alv_buffer&lt;/P&gt;&lt;P&gt;              i_callback_program       = g_repid&lt;/P&gt;&lt;P&gt;              i_callback_pf_status_set =  g_form_set_pf_stat&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          I_CALLBACK_USER_COMMAND  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          I_STRUCTURE_NAME         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              is_layout                = g_layout&lt;/P&gt;&lt;P&gt;              it_fieldcat              = g_fieldcat_tab[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          it_excluding             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              it_special_groups        = g_fieldgroups_tab[]&lt;/P&gt;&lt;P&gt;              it_sort                  = g_sortfields_tab[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          it_filter                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          is_sel_hide              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              i_default                = g_n&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             i_save                   = g_variant_save&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              i_save                   = g_a&lt;/P&gt;&lt;P&gt;              is_variant               = g_variant&lt;/P&gt;&lt;P&gt;              it_events                = g_events_tab[]&lt;/P&gt;&lt;P&gt;              it_event_exit            = g_event_exit_tab[]&lt;/P&gt;&lt;P&gt;              is_print                 = g_print&lt;/P&gt;&lt;P&gt;              i_screen_start_column    = g_screen_start_column&lt;/P&gt;&lt;P&gt;              i_screen_start_line      = g_screen_start_line&lt;/P&gt;&lt;P&gt;              i_screen_end_column      = g_screen_end_column&lt;/P&gt;&lt;P&gt;              i_screen_end_line        = g_screen_end_line&lt;/P&gt;&lt;P&gt;              it_except_qinfo          = gt_qinf&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     importing&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          e_exit_caused_by_caller  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              t_outtab                 =  object_tab&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;               t_outtab                 =  it_display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              program_error            = 1&lt;/P&gt;&lt;P&gt;              OTHERS                   = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nageswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 10:05:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-layout-in-alv/m-p/3352988#M804363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T10:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Change layout in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-layout-in-alv/m-p/3352989#M804364</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;You can do as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While building your fieldcatalog for all the fields, for that fields that should be in change layout for that fields you can use the code as gs_fieldcat-no_out = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 10:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-layout-in-alv/m-p/3352989#M804364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T10:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Change layout in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-layout-in-alv/m-p/3352990#M804365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if i code gs_fieldcat-no_out = 'X', will it affect the user when he want to display that field when he click on the change layout button and choose that field to be shown. Will the field still be shown or not shown?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 10:11:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-layout-in-alv/m-p/3352990#M804365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T10:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change layout in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-layout-in-alv/m-p/3352991#M804366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx i tested it worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 10:18:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-layout-in-alv/m-p/3352991#M804366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T10:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Change layout in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-layout-in-alv/m-p/3352992#M804367</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;Due to this code, I field will be in the change layout, once the report is displayed you can choose the other fields by selecting change layout, if yuo select those fields in the change layout, that fields will be displayed in the repoer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 10:19:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-layout-in-alv/m-p/3352992#M804367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T10:19:39Z</dc:date>
    </item>
  </channel>
</rss>

