<?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>Question Re: Column Texts for an ALV Grid Control. in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804865#M249996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have almost given up on this one and told my customer that it would not be possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not doubt it for a moment when you say that it had worked for you, but unfortunately the code that you have given still does not work. At least it doesn't work on my system !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I run it, I still get only the icon on the column header. The text does not appear. In case you have run the program and have been able to get it work, please do re-verify once again. If you confirm that it works for you, then there might be some problem with my SAPGUI. May be I need to apply some patches or something which I will worry about later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for the interest you have shown to respond to this question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Poornanand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jul 2004 10:40:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2004-07-05T10:40:37Z</dc:date>
    <item>
      <title>Column Texts for an ALV Grid Control.</title>
      <link>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaq-p/804856</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 would like to know if it is possible to display an icon along with the column text in my ALV Grid. I'm using the class CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to display either an icon or some text but not both on the column header. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example code which has &amp;lt;i&amp;gt;&amp;lt;b&amp;gt;not&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt; worked for me: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If I use : CONCATENATE '@06@' 'Text' INTO COLTEXT.&lt;/P&gt;&lt;P&gt;   The column header just shows the icon (corresponding to the code @06@).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If I use : CONCATENATE 'Text' '@06@' INTO COLTEXT.&lt;/P&gt;&lt;P&gt;   The column header shows up as : Text @06@.i.e., the icon code is not being recognized and is showing up as text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I'm clear in expressing my doubt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jun 2004 08:01:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaq-p/804856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-06-30T08:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Column Texts for an ALV Grid Control.</title>
      <link>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804857#M249988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried this yet?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE ICON_DISPLAY AS ICON TO ICONBUTTON.&lt;/P&gt;&lt;P&gt;CONCATENATE ICONBUTTON 'Display' INTO ICONBUTTON&lt;/P&gt;&lt;P&gt;                   SEPARATED BY SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jun 2004 13:25:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804857#M249988</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2004-06-30T13:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Column Texts for an ALV Grid Control.</title>
      <link>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804858#M249989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this will work the same for the ALV column, but here is some code which adds an icon to a selection screen button using the function module ICON_CREATE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/selscr/but_buticon.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/selscr/but_buticon.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jun 2004 15:06:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804858#M249989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-06-30T15:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Column Texts for an ALV Grid Control.</title>
      <link>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804859#M249990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to &amp;lt;u&amp;gt;Rich Heilman&amp;lt;/u&amp;gt; and &amp;lt;u&amp;gt;Mart&amp;lt;/u&amp;gt; for your responses. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately none of the two solutions worked for me. The problem that I had originally had still persists.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2004 07:08:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804859#M249990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-07-01T07:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Column Texts for an ALV Grid Control.</title>
      <link>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804860#M249991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm....you would think that you can do it, but I can't seem to get it to work as well.  Have you ever seen this done in Standard SAP or someone else's program?  Maybe ALV is not set up to handle that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2004 14:18:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804860#M249991</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2004-07-01T14:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Column Texts for an ALV Grid Control.</title>
      <link>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804861#M249992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI:&lt;/P&gt;&lt;P&gt;please use this solution and try it.&lt;/P&gt;&lt;P&gt;1. creat the field for icon with iconname (frist you must type-pool:icon.)&lt;/P&gt;&lt;P&gt;2. assign value to icon.The value is like '@08Qconfirm@'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can get you want.If you get it ,please send mail to me: songzc3@sohu.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2004 02:04:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804861#M249992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-07-02T02:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Column Texts for an ALV Grid Control.</title>
      <link>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804862#M249993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mr.Heilman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not ( yet ) seen such a display in any of the Standard SAP screens that I have come across. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But well, I got this requirement, and I thought it should be possible to do it. If you have several columns which contain some values, then it is reasonable for the user to expect to see the overall status derived from the values in the column in the column-header. Don't you think so ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2004 12:45:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804862#M249993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-07-02T12:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Column Texts for an ALV Grid Control.</title>
      <link>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804863#M249994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Song Zhi Chong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I would like to make a small correction to your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the field catalog, if you set the field ICON to 'X', the column contents of the output table are output as an icon. However,the column contents must themselves contain a valid icon string - @06@ or @06\Q&amp;lt;i&amp;gt;Information&amp;lt;/i&amp;gt;@. In the latter case, the column contents will get the text "Information" as Quick Info. I understand that is what the \Q means.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do correct me if I'm wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2004 13:02:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804863#M249994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-07-02T13:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Column Texts for an ALV Grid Control.</title>
      <link>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804864#M249995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if you are still trying to get this to work but I have just managed to get it to work using the method described on &lt;A href="http://www.sapdevelopment.co.uk/reporting/selscr/but_buticon.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/selscr/but_buticon.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZSSCRBUTTONS2                                               *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;  Adds buttons to selection screen.                                  *&lt;/P&gt;&lt;P&gt;*&amp;amp;  Demonstrates alteration of selection screen layout depending on    *&lt;/P&gt;&lt;P&gt;*&amp;amp;  which button is pressed.                                           *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp;  Additional Info:                                                   *&lt;/P&gt;&lt;P&gt;*&amp;amp;    TEXT-FY1 = 'Fiscal Year'                                         *&lt;/P&gt;&lt;P&gt;*&amp;amp;    Selection text for SO_DATES = 'Date Period'                      *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zsscrbuttons2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: sscrfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gd_ucomm TYPE sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:     ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools: slis.                                 "ALV Declarations&lt;/P&gt;&lt;P&gt;*Data Declaration&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;TYPES: BEGIN OF t_ekko,&lt;/P&gt;&lt;P&gt;  ebeln TYPE ekpo-ebeln,&lt;/P&gt;&lt;P&gt;  ebelp TYPE ekpo-ebelp,&lt;/P&gt;&lt;P&gt;  statu TYPE ekpo-statu,&lt;/P&gt;&lt;P&gt;  aedat TYPE ekpo-aedat,&lt;/P&gt;&lt;P&gt;  matnr TYPE ekpo-matnr,&lt;/P&gt;&lt;P&gt;  menge TYPE ekpo-menge,&lt;/P&gt;&lt;P&gt;  meins TYPE ekpo-meins,&lt;/P&gt;&lt;P&gt;  netpr TYPE ekpo-netpr,&lt;/P&gt;&lt;P&gt;  peinh TYPE ekpo-peinh,&lt;/P&gt;&lt;P&gt; END OF t_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;      wa_ekko TYPE t_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ALV data declarations&lt;/P&gt;&lt;P&gt;data: fieldcatalog type slis_t_fieldcat_alv with header line,&lt;/P&gt;&lt;P&gt;      gd_tab_group type slis_t_sp_group_alv,&lt;/P&gt;&lt;P&gt;      gd_layout    type slis_layout_alv,&lt;/P&gt;&lt;P&gt;      gd_repid     like sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: icon_name TYPE iconname,&lt;/P&gt;&lt;P&gt;        button_text(20) TYPE c,&lt;/P&gt;&lt;P&gt;        quickinfo LIKE smp_dyntxt-quickinfo,&lt;/P&gt;&lt;P&gt;        icon_str(255) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*Start-of-selection.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Setup button 1 (Fiscal year)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  icon_name = 'ICON_ARROW_RIGHT'.    " 'ICON_DISPLAY_MORE'.&lt;/P&gt;&lt;P&gt;  button_text = 'Fiscal Year'.&lt;/P&gt;&lt;P&gt;  CONCATENATE button_text text-akt&lt;/P&gt;&lt;P&gt;              INTO quickinfo&lt;/P&gt;&lt;P&gt;              SEPARATED BY space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ICON_CREATE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      name                        = icon_name&lt;/P&gt;&lt;P&gt;      text                        = button_text&lt;/P&gt;&lt;P&gt;      info                        = quickinfo&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      ADD_STDINF                  = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      RESULT                      = icon_str&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS                      = 0. "not interested in errors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform data_retrieval.&lt;/P&gt;&lt;P&gt;perform build_fieldcatalog.&lt;/P&gt;&lt;P&gt;perform build_layout.&lt;/P&gt;&lt;P&gt;perform display_alv_report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  BUILD_FIELDCATALOG&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Build Fieldcatalog for ALV Report (www.sapdev.co.uk)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form build_fieldcatalog.&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'EBELN'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = icon_str.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 0.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 10.&lt;/P&gt;&lt;P&gt;  fieldcatalog-emphasize   = 'X'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-key         = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; fieldcatalog-do_sum      = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; fieldcatalog-no_zero     = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'EBELP'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'PO Item'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 1.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'STATU'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'Status'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 2.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'AEDAT'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'Item change date'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 3.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'MATNR'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'Material Number'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 4.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'MENGE'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'PO quantity'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 5.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'MEINS'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'Order Unit'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 6.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'NETPR'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'Net Price'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 7.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-datatype     = 'CURR'.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'PEINH'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'Price Unit'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 8.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;endform.                    " BUILD_FIELDCATALOG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  BUILD_LAYOUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Build layout for ALV grid report&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form build_layout.&lt;/P&gt;&lt;P&gt;  gd_layout-no_input          = 'X'.&lt;/P&gt;&lt;P&gt;  gd_layout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;P&gt;  gd_layout-totals_text       = 'Totals'(201).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; gd_layout-totals_only        = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; gd_layout-f2code            = 'DISP'.  "Sets fcode for when double&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                        "click(press f2)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; gd_layout-zebra             = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; gd_layout-group_change_edit = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; gd_layout-header_text       = 'helllllo'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endform.                    " BUILD_LAYOUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  DISPLAY_ALV_REPORT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Display report using ALV grid&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form display_alv_report.&lt;/P&gt;&lt;P&gt;  gd_repid = sy-repid.&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      = gd_repid&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           i_callback_user_command = 'USER_COMMAND'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           i_grid_title           = outtext&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            is_layout               = gd_layout&lt;/P&gt;&lt;P&gt;            it_fieldcat             = fieldcatalog[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           it_special_groups       = gd_tabgroup&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           IT_EVENTS                = GT_XEVENTS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            i_save                  = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           is_variant              = z_template&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            t_outtab                = it_ekko&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 &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.                    " DISPLAY_ALV_REPORT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  DATA_RETRIEVAL&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Retrieve data form EKPO table and populate itab it_ekko&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form data_retrieval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ebeln ebelp statu aedat matnr menge meins netpr peinh&lt;/P&gt;&lt;P&gt; up to 10 rows&lt;/P&gt;&lt;P&gt;  from ekpo&lt;/P&gt;&lt;P&gt;  into table it_ekko.&lt;/P&gt;&lt;P&gt;endform.                    " DATA_RETRIEVAL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2004 09:53:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804864#M249995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-07-05T09:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Column Texts for an ALV Grid Control.</title>
      <link>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804865#M249996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have almost given up on this one and told my customer that it would not be possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not doubt it for a moment when you say that it had worked for you, but unfortunately the code that you have given still does not work. At least it doesn't work on my system !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I run it, I still get only the icon on the column header. The text does not appear. In case you have run the program and have been able to get it work, please do re-verify once again. If you confirm that it works for you, then there might be some problem with my SAPGUI. May be I need to apply some patches or something which I will worry about later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for the interest you have shown to respond to this question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Poornanand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2004 10:40:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804865#M249996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-07-05T10:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Column Texts for an ALV Grid Control.</title>
      <link>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804866#M249997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doh!  please except my appologies, for some reason i had got it into my head that you simply wanted to display an icon in the colum header and not the text as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way of creating new icons, if so you could create one with the icon and text you want and then add that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry again&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2004 13:28:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/column-texts-for-an-alv-grid-control/qaa-p/804866#M249997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-07-05T13:28:06Z</dc:date>
    </item>
  </channel>
</rss>

