Skip to Content
0
Former Member
May 17, 2010 at 05:41 PM

Problem with Logo in screen

53 Views

Hi Experts,

I am diplaying a logo in a screen and the logo don't appear. I do all the following steps :

u2022 Transaction code - SMW0

u2022 X - Binary data for WebRFC application

u2022 Hit Enter

u2022 Click Execute

u2022 Click Settings -> Maintain MIME types

u2022 Click the Create button

u2022 Fill in :- TYPE : image/gif EXTENSION : .GIF

u2022 Click Save

u2022 Click Back to the Binary data for WebRFC

u2022 Click Create

u2022 Fill in :- Obj. name : ZLOGO.GIF Description :

u2022 Company Logo

u2022 Click Import and specify the filename where your

u2022 GIF file is

u2022 located.File type is BIN. Finish press the

u2022 Transfer button.

u2022 If successful, your logo will be shown in the

u2022 Binary data for

u2022 WebRFC.

u2022 Transaction code SM30 - Table/View - SSM_CUST

u2022 Click Maintain

u2022 Click New Entries

u2022 Name Value to be set

u2022 START_IMAGE ZLOGO.GIF

u2022 RESIZE_IMAGE NO

u2022 Logoff and Login again

My code is :

IF container_pic IS INITIAL.

CREATE OBJECT container_pic

EXPORTING

container_name = 'CONT'

repid = 'ZFIN_SD750'

dynnr = '1100'

EXCEPTIONS

cntl_error = 1

cntl_system_error = 2

create_error = 3

lifetime_error = 4

lifetime_dynpro_dynpro_link = 5

OTHERS = 6.

IF sy-subrc <> 0.

MESSAGE i001(00) WITH 'Error while creating container'.

LEAVE LIST-PROCESSING.

ENDIF.

ENDIF.

IF picture IS INITIAL.

CREATE OBJECT picture

EXPORTING

parent = container_pic

EXCEPTIONS

error = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE i001(00) WITH 'Error while displaying picture'.

ENDIF.

ENDIF.

IF picture IS NOT INITIAL.

CALL FUNCTION 'DP_PUBLISH_WWW_URL'

EXPORTING

objid = 'ZLOGO.GIF'

lifetime = cndp_lifetime_transaction

IMPORTING

url = url

EXCEPTIONS

OTHERS = 1.

IF sy-subrc = 0.

CALL METHOD picture->load_picture_from_url_async

EXPORTING

url = url.

CALL METHOD picture->set_display_mode

EXPORTING

display_mode = cl_gui_picture=>display_mode_fit.

ELSE.

MESSAGE i001(00) WITH 'Error while load picture'.

LEAVE LIST-PROCESSING.

ENDIF.

ENDIF.

Can anyone help me with this?

Thanks,