<?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: About adding new fields into ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-adding-new-fields-into-alv/m-p/6803258#M1467765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi william,&lt;/P&gt;&lt;P&gt;whenever you want to add new fields to the alv displayed table  you have to add&lt;/P&gt;&lt;P&gt;new fields to the fieldcatalog there is nothing like it hide unless you explicitly define it to be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i want to add seatsmax and seatsocc in my table then i add this for the existing fieldcatelog&lt;/P&gt;&lt;P&gt;code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fcat-fieldname = 'SEATSMAX'.&lt;/P&gt;&lt;P&gt;fcat-outputlen = 15.&lt;/P&gt;&lt;P&gt;fcat-ref_table = 'SFLIGHT'.&lt;/P&gt;&lt;P&gt;fcat-key_sel ='X'.&lt;/P&gt;&lt;P&gt;APPEND fcat TO t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fcat-fieldname = 'SEATSOCC'.&lt;/P&gt;&lt;P&gt;fcat-outputlen = 15.&lt;/P&gt;&lt;P&gt;fcat-ref_table = 'SFLIGHT'.&lt;/P&gt;&lt;P&gt;fcat-key_sel ='X'.&lt;/P&gt;&lt;P&gt;APPEND fcat TO t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the other way is to pass directly the structure to the parameter i_structure_name &lt;/P&gt;&lt;P&gt;of the method set_table_for_first_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope it helped you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards and Best wishes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Apr 2010 04:31:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-14T04:31:43Z</dc:date>
    <item>
      <title>About adding new fields into ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-adding-new-fields-into-alv/m-p/6803254#M1467761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going to enhance a ALV with some new fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done all the changes (enhance structure, fieldcatlog, filling values), but the fields don't appear on the ALV. And only after I change the layout settings and create a new settings, it appears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume the new fields is hidden by the layout settings. But before my enhancements, there is also no layout settings. Why the original fields appear without the layout settings?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 09:04:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-adding-new-fields-into-alv/m-p/6803254#M1467761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-13T09:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: About adding new fields into ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-adding-new-fields-into-alv/m-p/6803255#M1467762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was there a global display variant?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 23:30:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-adding-new-fields-into-alv/m-p/6803255#M1467762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-13T23:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: About adding new fields into ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-adding-new-fields-into-alv/m-p/6803256#M1467763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a number of ways to create a fieldcat, you have to declare your new fields&lt;/P&gt;&lt;P&gt; ( the fields which you want them to appear in your ALV grid ) in the code &lt;/P&gt;&lt;P&gt;depends on the way you are using to create your fieldcat:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

form build_fieldcatalog.

fieldcatalog-fieldname = 'EBELN'.
fieldcatalog-seltext_m = 'Purchase Order'.
fieldcatalog-col_pos = 0.
fieldcatalog-outputlen = 10.
fieldcatalog-emphasize = 'X'.
fieldcatalog-key = 'X'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.

fieldcatalog-fieldname = 'EBELP'.
fieldcatalog-seltext_m = 'PO Item'.
fieldcatalog-col_pos = 1.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.

fieldcatalog-fieldname = 'AEDAT'.
fieldcatalog-seltext_m = 'Item change date'.
fieldcatalog-col_pos = 2.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.

endform. " BUILD_FIELDCATALOG

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will help you...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 00:23:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-adding-new-fields-into-alv/m-p/6803256#M1467763</guid>
      <dc:creator>Yasin</dc:creator>
      <dc:date>2010-04-14T00:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: About adding new fields into ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-adding-new-fields-into-alv/m-p/6803257#M1467764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean for global display variant?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the ALV create method has the following parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call method alv_advicedata-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        is_layout            = i_layout&lt;/P&gt;&lt;P&gt;        it_toolbar_excluding = it_exclude[]&lt;/P&gt;&lt;P&gt;        is_variant           = i_variant&lt;/P&gt;&lt;P&gt;        i_save               = 'A'&lt;/P&gt;&lt;P&gt;        i_default            = 'X'&lt;/P&gt;&lt;P&gt;      changing&lt;/P&gt;&lt;P&gt;        it_outtab            = me-&amp;gt;alv_advicedata_tab[]&lt;/P&gt;&lt;P&gt;        it_fieldcatalog      = it_fieldcat[].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 02:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-adding-new-fields-into-alv/m-p/6803257#M1467764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-14T02:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: About adding new fields into ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-adding-new-fields-into-alv/m-p/6803258#M1467765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi william,&lt;/P&gt;&lt;P&gt;whenever you want to add new fields to the alv displayed table  you have to add&lt;/P&gt;&lt;P&gt;new fields to the fieldcatalog there is nothing like it hide unless you explicitly define it to be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i want to add seatsmax and seatsocc in my table then i add this for the existing fieldcatelog&lt;/P&gt;&lt;P&gt;code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fcat-fieldname = 'SEATSMAX'.&lt;/P&gt;&lt;P&gt;fcat-outputlen = 15.&lt;/P&gt;&lt;P&gt;fcat-ref_table = 'SFLIGHT'.&lt;/P&gt;&lt;P&gt;fcat-key_sel ='X'.&lt;/P&gt;&lt;P&gt;APPEND fcat TO t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fcat-fieldname = 'SEATSOCC'.&lt;/P&gt;&lt;P&gt;fcat-outputlen = 15.&lt;/P&gt;&lt;P&gt;fcat-ref_table = 'SFLIGHT'.&lt;/P&gt;&lt;P&gt;fcat-key_sel ='X'.&lt;/P&gt;&lt;P&gt;APPEND fcat TO t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the other way is to pass directly the structure to the parameter i_structure_name &lt;/P&gt;&lt;P&gt;of the method set_table_for_first_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope it helped you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards and Best wishes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 04:31:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-adding-new-fields-into-alv/m-p/6803258#M1467765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-14T04:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: About adding new fields into ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-adding-new-fields-into-alv/m-p/6803259#M1467766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi William&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can add as much as you can cols to the Alv grid just copy and paste in the code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
it_fieldcatalog-fieldname = 'NAME'.
it_fieldcatalog-seltext   = 'NAME OF THE STUDENT'.
it_fieldcatalog-coltext =   'NAME OF THE STUDENT'.
APPEND it_fieldcatalog TO it_fieldcat.
CLEAR it_fieldcatalog.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can try to remove the line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is_variant = i_variant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 08:42:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-adding-new-fields-into-alv/m-p/6803259#M1467766</guid>
      <dc:creator>Yasin</dc:creator>
      <dc:date>2010-04-14T08:42:52Z</dc:date>
    </item>
  </channel>
</rss>

