<?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: Changing ALV Grid column name dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-alv-grid-column-name-dynamically/m-p/3656316#M880717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Pass the string to field seltext_m.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aravind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Apr 2008 06:19:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-08T06:19:08Z</dc:date>
    <item>
      <title>Changing ALV Grid column name dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-alv-grid-column-name-dynamically/m-p/3656314#M880715</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 want to change the ALV grid column name dynamically to do so i have have tried changing the field catalog &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declared a string1 and setting this string value based on my logic but this is not reflected and always the field lable of the data element is taken.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CASE &amp;lt;fs_fcat&amp;gt;-fieldname.&lt;/P&gt;&lt;P&gt;      WHEN 'FIELD1'.&lt;/P&gt;&lt;P&gt;        &amp;lt;fs_fcat&amp;gt;-reptext = string1.&lt;/P&gt;&lt;P&gt;        &amp;lt;fs_fcat&amp;gt;-outputlen = 14.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have called my set_table_for_first_display like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DISPLAY THE DATA ON THE GRID&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL METHOD compare_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_structure_name     = 'PSHLP_COMPARE_DRAFT_ST'&lt;/P&gt;&lt;P&gt;        is_layout            = compare_layout&lt;/P&gt;&lt;P&gt;        it_toolbar_excluding = g_it_exclude&lt;/P&gt;&lt;P&gt;        is_variant           = ls_variant&lt;/P&gt;&lt;P&gt;        i_save               = 'A'&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        it_fieldcatalog      = compare_fieldcat&lt;/P&gt;&lt;P&gt;        it_outtab            = l_compare[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table always take the field lable from the structue and ignores the fieldcatalog value, can you suggest what is wrong here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help in advance, full points for helpful answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 05:48:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-alv-grid-column-name-dynamically/m-p/3656314#M880715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T05:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Changing ALV Grid column name dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-alv-grid-column-name-dynamically/m-p/3656315#M880716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harsh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try seltext_l, or seltext_m instead of reptext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this should help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 05:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-alv-grid-column-name-dynamically/m-p/3656315#M880716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T05:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Changing ALV Grid column name dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-alv-grid-column-name-dynamically/m-p/3656316#M880717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Pass the string to field seltext_m.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aravind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 06:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-alv-grid-column-name-dynamically/m-p/3656316#M880717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T06:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Changing ALV Grid column name dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-alv-grid-column-name-dynamically/m-p/3656317#M880718</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;we have the attribute seltext_l,m use one of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sindhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 06:37:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-alv-grid-column-name-dynamically/m-p/3656317#M880718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T06:37:30Z</dc:date>
    </item>
  </channel>
</rss>

