<?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 Header in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-alv-header/m-p/2567816#M585990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3858260"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2007 07:10:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-03T07:10:37Z</dc:date>
    <item>
      <title>Changing ALV Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-alv-header/m-p/2567813#M585987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been using the following table to be displayed in ALV grid: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF gt_display OCCURS 0,&lt;/P&gt;&lt;P&gt;       pernr LIKE pernr-pernr,&lt;/P&gt;&lt;P&gt;       stat2 LIKE p0000-stat2,&lt;/P&gt;&lt;P&gt;       begda LIKE p0002-begda,&lt;/P&gt;&lt;P&gt;       endda LIKE p0002-endda,&lt;/P&gt;&lt;P&gt;       famdt LIKE p0002-famdt,&lt;/P&gt;&lt;P&gt;      END OF gt_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Store report name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  gv_repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create Fieldcatalogue from internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_program_name         = gv_repid&lt;/P&gt;&lt;P&gt;      i_internal_tabname     = 'GT_DISPLAY'&lt;/P&gt;&lt;P&gt;      i_inclname             = gv_repid&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      ct_fieldcat            = gt_fieldcat&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;      program_error          = 2&lt;/P&gt;&lt;P&gt;      OTHERS                 = 3.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e052(yhr) .&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_callback_program = gv_repid&lt;/P&gt;&lt;P&gt;        it_fieldcat        = gt_fieldcat&lt;/P&gt;&lt;P&gt;        i_save             = 'A'&lt;/P&gt;&lt;P&gt;        it_events          = gt_eventstab[]&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        t_outtab           = gt_display&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        program_error      = 1&lt;/P&gt;&lt;P&gt;        OTHERS             = 2.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE e053(yhr) .&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the column headings are not the ones which I wanted. I want to change the headings and give my own headings and display the data in the internal table in GRID format. Please help me in this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 07:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-alv-header/m-p/2567813#M585987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T07:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Changing ALV Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-alv-header/m-p/2567814#M585988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If u wantto change the headings then u cannot Use FM  'REUSE_ALV_FIELDCATALOG_MERGE' which actaully take takes the Labels from Data dicatiary.&lt;/P&gt;&lt;P&gt;so to display ur own text u need to cretae ur own Field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: w_fcat type slis_fcat_alv, &lt;/P&gt;&lt;P&gt;      t_fcat tpe slis_t_fcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_fcat-col_pos = 1.&lt;/P&gt;&lt;P&gt;w_fcat-fieldname= 'PERNR'.&lt;/P&gt;&lt;P&gt;w_fcat-seltext_m = 'My_own_text'.&lt;/P&gt;&lt;P&gt;append w_fcat to t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_fcat-col_pos = 2.&lt;/P&gt;&lt;P&gt;w_fcat-fieldname= 'stat2'.&lt;/P&gt;&lt;P&gt;w_fcat-seltext_m = 'own_text'.&lt;/P&gt;&lt;P&gt;append w_fcat to t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call FM' Reuse_alv_geid_disply'&lt;/P&gt;&lt;P&gt;it_fieldcat = t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;revert back if any issues,&lt;/P&gt;&lt;P&gt;Reward with poinst if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 07:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-alv-header/m-p/2567814#M585988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T07:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Changing ALV Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-alv-header/m-p/2567815#M585989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After calling REUSE_ALV_FIELDCATALOG_MERGE, loop at the field catalog and modify the fields used for column heading :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELTEXT_L
SELTEXT_M
SELTEXT_S
REPTEXT_DDIC&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;System will use the text that fits best, you can try to force the choice by filling parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DDICTXT (values space, L, M, S and R for the fields above)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 07:10:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-alv-header/m-p/2567815#M585989</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-08-03T07:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Changing ALV Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-alv-header/m-p/2567816#M585990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3858260"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 07:10:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-alv-header/m-p/2567816#M585990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T07:10:37Z</dc:date>
    </item>
  </channel>
</rss>

