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

Logo in classical report

Former Member
0 Likes
643

Hi,

I have one dout in Classical report . How can i insert the logo in "classical report" with out using the alv events .can anyone plz answer this question.

Thank u.

Regards,

soni.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
595

hi,

IT IS POSSIBL USING OOPS CONCEPT GO FOR THIS CODE:--


REPORT y_pic_show .

DATA:
docking TYPE REF TO cl_gui_docking_container,
picture_control_1 TYPE REF TO cl_gui_picture,
url(256) TYPE c .
DATA : sum(4) , num1(4) , num2(4).
PARAMETERS: p_dummy(4) DEFAULT '4' .
PARAMETERS: p_dummy1(4) DEFAULT '5' .


AT SELECTION-SCREEN OUTPUT.



PERFORM show_pic.

START-OF-SELECTION.


num1 = p_dummy.
num2 = p_dummy1.

sum = num1 + num2.

WRITE : / sum.



&---------------------------------------------------------------------
*& Form show_pic
&---------------------------------------------------------------------
FORM show_pic.

DATA: repid LIKE sy-repid.

repid = sy-repid.


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.

ENDFORM. "show_pic 

<REMOVED BY MODERATOR>

venkat.

Edited by: Alvaro Tejada Galindo on Mar 3, 2008 1:46 PM

4 REPLIES 4
Read only

former_member194669
Active Contributor
0 Likes
595

I think you want to insert a logo in output of sap classical report? The classical report is text editor so you cannot.

Read only

Former Member
0 Likes
595

Hi Soni,

If you want to insert LOGO in classical eport will be not be possible but which is possible for ALV . It possible by OAER t-code...

Regards,

Kumar.

Read only

Former Member
0 Likes
596

hi,

IT IS POSSIBL USING OOPS CONCEPT GO FOR THIS CODE:--


REPORT y_pic_show .

DATA:
docking TYPE REF TO cl_gui_docking_container,
picture_control_1 TYPE REF TO cl_gui_picture,
url(256) TYPE c .
DATA : sum(4) , num1(4) , num2(4).
PARAMETERS: p_dummy(4) DEFAULT '4' .
PARAMETERS: p_dummy1(4) DEFAULT '5' .


AT SELECTION-SCREEN OUTPUT.



PERFORM show_pic.

START-OF-SELECTION.


num1 = p_dummy.
num2 = p_dummy1.

sum = num1 + num2.

WRITE : / sum.



&---------------------------------------------------------------------
*& Form show_pic
&---------------------------------------------------------------------
FORM show_pic.

DATA: repid LIKE sy-repid.

repid = sy-repid.


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.

ENDFORM. "show_pic 

<REMOVED BY MODERATOR>

venkat.

Edited by: Alvaro Tejada Galindo on Mar 3, 2008 1:46 PM

Read only

Former Member
0 Likes
595

its nt possible to have logo in classical report....