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: 

Diaplay Company Logo in SAP report and take Print Out

tharaka_fernando
Contributor
0 Kudos

Dear All Gurus,

is it possible to take the company LOGO in the print out and print preview from a report (Classical / ALV/ WebDynpro ALV) ?

I know that you can insert company logo in ALV report in ALV header section. But Client needs to get the print-out and print preview.

If the answer is Yes please help with sample coding and sample programs in SAP (if any)..

Thank you all in advacne

6 REPLIES 6

former_member220028
Active Contributor
0 Kudos

hi,

what print out do you mean? printing a spool? formular? screenshot?

regards

Stefan Seeburger

0 Kudos

Hi Stefan,

Thank you for replying.

Printing a spool. User needs to the report on softcopy as well as a hardcopy .So Cooperate logo needs to have on the heading.

0 Kudos

Dear All,

Any updates...plz

0 Kudos

Hi,

how about using pre-printed-paper where the logo is already on it? You would have the logo on any kind of printouts without any implementations.

i dont know if you can "add" addintional information to the data when klicking on a standard print button in ALV. Maybe others know. i guess even if its possible you would have alot work with the layout not using any formular design.

maybe develop a separate formular for the requirement?

regards

Stefan Seeburger

AnoopMayamkote
Participant
0 Kudos

IT IS POSSIBLE USING OOPS CONCEPT GO FOR THIS CODE I HOPE TRY THIS BELOW CODE:--

CREATE OBJECT picture_control_1 EXPORTING parent = docking.

CHECK sy-subrc = 0.

CALL METHOD picture_control_1->set_3d_border

EXPORTING

border = 5.

CALL METHOD picture_control_1->set_display_mode

EXPORTING

display_mode = cl_gui_picture=>display_mode_stretch.

CALL METHOD picture_control_1->set_position

EXPORTING

height = 150

left = 700

top = 10

width = 138.

CALL METHOD picture_control_1->load_picture_from_url

EXPORTING

url = 'PIX PATHNAME'.

IF sy-subrc NE 0.

  • Fehlerbehandlung

ENDIF.

vamsilakshman_pendurti
Active Participant
0 Kudos

Hi

Using OAER Tcode u can upload image into sap and that image u can use in Your Report

In the FM reuse_alv_commentary_write

In this FM one parameter is there Like LOGO  You can assign that Picture name which is you already uploaded using OAER Tcode....Then automatically it will capture that image into your Report and display at the time of output...

If you want to display as Print out then create one spool request for this You will get Print out also...

Hope u understand....

Thanks,

vamsi.