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: 

calling logo in se38 using alv (reuse_alv_commentry_write)

Former Member
0 Kudos

hi

expets,

i want to display logo in se38 i am using fm REUSE_ALV_COMMENTARY_WRITE'

but when i execute the program logo is not display.

logo name = databas logo name.

thanks& regards

ajay.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Use FM - 'REUSE_ALV_COMMENTARY_WRITE'.

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

4 REPLIES 4

Former Member
0 Kudos

Former Member
0 Kudos

hi

Go to se78 and upload the logo from the desktop into your sap system.

hope this helps

regards

Aakash Banga

Former Member
0 Kudos

Use FM - 'REUSE_ALV_COMMENTARY_WRITE'.

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

Former Member
0 Kudos

hi,

Please refer this link...

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

regards,

Safel