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 do we display a LOGO in simple report

Former Member
0 Kudos

hi,

Please tell how to display LOGO in simple report. In alv i am aware but how do i fix the positon of the logo.

regards,

Prabhu

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

=======================================

Creating a Logo for ALV GRID DISPLAY

=======================================

(1)- OAOR (TRANSACTION) --> Class name (AS PICTURES) --> Class type (AS OT) --> Object key (SOME NAME)

(2)- Click on create drag down standard doc types will get no. of option chose one.

(3)- upload image or whatever and then give some key word to identify that for next time while logging

To OAOR when you give this key word it will directly go to that particular object.

(4)- So next time when you login in OAOR with out any object under same class and class type

Key you can find a folder named with same object key under Description. Double click on that

to upload new thing.

(5)- Refer to this object key where ever required.

========================

Creating a Class name

========================

(1)- SBDSV1 (TRANSACTION) --> New Entries --> Class name (SOME NAME) --> Class type (OT).

(2)- Now next time logging in to OAOR you can directly refer to this Class name.

After entering the above details and saving, the fields Class object name fields will be blank, make entries as shown in below screen.

1) Class : BDS_LOC1

2) Class : BDS_POC1

3) Class : BDS_REC1

4) Object name : BDS_CONN00

1) Go to transaction OAOR, give the class name created.

2) Give class type as OT

3) Give some name in object key it’s like sub folder

Click on create drag down standard doc types will get no. of option chose one.

Click on create drag down standard doc types will get no. of option chose one

By double clicking on screen you can browse the folder where image is located and select

Once the image is selected it will be stored in the folder that is created with object key

Write the below code to add the LOGO in the report .

form FILL_EVENTS .

DATA: wa_events TYPE SLIS_ALV_EVENT.

CLEAR: LS_EVENTS.

CALL FUNCTION 'REUSE_ALV_EVENTS_GET'

IMPORTING

ET_EVENTS = LS_EVENTS

.

wa_events-form = 'STD_TOP_OF_PAGE'.

MODIFY ls_events FROM wa_events TRANSPORTING FORM WHERE NAME =

'TOP_OF_PAGE'.

CLEAR: wa_events.

endform. " FILL_EVENTS

FORM STD_TOP_OF_PAGE.

DATA: it_listheader TYPE SLIS_T_LISTHEADER,

is_listheader TYPE SLIS_LISTHEADER.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

it_list_commentary = it_listheader[]

I_LOGO = 'ZIMAGE'

  • I_END_OF_LIST_GRID =

.

ENDFORM.

Pass the image name, i.e. the name that comes under object id field .

Refer this link

http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_enhanced.htm

http://www.sap-img.com/abap/alv-logo.htm

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

Regards,

Padmam.

5 REPLIES 5

Former Member
0 Kudos

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.

FORM TOP-OF-PAGE.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

IT_LIST_COMMENTARY = HEADING[]

I_LOGO = 'ENJOYSAP_LOGO'

I_END_OF_LIST_GRID ='GT_LIST_TOP_OF_PAGE'.

.

ENDFORM. "TOP-OF-PAGE

Here 'ENJOYSAP_LOGO' will replace by ur created logo.

Refer this link

http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_enhanced.htm

http://www.sap-img.com/abap/alv-logo.htm

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

Reward points for useful Answers

Regards

Anji

Former Member
0 Kudos

Hi,

=======================================

Creating a Logo for ALV GRID DISPLAY

=======================================

(1)- OAOR (TRANSACTION) --> Class name (AS PICTURES) --> Class type (AS OT) --> Object key (SOME NAME)

(2)- Click on create drag down standard doc types will get no. of option chose one.

(3)- upload image or whatever and then give some key word to identify that for next time while logging

To OAOR when you give this key word it will directly go to that particular object.

(4)- So next time when you login in OAOR with out any object under same class and class type

Key you can find a folder named with same object key under Description. Double click on that

to upload new thing.

(5)- Refer to this object key where ever required.

========================

Creating a Class name

========================

(1)- SBDSV1 (TRANSACTION) --> New Entries --> Class name (SOME NAME) --> Class type (OT).

(2)- Now next time logging in to OAOR you can directly refer to this Class name.

After entering the above details and saving, the fields Class object name fields will be blank, make entries as shown in below screen.

1) Class : BDS_LOC1

2) Class : BDS_POC1

3) Class : BDS_REC1

4) Object name : BDS_CONN00

1) Go to transaction OAOR, give the class name created.

2) Give class type as OT

3) Give some name in object key it’s like sub folder

Click on create drag down standard doc types will get no. of option chose one.

Click on create drag down standard doc types will get no. of option chose one

By double clicking on screen you can browse the folder where image is located and select

Once the image is selected it will be stored in the folder that is created with object key

Write the below code to add the LOGO in the report .

form FILL_EVENTS .

DATA: wa_events TYPE SLIS_ALV_EVENT.

CLEAR: LS_EVENTS.

CALL FUNCTION 'REUSE_ALV_EVENTS_GET'

IMPORTING

ET_EVENTS = LS_EVENTS

.

wa_events-form = 'STD_TOP_OF_PAGE'.

MODIFY ls_events FROM wa_events TRANSPORTING FORM WHERE NAME =

'TOP_OF_PAGE'.

CLEAR: wa_events.

endform. " FILL_EVENTS

FORM STD_TOP_OF_PAGE.

DATA: it_listheader TYPE SLIS_T_LISTHEADER,

is_listheader TYPE SLIS_LISTHEADER.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

it_list_commentary = it_listheader[]

I_LOGO = 'ZIMAGE'

  • I_END_OF_LIST_GRID =

.

ENDFORM.

Pass the image name, i.e. the name that comes under object id field .

Refer this link

http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_enhanced.htm

http://www.sap-img.com/abap/alv-logo.htm

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

Regards,

Padmam.

Former Member
0 Kudos

Hi,

It is not possible to print logo in the ordinary report, but it can done through ALV.

Write the code in Top-of-page event in ALV.

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,

Omkar.

Former Member
0 Kudos

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

Reward all helpfull answers.

Regards.

Jay

0 Kudos

hi all,

thanx for ur reply please tell me how do i

1. insert logo in simple reports(not ALV).

2. i need to position the logo in ALV ( for ex it should start at (100 , 100 ) ).

regards,

Prabhu