<?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: Centre align ALV heading in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/centre-align-alv-heading/m-p/4264794#M1017601</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check this Blog&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_blogpost" href="https://community.sap.com/" __jive_macro_name="blogpost" modifiedtitle="true" __default_attr="44012"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Aug 2008 10:49:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-07T10:49:39Z</dc:date>
    <item>
      <title>Centre align ALV heading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/centre-align-alv-heading/m-p/4264793#M1017600</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;Is it possible to centre the ALV heading?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean the heading which is of the type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Header table for top of page
types: begin of slis_listheader,
         typ(1) type c,   " H = Header, S = Selection, A = Action
         key(20) type c,
         info type slis_entry,
       end of slis_listheader.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 10:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/centre-align-alv-heading/m-p/4264793#M1017600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T10:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Centre align ALV heading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/centre-align-alv-heading/m-p/4264794#M1017601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check this Blog&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_blogpost" href="https://community.sap.com/" __jive_macro_name="blogpost" modifiedtitle="true" __default_attr="44012"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 10:49:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/centre-align-alv-heading/m-p/4264794#M1017601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T10:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Centre align ALV heading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/centre-align-alv-heading/m-p/4264795#M1017602</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;&lt;/P&gt;&lt;P&gt;Take a look at this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYP:               Possible values:&lt;/P&gt;&lt;P&gt;                   - (H)eader:    - List header&lt;/P&gt;&lt;P&gt;                                   - only the contents of INFO are&lt;/P&gt;&lt;P&gt;                                     output (KEY is ignored)&lt;/P&gt;&lt;P&gt;                                   - usually one line = one entry&lt;/P&gt;&lt;P&gt;                     Attributes:  - &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;left-justified&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;                                   - bold&lt;/P&gt;&lt;P&gt;                                   - followed by empty line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   - (S)election: - Important header information, e.g.&lt;/P&gt;&lt;P&gt;                                      currency of amounts in the list&lt;/P&gt;&lt;P&gt;                                   - display format:&lt;/P&gt;&lt;P&gt;                                     KEY(bold) INFO(normal)&lt;/P&gt;&lt;P&gt;                                       Ex.:&lt;/P&gt;&lt;P&gt;                                     &lt;DEL&gt;KEY&lt;/DEL&gt;   -&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;INFO----&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;                                    Currency  DEM Ctrl area curr.&lt;/P&gt;&lt;P&gt;                                      Material  FGS_TEST Test material&lt;/P&gt;&lt;P&gt;                                   - usually several entries&lt;/P&gt;&lt;P&gt;                                     (one entry per line)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                      Attributes:  - &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;left-justified&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;                                   - bold (KEY=on/INFO=off)&lt;/P&gt;&lt;P&gt;                                   - followed by empty line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   - (A)ction:    - Action info (see LIBS)&lt;/P&gt;&lt;P&gt;                                    - direct output via table&lt;/P&gt;&lt;P&gt;                                   - only the contents of INFO are&lt;/P&gt;&lt;P&gt;                                     output (KEY is ignored)&lt;/P&gt;&lt;P&gt;                                   - usually one entry&lt;/P&gt;&lt;P&gt;                     Attributes:  - &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;left-justified&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;                                   - normal intensity&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;So it seems that all the three types are left-justified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to display the header in the center, you could check the example that Vijay refered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Stephanie HE on Aug 8, 2008 5:57 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 03:54:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/centre-align-alv-heading/m-p/4264795#M1017602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T03:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Centre align ALV heading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/centre-align-alv-heading/m-p/4264796#M1017603</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;&lt;/P&gt;&lt;P&gt;For sure using ALV _ GRID You can't display ALV Header in Center Allignment...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U need to use ALV_List display for ALV Header Center Allignment...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that You need to do is...&lt;/P&gt;&lt;P&gt;DATA: w_events   TYPE slis_alv_event,&lt;/P&gt;&lt;P&gt;      tbl_events TYPE slis_t_event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. declare a constant...&lt;/P&gt;&lt;P&gt;CONSTANTS: c_top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. build events ...as follow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_EVENTS_GET'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            i_list_type     = 0&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            et_events       = tbl_events&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            list_type_wrong = 1&lt;/P&gt;&lt;P&gt;            OTHERS          = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE tbl_events WITH KEY name = slis_ev_top_of_page&lt;/P&gt;&lt;P&gt;                               INTO w_events.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    MOVE c_top_of_page TO w_events-form.&lt;/P&gt;&lt;P&gt;    APPEND w_events TO tbl_events.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Pass tbl_event to List_display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM alv_display.&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      = c_repid&lt;/P&gt;&lt;P&gt;            is_layout               = tbl_layout&lt;/P&gt;&lt;P&gt;            it_fieldcat             = tbl_fcat&lt;/P&gt;&lt;P&gt;            i_save                  = c_save&lt;/P&gt;&lt;P&gt;            it_events               = tbl_events&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            t_outtab                = tbl_result&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;    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;4. create a Form Top_of_page..and display heading in center as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&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;     Form  TOP_OF_PAGE&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 top_of_page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let say text-003 is a company name = 'Inter Port Deliveries Pvt Ltd'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE: 70(30) text-003 CENTERED, " This write statement will dispaly it in Center and change position as per ur requiremnets&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;SKIP.&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;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suneel G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 04:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/centre-align-alv-heading/m-p/4264796#M1017603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T04:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Centre align ALV heading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/centre-align-alv-heading/m-p/4264797#M1017604</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't center and right align. if you want to display the text in center, you have to add spaces before your text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Boobalan S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 04:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/centre-align-alv-heading/m-p/4264797#M1017604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T04:20:14Z</dc:date>
    </item>
  </channel>
</rss>

