<?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 Header in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header/m-p/4847296#M1133683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;saptechnical.com/Tutorials/ALV/TopofPage/Solution.htm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in place of &lt;STRONG&gt;"&lt;/STRONG&gt;'* use &lt;STRONG&gt;"--"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Nov 2008 11:16:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-20T11:16:57Z</dc:date>
    <item>
      <title>ALV Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header/m-p/4847291#M1133678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to display ALV header as shown below:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Company Name:&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Run date:                            Effective date&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Contributions: EE   %             Dep     %&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                       &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 11:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header/m-p/4847291#M1133678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T11:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header/m-p/4847292#M1133679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM REUSE_ALV_COMMENTARY_WRITE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 11:06:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header/m-p/4847292#M1133679</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-11-20T11:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header/m-p/4847293#M1133680</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;Use like the below call top of page form in FM &lt;/P&gt;&lt;P&gt;and in subroutine append the intab&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
     i_callback_program                = l_repid
     i_callback_user_command           = 'USER_COMMAND'
     *i_callback_top_of_page            = 'TOP_OF_PAGE'*
     i_callback_pf_status_set          = 'SET_STAT'
     i_grid_title                      = l_string
     is_layout                         = wa_layout1
     it_fieldcat                       = i_field_cat1
     i_save                            = c_x
    TABLES
     t_outtab                          = i_log.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  Top_of_page
*&amp;amp;---------------------------------------------------------------------*
*       Top of page
*----------------------------------------------------------------------*
FORM top_of_page.
*First Line Header
REFRESH i_header.
CLEAR wa_header.
wa_header-typ = c_h.
wa_header-info = 'Contracts Mass Maintenance - Upload Log'(011).
APPEND wa_header TO i_header.
CLEAR wa_header.
*Second line header
wa_header-typ = c_s.
wa_header-key = 'DATE:'(012).
CONCATENATE sy-datum+6(2) c_s1 sy-datum+4(2) c_s1 sy-datum(4) INTO
wa_header-info.
APPEND wa_header TO i_header.
CLEAR wa_header.
Endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nandha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 11:09:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header/m-p/4847293#M1133680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T11:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header/m-p/4847294#M1133681</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;&lt;/P&gt;&lt;P&gt;Try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; v_date   = s_bldat-low+6(2).&lt;/P&gt;&lt;P&gt;  v_month  = s_bldat-low+4(2).&lt;/P&gt;&lt;P&gt;  v_year   = s_bldat-low+0(4).&lt;/P&gt;&lt;P&gt;  v_date1  = s_bldat-high+6(2).&lt;/P&gt;&lt;P&gt;  v_month1 = s_bldat-high+4(2).&lt;/P&gt;&lt;P&gt;  v_year1  = s_bldat-high+0(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : v_date5 LIKE v_date3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE v_date1 v_month1 v_year1 INTO v_date3 SEPARATED BY '.'.&lt;/P&gt;&lt;P&gt;  IF p_bukrs = '3000'.&lt;/P&gt;&lt;P&gt;    v_bukrs_txt = 'CMI FPE Ltd'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSEIF p_bukrs = '4000'.&lt;/P&gt;&lt;P&gt;    v_bukrs_txt = 'NT Strips and Automation Pvt Ltd'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fheader-typ = 'H'.  (&lt;STRONG&gt;'H' for header,'S' for sub headers)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  fheader-info = v_bukrs_txt.       " here v_butxt_txt changed to v_butxt on 27.09.2008&lt;/P&gt;&lt;P&gt;  APPEND fheader.&lt;/P&gt;&lt;P&gt;  CLEAR fheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fheader-typ = 'H'.&lt;/P&gt;&lt;P&gt;  CONCATENATE v_date v_month v_year INTO v_date5 SEPARATED BY '.'.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'Sales Register From' v_date5 'To' v_date3 INTO fheader-info SEPARATED BY space.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     concatenate fheader-key 'TO' v_date3 into fheader-info separated by space.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND fheader.&lt;/P&gt;&lt;P&gt;  CLEAR fheader.&lt;/P&gt;&lt;P&gt;  CLEAR v_date5.&lt;/P&gt;&lt;P&gt;&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       = fheader[]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     I_LOGO                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     I_END_OF_LIST_GRID       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         .&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       = fevents[]&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 fevents WITH KEY name = 'TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    fevents-form = 'TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt;    MODIFY fevents INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;    CLEAR fevents.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 11:12:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header/m-p/4847294#M1133681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T11:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header/m-p/4847295#M1133682</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;Also you can try like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ypm_historycard_rep.
 
 
TYPE-POOLS : slis.
DATA : it_cbm TYPE STANDARD TABLE OF mara.
DATA : it_layout TYPE STANDARD TABLE OF slis_layout_alv WITH HEADER LINE,
       wa_fcat TYPE slis_fieldcat_alv,
       it_fcat TYPE slis_t_fieldcat_alv.
 
START-OF-SELECTION.
  SELECT  *
  FROM  mara
  INTO CORRESPONDING FIELDS OF TABLE  it_cbm
  where matnr = 'D80K7'.
  .
 
END-OF-SELECTION.
 
  it_layout-zebra = 'X'.
  it_layout-colwidth_optimize = 'X'.
  it_layout-f2code = '&amp;amp;ETA'.
  APPEND it_layout.
 
 
  DEFINE macro4fcat.
    wa_fcat-col_pos = &amp;amp;1.
    wa_fcat-fieldname = &amp;amp;2.
    wa_fcat-tabname = &amp;amp;3.
    wa_fcat-seltext_l = &amp;amp;4.
    append wa_fcat to it_fcat.
    clear wa_fcat.
  END-OF-DEFINITION.
 
  macro4fcat    '1'  'MATNR'         'IT_CBM'   'MATERIAL NO'    .
 
 
 
 
  DESCRIBE TABLE it_cbm.
  IF sy-ucomm = '&amp;amp;F03'.
    MESSAGE 'hi hello good morning "press enter button" this is quiz' TYPE 'S'.
  ENDIF.
 
 
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
  EXPORTING
  i_callback_program                = sy-repid
 i_callback_html_top_of_page       = 'HTML_TOP_OF_PAGE'
  is_layout                         = it_layout
  it_fieldcat                       = it_fcat
   i_save                            = 'A'
  TABLES
  t_outtab                          = it_cbm
  EXCEPTIONS
  program_error                     = 1
  OTHERS                            = 2
  .
  IF sy-subrc  0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
 
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  html_top_of_page
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;TOP        text
*----------------------------------------------------------------------*
FORM html_top_of_page USING top TYPE REF TO cl_dd_document.
 
  DATA: l_text(255) TYPE c.
  DATA: text1(255)  TYPE c.
  DATA: t_header TYPE REF TO cl_dd_table_element ,
        wa_header TYPE REF TO cl_dd_table_area.
 
  CALL METHOD top-&amp;gt;add_gap
    EXPORTING
      width = 10.
 
 
  CALL METHOD top-&amp;gt;add_text
  EXPORTING
    text          = 'hello'
    sap_style     = 'HEADING'
 
.
CALL METHOD top-&amp;gt;add_gap
    EXPORTING
      width = 20.
 
 
  CALL METHOD top-&amp;gt;add_text
  EXPORTING
    text          = 'HOW ARE YOU'
    sap_style     = 'HEADING'.
 
    CALL METHOD TOP-&amp;gt;new_line
*      EXPORTING
*        repeat =
        .
    CALL METHOD top-&amp;gt;add_gap
    EXPORTING
      width = 50.
 
 
  CALL METHOD top-&amp;gt;add_text
  EXPORTING
    text          = '____________________________________________________________'
    sap_style     = 'HEADING'.
 
    CALL METHOD TOP-&amp;gt;new_line
*      EXPORTING
*        repeat =
        .
    CALL METHOD top-&amp;gt;add_gap
    EXPORTING
      width = 90.
 
 
  CALL METHOD top-&amp;gt;add_text
  EXPORTING
    text          = 'YOU CAN TRY LIKE THIS'
    sap_style     = 'HEADING'.
 
 
ENDFORM.                    "html_top_of_page
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Debarshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 11:15:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header/m-p/4847295#M1133682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T11:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header/m-p/4847296#M1133683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;saptechnical.com/Tutorials/ALV/TopofPage/Solution.htm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in place of &lt;STRONG&gt;"&lt;/STRONG&gt;'* use &lt;STRONG&gt;"--"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 11:16:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header/m-p/4847296#M1133683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T11:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header/m-p/4847297#M1133684</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;All ALV related issues are discussed in the Following blogs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to create ALV HEADER &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALV Report HEADER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/add" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/add&lt;/A&gt;&lt;EM&gt;Header&lt;/EM&gt;to&lt;EM&gt;ALV&lt;/EM&gt;report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope they will be helpful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the best&lt;/P&gt;&lt;P&gt;Priyanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 11:20:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header/m-p/4847297#M1133684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T11:20:28Z</dc:date>
    </item>
  </channel>
</rss>

