2008 May 05 11:16 AM
hi
i want to place logo in alv list dispaly.
but it is not coming.
why????????????
2008 May 05 1:30 PM
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????????????
2008 May 05 11:47 AM
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
2008 May 05 1:30 PM
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
2008 May 05 1:59 PM
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
2008 May 05 2:11 PM
Hi
You can't display logos in LIST.
It is possible only in GRID.
Even COMMENTRY_WRITE FM won't help you.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |