Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to display LOGO in simple ALV list?

Former Member
0 Kudos

Hi Guys,

Is it possible to display LOGO in simple ALV list. If yes plz explain in details.

Thanks

Sharat

6 REPLIES 6

Former Member
0 Kudos

Sharat, you can probably try using ALV list with a Top of Page to display a logo.

Have a look at this Weblog :

<a href="/people/vijaybabu.dudla/blog/2006/07/21/topofpage-in-alv-using-clguialvgrid in ALV Using CL_GUI_ALV_GRID</a>

Sample Programs :

RSDEMO_SPLITTER_CONTROL

<b>AS</b>

0 Kudos

I am using a simple ALV List Display...

Former Member
0 Kudos

I doubt if this possible using simple ALV..

Former Member
0 Kudos

Not possible

Former Member
0 Kudos

Yes it is possible to display logo at the top of the page.

TYPE-POOLS: slis.

*----------------------------------------------------------------------*

*     Data Decalaration

*----------------------------------------------------------------------*

DATA: it_vbak TYPE TABLE OF vbak.

DATA: g_repid TYPE sy-repid.

DATA: it_listheader TYPE slis_t_listheader,

       wa_listheader TYPE slis_listheader.

*----------------------------------------------------------------------*

*     START-OF-SELECTION

*----------------------------------------------------------------------*

START-OF-SELECTION.

   g_repid = sy-repid.

   SELECT * FROM vbak INTO TABLE it_vbak.

   PERFORM build_alv_header.

   CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

     EXPORTING

       i_callback_program     = g_repid

       i_callback_top_of_page = 'TOP_OF_PAGE'

       i_structure_name       = 'vbak'

     TABLES

       t_outtab               = it_vbak.

*&---------------------------------------------------------------------*

*&      Form  BUILD_ALV_HEADER

*&---------------------------------------------------------------------*

FORM build_alv_header .

*  Type H is used to display headers i.e. big font

   wa_listheader-typ  = 'H'.

   wa_listheader-info ='Flight Details'.

   APPEND wa_listheader TO it_listheader.

   CLEAR wa_listheader.

*  Type S is used to display key and value pairs

   wa_listheader-typ = 'S'.

   APPEND wa_listheader TO it_listheader.

   CLEAR wa_listheader.

*  Type A is used to display italic font

   wa_listheader-typ = 'A'.

   wa_listheader-key = 'Date    :' .

   wa_listheader-info ='SAP ALV Report'.

   APPEND wa_listheader TO it_listheader.

   CLEAR wa_listheader.

ENDFORM.                    " BUILD_ALV_HEADER

*&---------------------------------------------------------------------*

*&      Form  top_of_page

*&---------------------------------------------------------------------*

FORM top_of_page.

   CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

     EXPORTING

       it_list_commentary = it_listheader

       i_logo         = 'PARI'.

ENDFORM.                    "top_of_page

Former Member
0 Kudos

Hi,

Please refer the step by step instructions.

http://saptechnical.com/Tutorials/ALV/LogoInALV.htm

Hope this will help.

Regards,

Amit