<?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: layout selection in ALV grid. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout-selection-in-alv-grid/m-p/5677683#M1290751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u. I did the same, created a structure only for the header fields and passed into fieldcatalog merge and ALV first display. Now its working fine.Thank u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anbu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jun 2009 14:22:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-04T14:22:51Z</dc:date>
    <item>
      <title>layout selection in ALV grid.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout-selection-in-alv-grid/m-p/5677678#M1290746</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 have one requirement to change the existing program. Currently it is displaying all the fields in the ALV grid. Now i need to make the selection screen with two options for Header data selection and Item data selection. So now if I select the Header data only to be displayed (in the coding I made the changes in the field catalog and hidded some fields using &lt;/P&gt;&lt;P&gt;                             WHEN 'FKART' &lt;/P&gt;&lt;P&gt;                              if p_header = 'X'.&lt;/P&gt;&lt;P&gt;                               &amp;lt;fc&amp;gt;-no_out = 'X'.&lt;/P&gt;&lt;P&gt;                              endif.&lt;/P&gt;&lt;P&gt;so now it should not display the FKART field in the output. My question is, If I select some different layout in the ALV GRID  even this hidden header fields are also getting displayed. Please help me and give me the solution for this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 19:48:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout-selection-in-alv-grid/m-p/5677678#M1290746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T19:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: layout selection in ALV grid.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout-selection-in-alv-grid/m-p/5677679#M1290747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should work if you use no_out = 'X'. Are you defining col position in fieldcatalog if so use properly other wise it will over write.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 19:54:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout-selection-in-alv-grid/m-p/5677679#M1290747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T19:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: layout selection in ALV grid.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout-selection-in-alv-grid/m-p/5677680#M1290748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u explain me bit clearly about the col position. Right now I have defined all the fields using a Zstructure and defined the same as internal table. suppose if i have 50 fields in the zstructure which have corresponding 1 to 50 col position. my question is ' If I change the order of the fields in the ALV grid layout does it affects the col position?'. For eg. Now i defined one layout in the ALV grid for all the item fields and made it as default. so now If i execute the program selecting for header display it picks this defaults item layout, but then the item fields should be empty and that's my probelm even some of the item fields with values are getting displayed when i select the Header option the selection screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 20:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout-selection-in-alv-grid/m-p/5677680#M1290748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T20:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: layout selection in ALV grid.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout-selection-in-alv-grid/m-p/5677681#M1290749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create 2 field catalog based on the codition pas the catalog to alv first display&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 20:16:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout-selection-in-alv-grid/m-p/5677681#M1290749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T20:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: layout selection in ALV grid.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout-selection-in-alv-grid/m-p/5677682#M1290750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anbu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try like this,  Modify your Col Position like this... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF P_HEARDER = 'X'.

  COL_POS = COL_POS + 1.

  FIELDCATALOG-COL_POS     = COL_POS.
  FIELDCATALOG-FIELDNAME   = 'FKART'.
  FIELDCATALOG-OUTPUTLEN   = 10.
  FIELDCATALOG-NO_OUT     = 'X'.

  APPEND FIELDCATALOG TO FIELDCATALOG.

ELSE.

  COL_POS = COL_POS + 1.

  FIELDCATALOG-COL_POS     = COL_POS.
  FIELDCATALOG-FIELDNAME   = 'FKART'.
  FIELDCATALOG-OUTPUTLEN   = 10.

  APPEND FIELDCATALOG TO FIELDCATALOG.

ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 01:30:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout-selection-in-alv-grid/m-p/5677682#M1290750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T01:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: layout selection in ALV grid.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout-selection-in-alv-grid/m-p/5677683#M1290751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u. I did the same, created a structure only for the header fields and passed into fieldcatalog merge and ALV first display. Now its working fine.Thank u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anbu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 14:22:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout-selection-in-alv-grid/m-p/5677683#M1290751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T14:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: layout selection in ALV grid.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout-selection-in-alv-grid/m-p/5677684#M1290752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anbu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont forget to Assign for those who tried to help you with points, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is the way to convey thanks in SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 00:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout-selection-in-alv-grid/m-p/5677684#M1290752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T00:53:57Z</dc:date>
    </item>
  </channel>
</rss>

