01-26-2008 1:36 PM
Hi,
I have created an ALV list and would like to put our company logo in the header. How can I do this?
Thanks,
Shah.
01-27-2008 9:08 AM
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.
Just run your ALV program, you should find your company logo in place of the EnjoySAP logo.
Reward points if found helpfull..
Cheers,
Chandra Sekhar.
01-26-2008 4:14 PM
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
Inside the subroutine, use a sample code like the one above.
Hope this Helps
VB
01-27-2008 9:08 AM
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.
Just run your ALV program, you should find your company logo in place of the EnjoySAP logo.
Reward points if found helpfull..
Cheers,
Chandra Sekhar.
01-28-2008 6:50 AM
Hi,
Logo is not possible in List display.
This can be posible only in Grid display.
Reward points,if it i suseful.
Thanks
chandu.
01-28-2008 7:03 AM
Hi,
For those who wish to upload and use a picture in your ALV abap reports.
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
For more information check the following example:
Regards,
Bhaskar