Application Development and Automation 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: 
Read only

alv list

Former Member
0 Likes
806

hi

i want to place logo in alv list dispaly.

but it is not coming.

why????????????

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
782

Hi

call reuse_alv_commentary_write in top of page.....in that u can give the logo name..

FORM top_of_page.

REFRESH it_listheadr.

wa_listheadr-typ = 'H'.

wa_listheadr-info = text-001.

APPEND wa_listheadr TO it_listheadr.

CLEAR wa_listheadr.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

it_list_commentary = it_listheadr[]

i_logo = 'ENJOYSAP_LOGO'. "From OAER transaction

  • I_END_OF_LIST_GRID = I_END_OF_LIST_GRID

  • I_ALV_FORM = I_ALV_FORM

ENDFORM. "TOP_OF_PAGE

hi

i want to place logo in alv list dispaly.

but it is not coming.

why????????????

4 REPLIES 4
Read only

Former Member
0 Likes
782

Hi Chaitu,

Use FM - 'REUSE_ALV_COMMENTARY_WRITE'.

If you are using Function modules to display (You can also use Class), you will have to use GRID display for displaying the logo. Its not possible in List display.

Use the Function module REUSE_ALV_GRID_DISPLAY and pass the parameter "I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE' ". This TOP_OF_PAGE is the subroutine (FORM - ENDFORM) in which the actual top of page code will be written (for showing the logo).

The picture must be uploaded into transaction OAOR with classname 'PICTURES' AND TYPE 'OT' to work with ALV GRID Functions.

FORM TOP_OF_PAGE.

DATA: WA_HEADER TYPE SLIS_LISTHEADER. REFRESH: GT_LIST_TOP_OF_PAGE.

H = HEADER LARGE FONT, S = STANDARD FONT, A = ITALICS

WA_HEADER-TYP = 'H'. WA_HEADER-INFO = 'TEST REPORT'. APPEND WA_HEADER TO GT_LIST_TOP_OF_PAGE.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING I_LOGO = 'LOGO' IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.

ENDFORM. " TOP_OF_PAGE

use this link for better knowledge

http://www.saptechnical.com/Tutorials/ALV/ALVMainPage.htm

Inside the subroutine, use a sample code like the one above.

thanks

sagar

reqward me points if usefull

Edited by: Sagar Reddy on May 5, 2008 12:48 PM

Read only

Former Member
0 Likes
783

Hi

call reuse_alv_commentary_write in top of page.....in that u can give the logo name..

FORM top_of_page.

REFRESH it_listheadr.

wa_listheadr-typ = 'H'.

wa_listheadr-info = text-001.

APPEND wa_listheadr TO it_listheadr.

CLEAR wa_listheadr.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

it_list_commentary = it_listheadr[]

i_logo = 'ENJOYSAP_LOGO'. "From OAER transaction

  • I_END_OF_LIST_GRID = I_END_OF_LIST_GRID

  • I_ALV_FORM = I_ALV_FORM

ENDFORM. "TOP_OF_PAGE

Read only

Former Member
0 Likes
782

Hi,

If you want to display LOGO in ALv List then you have to use

the FM 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

*it_list_commentary =

i_logo = 'ENJOYSAP_LOGO'.

Reward Points If Usefull

Regards

Fareedas

Read only

asik_shameem
Active Contributor
0 Likes
782

Hi

You can't display logos in LIST.

It is possible only in GRID.

Even COMMENTRY_WRITE FM won't help you.