<?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 Grid: dynamic/new fields by default hidden when using a layout in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-dynamic-new-fields-by-default-hidden-when-using-a-layout/m-p/3312682#M793436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, this was pretty much what I was thinking about as a workaround. However, I am still wondering whether there is a way to change the grid behavior regarding this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I just insert this code after the initial grid call or is there a suitable event that I could use?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2008 11:39:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-07T11:39:37Z</dc:date>
    <item>
      <title>ALV Grid: dynamic/new fields by default hidden when using a layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-dynamic-new-fields-by-default-hidden-when-using-a-layout/m-p/3312680#M793434</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 have an ALV Grid whose field catalog partially contains dynamically generated fields (i.e. columns) like "_200802" for months. &lt;/P&gt;&lt;P&gt;Furthermore, I have set a default layout to enforce an excel inplace view with a specific template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it seems that all dynamic columns that were not present at the time the layout was saved, are automatically hidden and have to be "unhidden" manually. Whenever a "new" month is to be displayed, it is hidden.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way either to declare field catalog entries as obligatory (i.e. a quasi opposite of NO_OUT) or tell the stored layout to change its behavior regarding unknown columns?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A possible workaround might be to call the set_frontend_fieldcatalog at an appropriate event after the initial grid creation..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your ideas,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 15:21:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-dynamic-new-fields-by-default-hidden-when-using-a-layout/m-p/3312680#M793434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T15:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid: dynamic/new fields by default hidden when using a layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-dynamic-new-fields-by-default-hidden-when-using-a-layout/m-p/3312681#M793435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be u can try this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  call method g_grid-&amp;gt;get_frontend_fieldcatalog
      importing
        et_fieldcatalog = gt_fieldcat[].
    perform f_rebuild_fieldcat changing gt_fieldcat. " Here u rebuild ur field catalog
    call method g_grid-&amp;gt;set_frontend_fieldcatalog
      exporting
        it_fieldcatalog = gt_fieldcat[].

    call method g_grid-&amp;gt;set_frontend_layout
      exporting
        is_layout = gs_layout.

    call method g_grid-&amp;gt;refresh_table_display.
 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 19:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-dynamic-new-fields-by-default-hidden-when-using-a-layout/m-p/3312681#M793435</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-02-06T19:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid: dynamic/new fields by default hidden when using a layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-dynamic-new-fields-by-default-hidden-when-using-a-layout/m-p/3312682#M793436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, this was pretty much what I was thinking about as a workaround. However, I am still wondering whether there is a way to change the grid behavior regarding this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I just insert this code after the initial grid call or is there a suitable event that I could use?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 11:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-dynamic-new-fields-by-default-hidden-when-using-a-layout/m-p/3312682#M793436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T11:39:37Z</dc:date>
    </item>
  </channel>
</rss>

