<?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: ALV Grid Heading in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-heading/m-p/2835040#M663782</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;If you need to have some columns/fields in the column set of change layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use the below code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While filling you fieldcatalog you need to add code as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  CLEAR gs_fieldcat.
  gs_fieldcat-fieldname = 'WAERS'.
  gs_fieldcat-seltext_s = 'Doc Curr'.
  gs_fieldcat-seltext_l = 'Doc Curr'.
  gs_fieldcat-seltext_m = 'Doc Curr'.
  gs_fieldcat-fix_column  = 'X'.
  gs_fieldcat-outputlen = '4'.
  gs_fieldcat-tabname = 'GT_OUTPUT'.
  gs_fieldcat-no_out = 'X'.
  APPEND gs_fieldcat TO gt_fieldcat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming gt_fieldcat is your fieldcatlog, and WAERS is the field that need to in columnset of change layout for that fields you need to use no_out = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sriram Ponna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2007 18:00:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-26T18:00:00Z</dc:date>
    <item>
      <title>ALV Grid Heading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-heading/m-p/2835037#M663779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;             When i am clicking 'Change Layout' button in the final Output of ALV grid.I am getting the output Heading Multiple Times.The code is Below.&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 = v_repid&lt;/P&gt;&lt;P&gt;    i_callback_top_of_page = 'TOP_OF_PAGE'&lt;/P&gt;&lt;P&gt;*i_Save   = 'X'&lt;/P&gt;&lt;P&gt;    it_fieldcat = t_fieldcatalog&lt;/P&gt;&lt;P&gt;    it_events = I_events&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;    t_outtab = i_MBEW_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Title&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Form top_of_page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_header_str-typ = 'H'.&lt;/P&gt;&lt;P&gt;  I_header_Str-info = Text-035.&lt;/P&gt;&lt;P&gt;  append I_header_str to t_header.&lt;/P&gt;&lt;P&gt;  clear I_header_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Date&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  I_header_str-typ = 'S'.&lt;/P&gt;&lt;P&gt;  I_header_str-key = Text-036.&lt;/P&gt;&lt;P&gt;  CONCATENATE sy-datum+6(2) '.'&lt;/P&gt;&lt;P&gt;  sy-datum+4(2) '.'&lt;/P&gt;&lt;P&gt;  sy-datum(4) INTO I_header_str-info. "todays date&lt;/P&gt;&lt;P&gt;  append I_header_str to t_header.&lt;/P&gt;&lt;P&gt;  clear: I_header_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR i_line_event_str.&lt;/P&gt;&lt;P&gt;  i_line_event_str-name = 'TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt;  APPEND i_line_event_str TO i_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'REUSE_ALV_COMMENTARY_WRITE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      it_list_commentary = t_header.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;i_logo = 'Z_LOGO'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EndForm.                    "top_of_page&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  Can anybody tell me what's the Problem?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gopi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 16:22:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-heading/m-p/2835037#M663779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T16:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid Heading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-heading/m-p/2835038#M663780</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;You need to clear and refresh t_header in the subroutine top_of_page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form top_of_page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;clear t_header.&lt;/P&gt;&lt;P&gt;refresh t_header.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_header_str-typ = 'H'.&lt;/P&gt;&lt;P&gt;I_header_Str-info = Text-035.&lt;/P&gt;&lt;P&gt;append I_header_str to t_header.&lt;/P&gt;&lt;P&gt;clear I_header_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Date&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I_header_str-typ = 'S'.&lt;/P&gt;&lt;P&gt;I_header_str-key = Text-036.&lt;/P&gt;&lt;P&gt;CONCATENATE sy-datum+6(2) '.'&lt;/P&gt;&lt;P&gt;sy-datum+4(2) '.'&lt;/P&gt;&lt;P&gt;sy-datum(4) INTO I_header_str-info. "todays date&lt;/P&gt;&lt;P&gt;append I_header_str to t_header.&lt;/P&gt;&lt;P&gt;clear: I_header_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR i_line_event_str.&lt;/P&gt;&lt;P&gt;i_line_event_str-name = 'TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt;APPEND i_line_event_str TO i_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_COMMENTARY_WRITE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;it_list_commentary = t_header.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;i_logo = 'Z_LOGO'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EndForm. "top_of_page&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 16:46:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-heading/m-p/2835038#M663780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T16:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid Heading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-heading/m-p/2835039#M663781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sriram,&lt;/P&gt;&lt;P&gt;                Thanks,&lt;/P&gt;&lt;P&gt;               I am having other Q'n.When the final Output is Displayed in the Grid.&lt;/P&gt;&lt;P&gt;          We have "Change Laoyout" Button.In that " Columnset" is there What's the purpose of that one and How to use that one.&lt;/P&gt;&lt;P&gt;             My requirement is I have to display the Output and also I have to provide user so that he can select the Field which he need apart from  Basic Layout thru Change Layout Button.&lt;/P&gt;&lt;P&gt;             My Functional asked me to do like this Below is the Requirement &lt;/P&gt;&lt;P&gt; " I need to see the other columns which need to be provided for users to select. Many columns are listed in the output attached to functional spec. &lt;/P&gt;&lt;P&gt;Pl. get all these columns into the &amp;lt;b&amp;gt;'columnset'&amp;lt;/b&amp;gt; list to be chosen as needed.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Some examples of the missing columns are &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Def grid val&lt;/P&gt;&lt;P&gt;Def category&lt;/P&gt;&lt;P&gt;Spl proc class&lt;/P&gt;&lt;P&gt;With qty str&lt;/P&gt;&lt;P&gt;Material origin  &lt;/P&gt;&lt;P&gt;Origin group&lt;/P&gt;&lt;P&gt;Overhead group&lt;/P&gt;&lt;P&gt;Profit center&lt;/P&gt;&lt;P&gt;Plant sp mat status&lt;/P&gt;&lt;P&gt;Sp proc costing"So can please tell me how to do?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gopi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 16:52:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-heading/m-p/2835039#M663781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T16:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid Heading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-heading/m-p/2835040#M663782</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;If you need to have some columns/fields in the column set of change layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use the below code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While filling you fieldcatalog you need to add code as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  CLEAR gs_fieldcat.
  gs_fieldcat-fieldname = 'WAERS'.
  gs_fieldcat-seltext_s = 'Doc Curr'.
  gs_fieldcat-seltext_l = 'Doc Curr'.
  gs_fieldcat-seltext_m = 'Doc Curr'.
  gs_fieldcat-fix_column  = 'X'.
  gs_fieldcat-outputlen = '4'.
  gs_fieldcat-tabname = 'GT_OUTPUT'.
  gs_fieldcat-no_out = 'X'.
  APPEND gs_fieldcat TO gt_fieldcat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming gt_fieldcat is your fieldcatlog, and WAERS is the field that need to in columnset of change layout for that fields you need to use no_out = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sriram Ponna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 18:00:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-heading/m-p/2835040#M663782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T18:00:00Z</dc:date>
    </item>
  </channel>
</rss>

