<?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/5739286#M1301309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi once the Layout is set, you can use the function module 'REUSE_ALV_VARIANT_F4' to get the name of the layout that is set, based on these variants you can declare field symbols of type table and you can populate them with the required data. &lt;/P&gt;&lt;P&gt;&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          = ls_variant&lt;/P&gt;&lt;P&gt;            i_save              = 'A'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          it_default_fieldcat =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            e_exit              = l_exit&lt;/P&gt;&lt;P&gt;            es_variant          = ls_variant&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            not_found = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else in the ALV Output screen itself you will have a button to save the data, this will save the data based on the Layout that is selected. (You can change the layout and save the layout) after that you can download the data based on the selected layout. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.Dakshna Nagaratnam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2009 12:53:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-27T12:53:37Z</dc:date>
    <item>
      <title>ALV layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/5739284#M1301307</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;My user want me to download data when he change the alv layout.&lt;/P&gt;&lt;P&gt;For example there are 10 fields in a alv report ,and the user change the layout setting to 5 fields,I need to know which are displayed on grid, how can I get it ?&lt;/P&gt;&lt;P&gt;Pls help me ,thanks a lot !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mr.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 12:32:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/5739284#M1301307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T12:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: ALV layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/5739285#M1301308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the below function module, this will bring based on the number of fields selected in the layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_LAYOUT_INFO_GET'&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          es_layout   = gs_layout&lt;/P&gt;&lt;P&gt;          et_fieldcat = g_fieldcat[]&lt;/P&gt;&lt;P&gt;          et_sort     = gt_sort&lt;/P&gt;&lt;P&gt;          et_filter   = gt_filter&lt;/P&gt;&lt;P&gt;          es_variant  = gs_variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      DELETE g_fieldcat WHERE no_out = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 12:52:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/5739285#M1301308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T12:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: ALV layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/5739286#M1301309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi once the Layout is set, you can use the function module 'REUSE_ALV_VARIANT_F4' to get the name of the layout that is set, based on these variants you can declare field symbols of type table and you can populate them with the required data. &lt;/P&gt;&lt;P&gt;&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          = ls_variant&lt;/P&gt;&lt;P&gt;            i_save              = 'A'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          it_default_fieldcat =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            e_exit              = l_exit&lt;/P&gt;&lt;P&gt;            es_variant          = ls_variant&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            not_found = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else in the ALV Output screen itself you will have a button to save the data, this will save the data based on the Layout that is selected. (You can change the layout and save the layout) after that you can download the data based on the selected layout. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.Dakshna Nagaratnam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 12:53:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/5739286#M1301309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T12:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: ALV layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/5739287#M1301310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PBS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is raising an exception saying NO_INFOS and resulting to short dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mr.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 13:18:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/5739287#M1301310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T13:18:31Z</dc:date>
    </item>
  </channel>
</rss>

