<?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: REGARDING ALV GRID in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-grid/m-p/5041893#M1172349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the information and your care... i'll avoid such mistakes hereafter...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Jan 2009 08:26:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-18T08:26:19Z</dc:date>
    <item>
      <title>REGARDING ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-grid/m-p/5041887#M1172343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need to display contents which are upto &lt;STRONG&gt;3 lines in the title of a ALV-GRID display..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the contents of the grid are a combination from various tables...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result should be like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Title&lt;/STRONG&gt; - &lt;EM&gt;'COMPANY NAME'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;          &lt;EM&gt;'PERSON INCHARGE'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;         &lt;EM&gt;'TELEPHONE NUMBER'.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BODY&lt;/STRONG&gt;- &lt;EM&gt;ALV GRID DISPLAY..&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOW CAN I BRING THIS OUTPUT...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THE CONTENTS OF THE &lt;STRONG&gt;TITLE &lt;EM&gt;SHOULD NOT BE HARD CODED.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2009 17:33:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-grid/m-p/5041887#M1172343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-17T17:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: REGARDING ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-grid/m-p/5041888#M1172344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUGGESTIONS PLEASE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2009 17:40:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-grid/m-p/5041888#M1172344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-17T17:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: REGARDING ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-grid/m-p/5041889#M1172345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...instead of diplaying the information in titlebar..u can put it in top-of-page using...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM TOP_OF_PAGE. &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 = GT_LIST_TOP_OF_PAGE.           "the 3 lines needed&lt;/P&gt;&lt;P&gt;  WRITE: SY-DATUM, 'Page No', SY-PAGNO LEFT-JUSTIFIED. &lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Titlebar is only for showing the info of the table...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2009 17:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-grid/m-p/5041889#M1172345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-17T17:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: REGARDING ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-grid/m-p/5041890#M1172346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a detailed example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form top-of-page.&lt;/P&gt;&lt;P&gt;*ALV Header declarations&lt;/P&gt;&lt;P&gt;  data: t_header type slis_t_listheader,&lt;/P&gt;&lt;P&gt;        wa_header type slis_listheader,&lt;/P&gt;&lt;P&gt;        t_line like wa_header-info,&lt;/P&gt;&lt;P&gt;        ld_lines type i,&lt;/P&gt;&lt;P&gt;        ld_linesc(10) type c.&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;  wa_header-typ  = 'H'.&lt;/P&gt;&lt;P&gt;  wa_header-info = 'EKKO Table Report'.&lt;/P&gt;&lt;P&gt;  append wa_header to t_header.&lt;/P&gt;&lt;P&gt;  clear wa_header.&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;  wa_header-typ  = 'S'.&lt;/P&gt;&lt;P&gt;  wa_header-key = 'Date: '.&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 wa_header-info."todays date&lt;/P&gt;&lt;P&gt;  append wa_header to t_header.&lt;/P&gt;&lt;P&gt;  clear: wa_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Total No. of Records Selected&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  describe table it_ekko lines ld_lines.&lt;/P&gt;&lt;P&gt;  ld_linesc = ld_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  concatenate 'Total No. of Records Selected: ' ld_linesc&lt;/P&gt;&lt;P&gt;     into t_line separated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_header-typ  = 'A'.&lt;/P&gt;&lt;P&gt;  wa_header-info = t_line.&lt;/P&gt;&lt;P&gt;  append wa_header to t_header.&lt;/P&gt;&lt;P&gt;  clear: wa_header, t_line.&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;P&gt;       i_logo             = 'GANESH_LOGO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " top-of-page&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2009 17:58:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-grid/m-p/5041890#M1172346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-17T17:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: REGARDING ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-grid/m-p/5041891#M1172347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please conform [forum rules|https://wiki.sdn.sap.com/wiki/display/HOME/Rules&lt;EM&gt;of&lt;/EM&gt;Engagement] :&lt;/P&gt;&lt;P&gt;- "Use a good subject line" (Step 2)&lt;/P&gt;&lt;P&gt;- As this question is very common, it appears clear that you didn't "check SAP's online help \[...\] SAP Notes \[...\] the forums, the articles, the blog posts and the Frequently Asked Questions (FAQ) in the Wiki"&lt;/P&gt;&lt;P&gt;Keep in mind that your thread may be locked (see [this thread|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1201584"&gt;&lt;/A&gt;; for example) if you don't conform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2009 18:08:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-grid/m-p/5041891#M1172347</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-01-17T18:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: REGARDING ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-grid/m-p/5041892#M1172348</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 can print these details using this code, its working:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*FOR TOP OF THE PAGE
DATA : it_top TYPE slis_t_listheader,
       wa_top TYPE slis_listheader.
&amp;nbsp;
*&amp;amp;#38;---------------------------------------------------------------------*
*          DISPLAY RECORDS IN ALV GRID
*&amp;amp;#38;---------------------------------------------------------------------*
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program                = sy-repid &amp;amp;quot;report id
      i_callback_top_of_page            = 'TOP' &amp;amp;quot;for top of page
      is_layout                         = wa_layout &amp;amp;quot;layout
      it_fieldcat                       = it_field &amp;amp;quot;field catalogs
      it_sort                           = it_sort &amp;amp;quot;sort records
      i_save                            = 'A' &amp;amp;quot;variant for all users
      is_variant                        = wa_variant &amp;amp;quot;variant selected
    TABLES
      t_outtab                          = itab &amp;amp;quot;internal table with data
    EXCEPTIONS
      program_error                     = 1
      OTHERS                            = 2.
&amp;nbsp;
  IF sy-subrc  0.
  ENDIF.
&amp;nbsp;
*&amp;amp;#38;---------------------------------------------------------------------*
*&amp;amp;#38;      Form  top
*&amp;amp;#38;---------------------------------------------------------------------*
*       TO WRITE THE HEADER
*----------------------------------------------------------------------*
FORM top.
&amp;nbsp;
  REFRESH it_top.
  wa_top-typ = 'S'.
  wa_top-key = 'Company Name'.
  wa_top-info = v_cname. &amp;amp;quot;variable holding value of company name
  APPEND wa_top TO it_top.
  CLEAR wa_top.
&amp;nbsp;
  wa_top-typ = 'S'.
  wa_top-key = 'Incharge'.
  wa_top-info = v_pinch. &amp;amp;quot;variable holding value of person's name
  APPEND wa_top TO it_top.
  CLEAR wa_top.
&amp;nbsp;
  wa_top-typ = 'S'.
  wa_top-key = 'Contact No'.
  wa_top-info = v_telno. &amp;amp;quot;variable holding value of contact number
  APPEND wa_top TO it_top.
  CLEAR wa_top.
&amp;nbsp;
  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
      it_list_commentary       = it_top
*   I_LOGO                   =
*   I_END_OF_LIST_GRID       =
*   I_ALV_FORM               =
            .
&amp;nbsp;
ENDFORM.                    &amp;amp;quot;top
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will print the header information as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Tarun Gambhir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Jan 2009 06:01:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-grid/m-p/5041892#M1172348</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-01-18T06:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: REGARDING ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-grid/m-p/5041893#M1172349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the information and your care... i'll avoid such mistakes hereafter...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Jan 2009 08:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-grid/m-p/5041893#M1172349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-18T08:26:19Z</dc:date>
    </item>
  </channel>
</rss>

