cancel
Showing results for 
Search instead for 
Did you mean: 

how to upload logos in module pool programs?

Former Member
0 Kudos

hi frnds,

My requirement is to upload the logo in the module pool screen.Can any one explain in detail? its urgent.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ,

U can use cl_gui_html_viewer to upload the pictures .

create a custom_container and then assign the html_viewer

Simha_
Employee
Employee
0 Kudos

Hi,

Using OAER transaction we will upload the Logo's.

check the below demo's to implement them.

RSDEMO_PICTURE_CONTROL

sap_picture_demo_icon.

sap_picture_demo

Cheers,

SImha.

Former Member
0 Kudos

Hi,

First you need to upload using OAER or OAOR.

you need to have containers, and you need to use classes.

data: DG_DYNDOC_ID TYPE REF TO CL_DD_DOCUMENT.

using this method you can set background picture.

CALL METHOD DG_DYNDOC_ID->SET_DOCUMENT_BACKGROUND

EXPORTING

PICTURE_ID = DL_BACKGROUND_ID.

Here is the sample code

Create a screen

Place a custom container for the picture on the screen.

Name the container GO_PICTURE_CONTAINER.

Type pool for using SAP icons

TYPE-POOLS: icon.

Declarations

DATA:

go_picture TYPE REF TO cl_gui_picture,

go_picture_container TYPE REF TO cl_gui_custom_container.

MODULE status_0100 OUTPUT.

IF go_picture_container IS INITIAL.

Create obejcts for picture and container and

setup picture control

CREATE OBJECT go_picture_container

EXPORTING

container_name = 'PICTURE_CONTAINER'.

CREATE OBJECT go_picture

EXPORTING

parent = go_picture_container.

Set display mode (Stretching, original size etc.)

CALL METHOD go_picture->set_display_mode

EXPORTING

DISPLAY_MODE = CL_GUI_PICTURE=>display_mode_fit_center

EXCEPTIONS = 1.

Load picture from SAP Icons. To oad a picture from an URL use method

load_picture_from_url

CALL METHOD go_picture->load_picture_from_sap_icons

EXPORTING

icon = icon_delete

EXCEPTIONS error = 1.

ENDIF.

ENDMODULE. [/code]

check the below link.

http://www.sapgenie.com/abap/controls/picture.htm

Award points if helpful.

Regards,

Shiva KUmar