<?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 Bac in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-bac/m-p/3908012#M937130</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before using the function module you should do a small configuration in &lt;STRONG&gt;OAER&lt;/STRONG&gt; i.e, goto OAER and give               class name = &lt;STRONG&gt;PICTURES&lt;/STRONG&gt; and class type as &lt;STRONG&gt;OT&lt;/STRONG&gt; and execute and select the logo you wanted and double click it. It will display in the below block, check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then use it in the program. But some times you may even face the problem because of some problem in the image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then Use,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FORM display_logo.                                          "#EC CALLED&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;EXPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;it_list_commentary = i_list_top_of_page&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;i_logo             = 'SAPLOGO_DEMO1'&lt;/STRONG&gt;  " Logo name&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;i_alv_form         = 'X'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDFORM.                    "DISPLAY_LOGO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if helpful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Khan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jun 2008 16:39:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-04T16:39:09Z</dc:date>
    <item>
      <title>ALV Bac</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-bac/m-p/3908010#M937128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to put a tiled image as background in the header of an ALV. I'm using the function REUSE_ALV_COMMENTARY_WRITE to put a title but i_logo parameter don't give this efect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 15:20:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-bac/m-p/3908010#M937128</guid>
      <dc:creator>former_member389673</dc:creator>
      <dc:date>2008-06-04T15:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Bac</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-bac/m-p/3908011#M937129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this program for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZDE_EVENT_SAMPLE.
tables: vbak, vbap.
type-pools: slis.

types: begin of ty_vbak.
INCLUDE STRUCTURE VBAK.
TYPES: end of ty_vbak.


DATA : i_list_top_of_page TYPE slis_t_listheader.


data: i_vbak type table of ty_vbak.
data: w_vbak type ty_vbak.


data : i_fieldcat type slis_t_fieldcat_alv,
       w_fieldcat type slis_fieldcat_alv,
       i_event type slis_t_event.


data: w_layout TYPE slis_layout_alv.


constants: C_FORMNAME_top_OF_PAGE TYPE SLIS_FORMNAME value 'TOP_OF_PAGE'.



selection-screen begin of block b1.
select-options: cust for vbak-kunnr.
selection-screen end of block b1.



select vbeln from vbak into CORRESPONDING FIELDS OF table i_vbak where kunnr in cust.

perform fieldcat USING I_FIELDCAT.
perform layout.

PERFORM EVENT_BUILD USING I_EVENT.

perform top_of_page. "USING I_LIST_TOP_OF_PAGE.

perform display. "using backid.


form display. "using backid type IBIPPARMS-PATH.

                CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
                 EXPORTING
                   I_INTERFACE_CHECK                 = sy-repid
*                   I_BYPASSING_BUFFER                = 'X'
*                   I_BUFFER_ACTIVE                   = 'X'
                   I_CALLBACK_PROGRAM                = sy-repid
*                   I_CALLBACK_TOP_OF_PAGE            = 'DISPLAY_LOGO'
                   IS_LAYOUT                         = w_layout
                   IT_FIELDCAT                       = i_fieldcat
                   IT_EVENTS                         = i_event[]
                  TABLES
                    t_outtab                          = i_vbak[].
endform.                    " display


form layout .
  w_layout-zebra             = 'X'.
  w_layout-get_selinfos      = 'X'.
endform.                    " layout





FORM top_of_page.
data: w_LIST_TOP_OF_PAGE type slis_listheader.
clear I_LIST_TOP_OF_PAGE.
w_LIST_TOP_OF_PAGE-typ = 'H'.
w_LIST_TOP_OF_PAGE-info = text-002.
append w_LIST_TOP_OF_PAGE to I_LIST_TOP_OF_PAGE.
  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
      it_list_commentary = i_list_top_of_page
      i_logo             = 'ENJOYLOGO'
      i_alv_form         = 'X'.

ENDFORM.                    "DISPLAY_LOGO


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  fieldcat
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
form fieldcat USING I_FIELDCAT TYPE slis_t_fieldcat_alv.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
 EXPORTING
   I_PROGRAM_NAME               = sy-repid
   I_INTERNAL_TABNAME           = 'I_VBAK'
   I_STRUCTURE_NAME             = 'VBAK'
  CHANGING
    ct_fieldcat                  = i_fieldcat.

endform.                    " fieldcat
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  EVENT_BUILD
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_I_EVENT  text
*----------------------------------------------------------------------*
form EVENT_BUILD using p_i_event TYPE SLIS_T_EVENT.
DATA: ls_event TYPE slis_alv_event.


CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
 EXPORTING
   I_LIST_TYPE           = 4
 IMPORTING
   ET_EVENTS             = P_I_EVENT
          .
  READ TABLE p_I_event WITH KEY name = slis_ev_top_of_page INTO ls_event.

  IF sy-subrc = 0.
    MOVE c_formname_top_of_page TO ls_event-form.

    APPEND ls_event TO I_event.
  ENDIF.

endform.                    " EVENT_BUILD
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Swamy Kunche&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 15:23:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-bac/m-p/3908011#M937129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-04T15:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Bac</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-bac/m-p/3908012#M937130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before using the function module you should do a small configuration in &lt;STRONG&gt;OAER&lt;/STRONG&gt; i.e, goto OAER and give               class name = &lt;STRONG&gt;PICTURES&lt;/STRONG&gt; and class type as &lt;STRONG&gt;OT&lt;/STRONG&gt; and execute and select the logo you wanted and double click it. It will display in the below block, check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then use it in the program. But some times you may even face the problem because of some problem in the image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then Use,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FORM display_logo.                                          "#EC CALLED&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;EXPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;it_list_commentary = i_list_top_of_page&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;i_logo             = 'SAPLOGO_DEMO1'&lt;/STRONG&gt;  " Logo name&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;i_alv_form         = 'X'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDFORM.                    "DISPLAY_LOGO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if helpful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Khan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 16:39:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-bac/m-p/3908012#M937130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-04T16:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Bac</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-bac/m-p/3908013#M937131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;did you upload your Image In OAER transaction.?&lt;/P&gt;&lt;P&gt;If not, first upload your image in OAER transaction.&lt;/P&gt;&lt;P&gt;Then only ALV recognizes that Image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sandeep REddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 16:44:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-bac/m-p/3908013#M937131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-04T16:44:54Z</dc:date>
    </item>
  </channel>
</rss>

