‎2007 Feb 12 3:50 PM
Hi,
How do we attach logo to the output list of ALV.
Regards
Vara
‎2007 Feb 12 3:52 PM
HI,
Steps for uploading Logo :-:
1. Goto the transaction OAER
2. Enter the class name as 'PICTURES'
3. Enter the class type as 'OT'
4. Enter the object key as the name of the logo you wish to give
5. Execute
6. Then in the new screen select Standard doc. types in bottom window
Click on the Screen icon
Now, it will ask for the file path where you have to upload the logo
7. Now you can use this logo in REUSE_ALV_COMMENTARY_WRITE
The following is the code for inserting the logo in ALV.
FORM TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
I_LOGO = 'ENJOYSAP_LOGO'
IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
Regards
Sudheer
‎2007 Feb 12 3:53 PM
‎2007 Feb 12 3:54 PM
‎2007 Feb 12 3:59 PM
Hi,
I am using OO ABAP for my ALV.
I don't want to use FM's.
I hope Chandrasekhar's and Vasanth tips will work.
Regards
Vara
Message was edited by:
Vara K
‎2007 Feb 12 4:05 PM
Hi,
The picture should be existing in your business document repository. Know the name of the image that you want to display.
data: c_weyer TYPE sdydo_key VALUE 'ZLOGO'.
Then in your program:
CALL METHOD wcl_docum->vertical_split
EXPORTING split_area = wcl_docum
split_width = '70%'
IMPORTING right_area = ws_c_logo. "Splitting the document for logo
CALL METHOD ws_c_logo->add_picture
EXPORTING picture_id = c_weyer.
Regards
Subramanian
‎2007 Feb 12 3:57 PM
Hello,
Have a look at report DD_ADD_PICTURE. Hope this helps u.
Also have a look at CL_DD_DOCUMENT class. you will have a lot of where used list for this one. So u can trace from there. There are methods like ADD_PICTURE and ADD_ICON whichever serves your purpose.
Vasanth
‎2007 Feb 12 3:57 PM
Hi,
In the transaction OAOR, you should be able to insert your company Logo.
GOTO - OAOR (Business Document Navigator)
Give Class Name - PICTURES Class Type - OT..... then Execute
It will show you the list, then select ENJOYSAP_LOGO.
On that list, you will find one control with a "create" tab.
Click std. doc types.
Select SCREEN and double-click.
It will push FILE selection screen.
Select your company logo (.gif) and press OK.
It will ask for a description- for instance: "company logo".
It will let you know your doc has been stored successfully.
You can find your logo under ENJOYSAP_LOGO->Screen->company logo.
The following is the code for inserting the logo in ALV.
FORM TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
I_LOGO = 'ENJOYSAP_LOGO'
IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
ENDFORM.
Regards,
Ferry Lianto
‎2007 Feb 12 4:04 PM
Hi,
Please check this link perhaps it may help.
/people/vijaybabu.dudla/blog/2006/07/21/topofpage-in-alv-using-clguialvgrid
Regards,
Ferry Lianto