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

Doubt on upload image

Former Member
0 Likes
675

Hi All Experts,

When i am uploading the image in screen 1000 .

DropDown List is Not working.if i comment that image code the drop down list is working.

Can anyone help me.

Thanks in Advance.

lokesh

Hi All Experts,

When i am uploading the image in screen 1000 .

DropDown List is Not working.if i comment that image code the drop down list is working.

Can anyone help me.

Thanks in Advance.

lokesh

4 REPLIES 4
Read only

Former Member
0 Likes
637

Hi Lokesh,

Can u please eloborate what problem u r facing.

Read only

0 Likes
637

Hai Vaibhav

I created a modulepool screen,

In that screen i use one drop down list and one custom container to upload image in that.

here i got problem that is when i upload the image it is uploading at the same time the drop down list fields are not geting.if i comment the code of image then the drop down list fields are coming.

Read only

0 Likes
637

Hi Lokesh,

can u please send the code u have written.

Read only

0 Likes
637

HI Vaibhav

TYPES pict_line(256) TYPE c.

DATA :

container TYPE REF TO cl_gui_custom_container,

editor TYPE REF TO cl_gui_textedit,

picture TYPE REF TO cl_gui_picture,

pict_tab TYPE TABLE OF pict_line,

url(255) TYPE c.

IF init is initial.

  • init = 'X'.

CREATE OBJECT:

container EXPORTING container_name = 'PICTURE_CONTAINER',

picture EXPORTING parent = container.

IMPORT pict_tab = pict_tab FROM DATABASE abtree(pi) ID 'ENJOY'.

CALL FUNCTION 'DP_CREATE_URL'

EXPORTING

type = 'IMAGE'

subtype = 'GIF'

TABLES

data = pict_tab

CHANGING

url = url.

CALL METHOD picture->load_picture_from_url EXPORTING url = url.

CALL METHOD picture->set_display_mode

EXPORTING display_mode = picture->display_mode_fit_center.

ENDIF.

IF init is initial.

SELECT * FROM ZPRO_CAR.

values-text = ZPRO_CAR-CARNAME.

values-key = ZPRO_CAR-CARCODE.

APPEND values.

ENDSELECT.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = 'ZPRO_CAR-CARCODE'

values = values[]

EXCEPTIONS

id_illegal_name = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

endif.

ZPRO_CAR-CARNAME = 'LH'.

init = 'X'.