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: 

Image on the selection screen is also seen on the output

Former Member
0 Kudos

Hi all,

I have written a code to display an image on the selection screen but the image is getting printed on the output too.How to avoid it?

8 REPLIES 8

Former Member
0 Kudos

Hi,

I think you are not refreshing the variable where you are storing the image.Refresh it before displaying the output.

Former Member
0 Kudos

In Start-of-selection Before displaying Output you can REFRESH That image.

i think then it won't display image in the Output

0 Kudos

Hi,

Still I am able to see the image in output.

Any other suggestion?

0 Kudos

can you explain in detail ,Then we will come to know exact problem

0 Kudos

Please check this code.

<<copy&pasted_removed_by_moderator>>

Edited by: Vijay Babu Dudla on Apr 29, 2009 9:33 AM

0 Kudos

Hi,

This is my code, please check the code and tell me where I am going wrong.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.

PARAMETER : pr_path LIKE ibipparms-path.

SELECTION-SCREEN END OF BLOCK b1.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR pr_path.

PERFORM f002-f4_filename CHANGING pr_path.

AT SELECTION-SCREEN OUTPUT.

PERFORM show_pic.

REFRESH query_table.

START-OF-SELECTION.

REFRESH query_table.

PERFORM f003-upload_data .

FORM f002-f4_filename CHANGING p_pr_path.

.

.

.

ENDFORM. "f002-f4_filename

FORM f003-upload_data .

.

.

.

ENDFORM. "f003-upload_data

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 = 225

left = 005

top = 048

width = 947.

break-point.

IF url IS INITIAL.

REFRESH query_table.

query_table-name = '_OBJECT_ID'.

skip 5.

query_table-value = 'ZAUROSYS1'.

APPEND query_table.

CALL FUNCTION 'WWW_GET_MIME_OBJECT'

TABLES

query_string = query_table

html = html_table

mime = pic_data

CHANGING

return_code = return_code

content_type = content_type

content_length = content_length

EXCEPTIONS

object_not_found = 1

parameter_not_found = 2

OTHERS = 3.

CALL FUNCTION 'DP_CREATE_URL'

EXPORTING

type = 'image'

subtype = cndp_sap_tab_unknown

size = pic_size

lifetime = cndp_lifetime_transaction

TABLES

data = pic_data

CHANGING

url = url

EXCEPTIONS

OTHERS = 1.

ENDIF.

CALL METHOD picture_control_1->load_picture_from_url

EXPORTING

url = url.

endform.

Former Member
0 Kudos

solved by self

0 Kudos

Hi Vinil,

Can you please tell how did you resolve this problem since i am getting the same issue.

Your valuable help will be appreciated.