06-09-2004 4:38 PM
I want to display our company logo on the top of the screen on a report using REUSE_ALV_GRID_DISPLAY. In the top of page event I can call this function module.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
I_LOGO = 'ENJOYSAP_LOGO'
IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
In this case the logo is the Enjoy SAP logo. The GT_LIST_TOP_OF_PAGE contains the basic header information for the report. It displays fine, but I would like to know how I can upload my company's logo and then reference it in the function module.
Thanks,
Mike
06-10-2004 5:02 AM
Hi Mike,
Use transaction code OAER to upload your company logo.
For class name, enter in PICTURES
For class type, enter in OT
For object key, enter in name for the object, for instances Z_YOUR_COMPANY_LOGO(obviously using your company name).
Click execute.
On the next screen, expand the standard doc types tree and double click on the Screen item.
Pick your company logo file from your local drive and upload.
Now use what every name you gave the logo when calling the function module.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
i_logo = 'Z_YOUR_COMPANY_LOGO'
it_list_commentary = GT_LIST_TOP_OF_PAGE.
I hope this helps!
Mike Vondran
06-30-2005 3:14 PM
06-10-2004 2:17 PM
06-18-2004 10:06 PM
Hi Mike M & Mike V,
I am not able to bring the logo in the output. Do I need to setup any field in REUSE_ALV_GRID_DISPLAY? Could you please post a sample code(it will save some time for me)?
I appreciate it.
Thanks,
Bala
06-18-2004 10:10 PM
Create a form:
FORM TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
I_LOGO = 'Z_LOGO'
IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
ENDFORM.
Call the reuse fxn with the I_CALLBACK_TOP_OF_PAGE equal to the form name as below.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = V_REPID
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS_SET'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
IT_FIELDCAT = GT_FIELDCATALOG
I_GRID_SETTINGS = GS_SETTINGS
IS_LAYOUT = GS_LAYOUT
I_SAVE = G_SAVE
IS_VARIANT = GS_VARIANT
IT_EVENTS = GT_EVENTS[]
IMPORTING
E_EXIT_CAUSED_BY_CALLER = G_EXIT_CAUSED_BY_CALLER
ES_EXIT_CAUSED_BY_USER = GS_EXIT_CAUSED_BY_USER
TABLES
T_OUTTAB = I_REPORT
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
Hope this helps
Mike
06-18-2004 10:12 PM
06-21-2004 6:01 PM
I do not see the logo in ABAP List. Is there a way to print logo in ordinary(not ALV) ABAP list?
Thanks,
Bala
06-21-2004 10:14 PM
Hi!
As much as I know, there is no way to add a picture to your simple ABAP reports. Reports are generated screens and screens, as themselves, do not support image displaying. However, you can display an image on your screen of a module program, using the GUI control class of "CL_GUI_PICTURE" which may be embedded into a custom control in your screen using an instance of another GUI control class "CL_GUI_CUSTOM_CONTAINER".
Much of these are discussed in some other threads in this forum and you may obtain further info in SAP documents.