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: 

ALV grid report with logo insertion

Former Member
0 Kudos

Hi,

I have created ALV grid report with logo in header portion – when I executed the report I can able to view the logo properly but

when I am trying to print the same logo is not getting printed … Can u pls advice me what would be the problem ???

Is there any other method to create a report with company logo option – other than SAP script ???

Thanks in advance.

fractal

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

When you print i guess ALV writes the report as a list and sends the same to the spool and thus you are deprived of your logo.

I am not sure if you have an other opttion. Using pre printed stationery can be an option.

Regards,

5 REPLIES 5

Former Member
0 Kudos

Hi,

When you print i guess ALV writes the report as a list and sends the same to the spool and thus you are deprived of your logo.

I am not sure if you have an other opttion. Using pre printed stationery can be an option.

Regards,

Former Member
0 Kudos

Hi,

ALV grid cannot be used for printing Logos.

You will have to use SMART Forms / Scripts.

Regards,

Ravi

Former Member
0 Kudos

hai fractal,

check out this weblogs

logo insertion in alv grid report has been discussed here.

http://www.sapfans.com/forums/viewtopic.php?t=81149

an example is given in this link

http://www.sapfans.com/forums/viewtopic.php?t=35498

hope this is helpful.

regards,

praba.

Former Member
0 Kudos

hi..

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

Inside the subroutine, use a sample code like the one above.

check out with this...

regards,

Ananaya.S

0 Kudos

hi..

If you are using Function modules to display (You can also use Class), sure ur using GRID display only as u ve mentioned...

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

Inside the subroutine, use a sample code like the one above.

check out with this...

regards,

Ananaya.S