Application Development 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: 

hOW TO INCLUDE LOGO

Former Member
0 Kudos

Hi Abapers,

Please tell me how to include a logo in the top-of-page event in alv.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Use OAER Transaction :

navigation -> Goto OAER transaction

Class name - Pictures

class type - OT

Object key - Give any name ( Logo name ,this name you use in ALV top-of-page)

execute it -> second screen -> drag the standard doc types -> click on sceen -> give your logo file.

now you will get logo in ALV ..

Regards

Vasu

4 REPLIES 4

Former Member
0 Kudos

Use OAER Transaction :

navigation -> Goto OAER transaction

Class name - Pictures

class type - OT

Object key - Give any name ( Logo name ,this name you use in ALV top-of-page)

execute it -> second screen -> drag the standard doc types -> click on sceen -> give your logo file.

now you will get logo in ALV ..

Regards

Vasu

0 Kudos

call function 'REUSE_ALV_COMMENTARY_WRITE'

exporting

it_list_commentary = t_header.

i_logo = 'Z_LOGO'.

endform.

Upload Logo for REUSE_ALV_COMMENTARY_WRITE

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

or

Import Logo and Background Picture for Reporting

In this step, you can import a customer-specific logo and a background picture into the R/3 System. These will be displayed in the header area of reports in HR Funds and Position Management.

From the SPRO:

HR Funds and Position Management --> Dialog Control --> Customize Reporting Interface --> Import Logo and Background Picture for Reporting.

Activities

1. Enter the Name of your logo/background picture as an object key in the initial screen.

2. Make sure that the class name is PICTURES, and the class type is OT.

3. Choose Execute.

4. Double-click the document type Picture on the Create tab page. A dialog box will appear in which you can enter the path in which the logo/background picture can be found.

5. Enter the path and choose Open. The logo will be uploaded into the current R/3 System. If the logo/background picture is to be transported into other systems as well, choose Transport.

6. Return to the initial screen and repeat the procedure after having entered the Name of your background picture as an object key.

Please note that the logo/background picture can only be displayed in ALV-based reports with an HTML header. Manually programmed reports such as business distribution plans are not based on the ALV.

If you have selected several initial objects, ALV-based reports in HR Funds and Position Management will automatically use a hiearchical-sequential display. A logo is not displayed here either. Note also that the logo cannot be printed (see print preview in program).

Make sure that the logo does not exceed a height of 100 pixels because it would mean that the header of the report will be scrollable.

OR

use OAER Transaction

0 Kudos

HiAll,

I already have the logo in the system but still its not reflected there in the output:

See the piece of code:

EVE-NAME = 'TOP_OF_PAGE'.

EVE-FORM = 'HEADER'.

APPEND EVE.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = SY-REPID

  • I_STRUCTURE_NAME = 'ITAB'

IT_FIELDCAT = FIELDCAT[]

I_DEFAULT = 'X'

I_SAVE = 'A'

IT_EVENTS = EVE[]

TABLES

T_OUTTAB = ITAB.

FORM HEADER.

REFRESH HEAD.

HEAD-TYP = 'H'.

HEAD-INFO = 'GENERAL MATERIAL DATA'.

APPEND HEAD.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

IT_LIST_COMMENTARY = HEAD[]

I_LOGO = 'ATTACHMENT'.

ENDFORM.

Former Member
0 Kudos

hi

good

Try this,

- GOTO - OAOR (Business Document Navigator)

- Give Class Name - PICTURES

Class Type - OT..... then Execute

- It will show u the list... select ENJOYSAP_LOGO.

- Below u can find one control with Create tab.

- Click std doc types.

- Select SCREEN and dbclick.

- It will push FILE selection screen.

- Select ur comp logo (.gif) press OK.

- It will ask description ... let say comp logo.

- It will give u doc stored successfully.

- U can find ur logo under ENJOYSAP_LOGO->Screen->comp logo.

- Just run ur ALV prog ....

hope u can find ur comp logo in place of enjoy sap logo.

thanks

mrutyun^