<?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: multiple rows in alv header in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-rows-in-alv-header/m-p/1669557#M296061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  ztest_alv_check     message-id zz  line-size 50         .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;type-pools: slis.&lt;/P&gt;&lt;P&gt;data: x_fieldcat type slis_fieldcat_alv,&lt;/P&gt;&lt;P&gt;      it_fieldcat type slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;      l_layout type slis_layout_alv,&lt;/P&gt;&lt;P&gt;      x_events type slis_alv_event,&lt;/P&gt;&lt;P&gt;      it_events type slis_t_event.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;      vbeln like vbak-vbeln,&lt;/P&gt;&lt;P&gt;      posnr like vbap-posnr,&lt;/P&gt;&lt;P&gt;      male type i,&lt;/P&gt;&lt;P&gt;      female type i,&lt;/P&gt;&lt;P&gt;     end of itab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select vbeln&lt;/P&gt;&lt;P&gt;       posnr&lt;/P&gt;&lt;P&gt;       from vbap&lt;/P&gt;&lt;P&gt;       up to 20 rows&lt;/P&gt;&lt;P&gt;       into table itab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;x_fieldcat-fieldname = 'VBELN'.&lt;/P&gt;&lt;P&gt;x_fieldcat-seltext_l = 'VBELN'.&lt;/P&gt;&lt;P&gt;x_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;x_fieldcat-col_pos = 1.&lt;/P&gt;&lt;P&gt;append x_fieldcat to it_fieldcat.&lt;/P&gt;&lt;P&gt;clear x_fieldcat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;x_fieldcat-fieldname = 'POSNR'.&lt;/P&gt;&lt;P&gt;x_fieldcat-seltext_l = 'POSNR'.&lt;/P&gt;&lt;P&gt;x_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;x_fieldcat-col_pos = 2.&lt;/P&gt;&lt;P&gt;append x_fieldcat to it_fieldcat.&lt;/P&gt;&lt;P&gt;clear x_fieldcat.&lt;/P&gt;&lt;P&gt;x_fieldcat-fieldname = 'MALE'.&lt;/P&gt;&lt;P&gt;x_fieldcat-seltext_l = 'MALE'.&lt;/P&gt;&lt;P&gt;x_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;x_fieldcat-col_pos = 3.&lt;/P&gt;&lt;P&gt;append x_fieldcat to it_fieldcat.&lt;/P&gt;&lt;P&gt;clear x_fieldcat.&lt;/P&gt;&lt;P&gt;x_fieldcat-fieldname = 'FEMALE'.&lt;/P&gt;&lt;P&gt;x_fieldcat-seltext_l = 'FEMALE'.&lt;/P&gt;&lt;P&gt;x_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;x_fieldcat-col_pos = 3.&lt;/P&gt;&lt;P&gt;append x_fieldcat to it_fieldcat.&lt;/P&gt;&lt;P&gt;clear x_fieldcat.&lt;/P&gt;&lt;P&gt;  x_events-name = slis_ev_top_of_page.&lt;/P&gt;&lt;P&gt;  x_events-form = 'TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt;  append x_events  to it_events.&lt;/P&gt;&lt;P&gt;  clear x_events .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  l_layout-no_colhead = 'X'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    i_callback_program       = sy-repid&lt;/P&gt;&lt;P&gt;    is_layout                = l_layout&lt;/P&gt;&lt;P&gt;    it_fieldcat              = it_fieldcat&lt;/P&gt;&lt;P&gt;    it_events                = it_events&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    t_outtab                 = itab&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;P&gt; &lt;/P&gt;&lt;P&gt;  message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;endif.&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;*-To display the headers for main list&lt;/P&gt;&lt;P&gt;    format color col_heading.&lt;/P&gt;&lt;P&gt;        write: / sy-uline(103).&lt;/P&gt;&lt;P&gt;    write: /   sy-vline,&lt;/P&gt;&lt;P&gt;          (8) ' ' ,&lt;/P&gt;&lt;P&gt;               sy-vline,&lt;/P&gt;&lt;P&gt;          (8)  ' ' ,&lt;/P&gt;&lt;P&gt;               sy-vline,&lt;/P&gt;&lt;P&gt;          (19) 'SEX'(015) centered,&lt;/P&gt;&lt;P&gt;               sy-vline.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    write: /   sy-vline,&lt;/P&gt;&lt;P&gt;          (8) 'VBELN'(013) ,&lt;/P&gt;&lt;P&gt;               sy-vline,&lt;/P&gt;&lt;P&gt;          (8) 'POSNR'(014) ,&lt;/P&gt;&lt;P&gt;               sy-vline,&lt;/P&gt;&lt;P&gt;          (8) 'MALE'(016) ,&lt;/P&gt;&lt;P&gt;               sy-vline,&lt;/P&gt;&lt;P&gt;           (8)  'FMALE'(017) ,&lt;/P&gt;&lt;P&gt;               sy-vline.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    format color off.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is there in link which I had given earlier. I have executed the code and it gives the output in the way you want. Just check it once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="163805"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Nov 2006 06:33:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-06T06:33:22Z</dc:date>
    <item>
      <title>multiple rows in alv header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-rows-in-alv-header/m-p/1669551#M296055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is is possible to display multiple rows in the alv header of an ALV&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBELN      POSNR&lt;/P&gt;&lt;P&gt;SALESDOCU  ITEM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the header of the ALV. Is it possible to do so...if yes, please give some program pointers..for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 06:12:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-rows-in-alv-header/m-p/1669551#M296055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T06:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: multiple rows in alv header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-rows-in-alv-header/m-p/1669552#M296056</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;see if this is what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="163805"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 06:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-rows-in-alv-header/m-p/1669552#M296056</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-06T06:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: multiple rows in alv header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-rows-in-alv-header/m-p/1669553#M296057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anversha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i saw that post and used that program.&lt;/P&gt;&lt;P&gt;it doesn't work...is it possbile to explain the logic behind that program...how to build the two screens 100 and 200....I copied the program and did necessary syntax changes....it doesn't work. in fact there is no display appearing....and the program doesn't use a field catalog...so how will the ALV display header in the first place?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 06:17:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-rows-in-alv-header/m-p/1669553#M296057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T06:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: multiple rows in alv header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-rows-in-alv-header/m-p/1669554#M296058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="163805"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 06:20:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-rows-in-alv-header/m-p/1669554#M296058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T06:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: multiple rows in alv header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-rows-in-alv-header/m-p/1669555#M296059</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;Yes it is possible  , like u display the normal header&lt;/P&gt;&lt;P&gt;in any ALV...&lt;/P&gt;&lt;P&gt;display the data(multiple rows ) in the TOP-OF-PAGE event of ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. populate the event catlog &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  g_r_events-name = 'TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt;  g_r_events-form = 'TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Call the alv function :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             i_callback_pf_status_set    = 'PF_STATUS_SET'&lt;/P&gt;&lt;P&gt;             i_callback_user_command     = 'USER_COMMAND'&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;/P&gt;&lt;P&gt;             i_save                      = g_f_save&lt;/P&gt;&lt;P&gt;             is_variant                  = g_r_variant&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;     it_events                   = g_t_events[]&amp;lt;/b&amp;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;3. define the form TOP_OF_PAGE.&lt;/P&gt;&lt;P&gt;  Form TOP_OF_PAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   HERE u code the logic to print data.&lt;/P&gt;&lt;P&gt;     loop at itab.&lt;/P&gt;&lt;P&gt;        write: itab-vbeln........&lt;/P&gt;&lt;P&gt;     endloop.&lt;/P&gt;&lt;P&gt;  endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 06:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-rows-in-alv-header/m-p/1669555#M296059</guid>
      <dc:creator>santhosh_patil</dc:creator>
      <dc:date>2006-11-06T06:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: multiple rows in alv header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-rows-in-alv-header/m-p/1669556#M296060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;santhosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i don't want to display in the top of page&lt;/P&gt;&lt;P&gt;i want to display in the alv header column itself.&lt;/P&gt;&lt;P&gt;there is a difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 06:26:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-rows-in-alv-header/m-p/1669556#M296060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T06:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: multiple rows in alv header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-rows-in-alv-header/m-p/1669557#M296061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  ztest_alv_check     message-id zz  line-size 50         .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;type-pools: slis.&lt;/P&gt;&lt;P&gt;data: x_fieldcat type slis_fieldcat_alv,&lt;/P&gt;&lt;P&gt;      it_fieldcat type slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;      l_layout type slis_layout_alv,&lt;/P&gt;&lt;P&gt;      x_events type slis_alv_event,&lt;/P&gt;&lt;P&gt;      it_events type slis_t_event.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;      vbeln like vbak-vbeln,&lt;/P&gt;&lt;P&gt;      posnr like vbap-posnr,&lt;/P&gt;&lt;P&gt;      male type i,&lt;/P&gt;&lt;P&gt;      female type i,&lt;/P&gt;&lt;P&gt;     end of itab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select vbeln&lt;/P&gt;&lt;P&gt;       posnr&lt;/P&gt;&lt;P&gt;       from vbap&lt;/P&gt;&lt;P&gt;       up to 20 rows&lt;/P&gt;&lt;P&gt;       into table itab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;x_fieldcat-fieldname = 'VBELN'.&lt;/P&gt;&lt;P&gt;x_fieldcat-seltext_l = 'VBELN'.&lt;/P&gt;&lt;P&gt;x_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;x_fieldcat-col_pos = 1.&lt;/P&gt;&lt;P&gt;append x_fieldcat to it_fieldcat.&lt;/P&gt;&lt;P&gt;clear x_fieldcat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;x_fieldcat-fieldname = 'POSNR'.&lt;/P&gt;&lt;P&gt;x_fieldcat-seltext_l = 'POSNR'.&lt;/P&gt;&lt;P&gt;x_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;x_fieldcat-col_pos = 2.&lt;/P&gt;&lt;P&gt;append x_fieldcat to it_fieldcat.&lt;/P&gt;&lt;P&gt;clear x_fieldcat.&lt;/P&gt;&lt;P&gt;x_fieldcat-fieldname = 'MALE'.&lt;/P&gt;&lt;P&gt;x_fieldcat-seltext_l = 'MALE'.&lt;/P&gt;&lt;P&gt;x_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;x_fieldcat-col_pos = 3.&lt;/P&gt;&lt;P&gt;append x_fieldcat to it_fieldcat.&lt;/P&gt;&lt;P&gt;clear x_fieldcat.&lt;/P&gt;&lt;P&gt;x_fieldcat-fieldname = 'FEMALE'.&lt;/P&gt;&lt;P&gt;x_fieldcat-seltext_l = 'FEMALE'.&lt;/P&gt;&lt;P&gt;x_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;x_fieldcat-col_pos = 3.&lt;/P&gt;&lt;P&gt;append x_fieldcat to it_fieldcat.&lt;/P&gt;&lt;P&gt;clear x_fieldcat.&lt;/P&gt;&lt;P&gt;  x_events-name = slis_ev_top_of_page.&lt;/P&gt;&lt;P&gt;  x_events-form = 'TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt;  append x_events  to it_events.&lt;/P&gt;&lt;P&gt;  clear x_events .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  l_layout-no_colhead = 'X'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    i_callback_program       = sy-repid&lt;/P&gt;&lt;P&gt;    is_layout                = l_layout&lt;/P&gt;&lt;P&gt;    it_fieldcat              = it_fieldcat&lt;/P&gt;&lt;P&gt;    it_events                = it_events&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    t_outtab                 = itab&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;P&gt; &lt;/P&gt;&lt;P&gt;  message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;endif.&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;*-To display the headers for main list&lt;/P&gt;&lt;P&gt;    format color col_heading.&lt;/P&gt;&lt;P&gt;        write: / sy-uline(103).&lt;/P&gt;&lt;P&gt;    write: /   sy-vline,&lt;/P&gt;&lt;P&gt;          (8) ' ' ,&lt;/P&gt;&lt;P&gt;               sy-vline,&lt;/P&gt;&lt;P&gt;          (8)  ' ' ,&lt;/P&gt;&lt;P&gt;               sy-vline,&lt;/P&gt;&lt;P&gt;          (19) 'SEX'(015) centered,&lt;/P&gt;&lt;P&gt;               sy-vline.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    write: /   sy-vline,&lt;/P&gt;&lt;P&gt;          (8) 'VBELN'(013) ,&lt;/P&gt;&lt;P&gt;               sy-vline,&lt;/P&gt;&lt;P&gt;          (8) 'POSNR'(014) ,&lt;/P&gt;&lt;P&gt;               sy-vline,&lt;/P&gt;&lt;P&gt;          (8) 'MALE'(016) ,&lt;/P&gt;&lt;P&gt;               sy-vline,&lt;/P&gt;&lt;P&gt;           (8)  'FMALE'(017) ,&lt;/P&gt;&lt;P&gt;               sy-vline.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    format color off.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is there in link which I had given earlier. I have executed the code and it gives the output in the way you want. Just check it once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="163805"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 06:33:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-rows-in-alv-header/m-p/1669557#M296061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T06:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: multiple rows in alv header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-rows-in-alv-header/m-p/1669558#M296062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is lot of difference.&lt;/P&gt;&lt;P&gt;One Que. why u want to display the item data in the header?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do one thing .&lt;/P&gt;&lt;P&gt;U can use hierarchical list display..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in which u can display the data at the header level and also the data at the item level. u can use the below FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REUSE_ALV_HIERSEQ_LIST_DISPLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 06:36:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-rows-in-alv-header/m-p/1669558#M296062</guid>
      <dc:creator>santhosh_patil</dc:creator>
      <dc:date>2006-11-06T06:36:22Z</dc:date>
    </item>
  </channel>
</rss>

