<?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 Display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header-display/m-p/6050717#M1352331</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;i think you can do this using a hierarchial list display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the FM reuse_alv_hierseq_list_display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for uploading Logo in ALv header &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use transaction SE78 to upload a image into SAP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way for uploading the Logo in ALV header are as follows :&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Steps for uploading Logo :-: &lt;/P&gt;&lt;P&gt;1. Goto the transaction OAER &lt;/P&gt;&lt;P&gt;2. Enter the class name as 'PICTURES' &lt;/P&gt;&lt;P&gt;3. Enter the class type as 'OT' &lt;/P&gt;&lt;P&gt;4. Enter the object key as the name of the logo you wish to give &lt;/P&gt;&lt;P&gt;5. Execute &lt;/P&gt;&lt;P&gt;6. Then in the new screen select Standard doc. types in bottom window &lt;/P&gt;&lt;P&gt;Click on the Screen icon &lt;/P&gt;&lt;P&gt;Now, it will ask for the file path where you have to upload the logo &lt;/P&gt;&lt;P&gt;7. Now you can use this logo in REUSE_ALV_COMMENTARY_WRITE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will work . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saurabh Goel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Aug 2009 10:27:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-19T10:27:02Z</dc:date>
    <item>
      <title>ALV Header Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header-display/m-p/6050716#M1352330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;                   Now ALV Header is comming like this &lt;/P&gt;&lt;P&gt;                  &amp;lt;XYZ Company Report&amp;gt;                         &amp;lt; LOGO&amp;gt;&lt;/P&gt;&lt;P&gt;                   &amp;lt;Depatment : ABC&amp;gt;&lt;/P&gt;&lt;P&gt;I want to show like below form&lt;/P&gt;&lt;P&gt;                                          &amp;lt;LOGO&amp;gt;                 &lt;/P&gt;&lt;P&gt;                              &amp;lt;XYZ Company Report&amp;gt;                        &lt;/P&gt;&lt;P&gt;  &amp;lt;Depatment : ABC&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more question how to get online logo to be uploaded in ALV Header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Singha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 06:21:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header-display/m-p/6050716#M1352330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T06:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Header Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header-display/m-p/6050717#M1352331</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;i think you can do this using a hierarchial list display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the FM reuse_alv_hierseq_list_display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for uploading Logo in ALv header &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use transaction SE78 to upload a image into SAP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way for uploading the Logo in ALV header are as follows :&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Steps for uploading Logo :-: &lt;/P&gt;&lt;P&gt;1. Goto the transaction OAER &lt;/P&gt;&lt;P&gt;2. Enter the class name as 'PICTURES' &lt;/P&gt;&lt;P&gt;3. Enter the class type as 'OT' &lt;/P&gt;&lt;P&gt;4. Enter the object key as the name of the logo you wish to give &lt;/P&gt;&lt;P&gt;5. Execute &lt;/P&gt;&lt;P&gt;6. Then in the new screen select Standard doc. types in bottom window &lt;/P&gt;&lt;P&gt;Click on the Screen icon &lt;/P&gt;&lt;P&gt;Now, it will ask for the file path where you have to upload the logo &lt;/P&gt;&lt;P&gt;7. Now you can use this logo in REUSE_ALV_COMMENTARY_WRITE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will work . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saurabh Goel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 10:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header-display/m-p/6050717#M1352331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T10:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Header Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header-display/m-p/6050718#M1352332</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;Hope this link will be helpful to solve your queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/ABAP/Alv" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/ABAP/Alv&lt;/A&gt;&lt;EM&gt;in&lt;/EM&gt;Detail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Ahamed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 11:01:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header-display/m-p/6050718#M1352332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T11:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Header Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header-display/m-p/6050719#M1352333</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 use list display as well as hierarchial list display . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The later will be easier to implement since it is especiallyfor table with header and data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; use the FM  &lt;STRONG&gt;reuse_alv_hierseq_list_display&lt;/STRONG&gt; for header .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For online upload of the logo you should use FM &lt;STRONG&gt;reuse_alv_commentary_write&lt;/STRONG&gt; . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First upload the logo on to the system via &lt;STRONG&gt;se78&lt;/STRONG&gt;  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then pass the file as an export parameter in the FM . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one thing you need to remember is that all this need to be done in  &lt;STRONG&gt;top_of_page&lt;/STRONG&gt; event .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will bring logo above the header .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this may have helped you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aditi  Wason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 11:03:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header-display/m-p/6050719#M1352333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T11:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Header Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header-display/m-p/6050720#M1352334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a short sample of putting logo at the top of ALV grid. Remember this only works online. If you would print the ALV, it would not show the logo. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; report zrich_0001 no standard page heading. * Global ALV Data Declarations type-pools slis. data: begin of i_alv occurs 0, matnr type mara-matnr, end of i_alv. * Miscellanous Data Declarations data: fieldcat type slis_t_fieldcat_alv, events type slis_t_event, list_top_of_page type slis_t_listheader, top_of_page type slis_formname value 'TOP_OF_PAGE'. start-of-selection. perform initialization. perform get_data. perform call_alv. end-of-selection. ************************************************************************ * Form Initialization ************************************************************************ form initialization. clear i_alv. refresh i_alv. perform eventtab_build using events[]. endform. ************************************************************************ * Form Get_Data ************************************************************************ form get_data. select matnr into table i_alv from mara up to 100 rows. endform. ************************************************************************ * CALL_ALV ************************************************************************ form call_alv. data: variant type disvariant. data: repid type sy-repid. repid = sy-repid. variant-report = sy-repid. variant-username = sy-uname. perform build_field_catalog. perform comment_build using list_top_of_page[]. * Call ABAP List Viewer (ALV) call function 'REUSE_ALV_GRID_DISPLAY' exporting it_fieldcat = fieldcat i_callback_program = repid is_variant = variant it_events = events[] i_save = 'U' tables t_outtab = i_alv. endform. ************************************************************************ * EVENTTAB_BUILD ************************************************************************ form eventtab_build using events type slis_t_event. * Registration of events to happen during list display data: tmp_event type slis_alv_event. call function 'REUSE_ALV_EVENTS_GET' exporting i_list_type = 0 importing et_events = events. read table events with key name = slis_ev_top_of_page into tmp_event. if sy-subrc = 0. move top_of_page to tmp_event-form. append tmp_event to events. endif. endform. ************************************************************************ * BUILD_FIELD_CATALOG ************************************************************************ form build_field_catalog. clear: fieldcat. refresh: fieldcat. data: tmp_fc type slis_fieldcat_alv. tmp_fc-reptext_ddic = 'Material'. tmp_fc-fieldname = 'MATNR'. tmp_fc-tabname = 'I_ALV'. tmp_fc-outputlen = 18. append tmp_fc to fieldcat. endform. ************************************************************************ * COMMENT_BUILD ************************************************************************ form comment_build using list_top_of_page type slis_t_listheader. data: tmp_line type slis_listheader. clear tmp_line. tmp_line-typ = 'H'. tmp_line-info = 'Here is a line of text'. append tmp_line to list_top_of_page. clear tmp_line. tmp_line-typ = 'S'. tmp_line-key = 'Key1'. tmp_line-info = 'Here is a value'. append tmp_line to list_top_of_page. clear tmp_line. tmp_line-typ = 'S'. tmp_line-key = 'Key2'. tmp_line-info = 'Here is another value'. append tmp_line to list_top_of_page. endform. ************************************************************************ * TOP_OF_PAGE ************************************************************************ form top_of_page. call function 'REUSE_ALV_COMMENTARY_WRITE' exporting i_logo = 'ENJOYSAP_LOGO' it_list_commentary = list_top_of_page. endform. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Shweta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 11:10:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header-display/m-p/6050720#M1352334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T11:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Header Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header-display/m-p/6050721#M1352335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want this thing in Top Of Page, then Do LiKe This:&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     = sy-repid
      i_callback_html_top_of_page = 'TOPOFPAGE'             *"Use  i_callback_html_top_of_page insted of  i_callback_top_of_page*
      i_grid_title      = 'MATERIAL INWARD REGISTER [ADVANCE MRN WISE]'
      is_layout              = i_settings
      i_save                 = 'X'
      it_fieldcat            = i_fieldcat
    TABLES
      t_outtab               = it_data.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make A Form With name TOPOFPAGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form topofpage USING top TYPE REF TO cl_dd_document.

  data: ls_line type slis_listheader.
  refresh i_toppage. clear ls_line.
  data: date1(255).
  data: date2(60).
  data: text(255).
  data: text1(255).

  text = 'MATERIAL INWARD REGISTER [ADVANCE MRN WISE] '.

  concatenate 'From:' so_budat-low+6(2) '/' so_budat-low+4(2) '/'
                      so_budat-low+0(4) into date1.
  concatenate 'To:' so_budat-high+6(2) '/' so_budat-high+4(2) '/'
                    so_budat-high+0(4) into date2.
  concatenate text date1 date2 into text1 SEPARATED BY space.

  clear date1.
  CONCATENATE 'Run Date : ' sy-datum+6(2)'/' sy-datum+4(2) '/'
                            sy-datum+0(4) into date1.
  clear text.
  text = date1.

CALL METHOD top-&amp;gt;add_picture EXPORTING picture_id = 'ENJOYSAP_LOGO'.
CALL METHOD top-&amp;gt;add_text EXPORTING text =
  'ABC TELE-SYSTEM LIMITED'.
CALL METHOD top-&amp;gt;add_gap EXPORTING width = 320.
CALL METHOD top-&amp;gt;add_text EXPORTING text = text1.
CALL METHOD top-&amp;gt;add_gap EXPORTING width = 320.
CALL METHOD top-&amp;gt;add_text EXPORTING text = text.
endform.                    "topofpage&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it will solve your Problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 11:35:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-header-display/m-p/6050721#M1352335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T11:35:02Z</dc:date>
    </item>
  </channel>
</rss>

