Application Development and Automation 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: 
Read only

How do attach LOGO to ALV ( object oriented)

Former Member
0 Likes
1,533

Hi,

How do we attach logo to the output list of ALV.

Regards

Vara

8 REPLIES 8
Read only

Former Member
0 Likes
1,199

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

Read only

Former Member
0 Likes
1,199

Check

http://www.sap-img.com/fu002.htm

Regards,

Santosh

Read only

Former Member
0 Likes
1,199

hi,

Chk this thread if it can help you

Read only

0 Likes
1,199

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

Read only

0 Likes
1,199

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

Read only

Former Member
0 Likes
1,199

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

Read only

Former Member
0 Likes
1,199

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

Read only

Former Member
0 Likes
1,199

Hi,

Please check this link perhaps it may help.

/people/vijaybabu.dudla/blog/2006/07/21/topofpage-in-alv-using-clguialvgrid

Regards,

Ferry Lianto