2009 May 07 8:20 AM
in module pool screen how i change screen background
2009 May 07 9:42 AM
Module Pool screen background cannot be changed ; its sap standard.
Anways you can the look and feel via custom layout (mostly last button on application tool bar )
Edited by: Manoj Gupta on May 7, 2009 10:42 AM
2009 May 07 10:08 AM
Check this code.
It is for selection-screen of report. Try it on PBO of the desired screen.
data: docking type ref to cl_gui_docking_container,
picture_control_1 type ref to cl_gui_picture,
url(256) type c .
data: query_table like w3query occurs 1 with header line,
html_table like w3html occurs 1,
return_code like w3param-ret_code,
content_type like w3param-cont_type,
content_length like w3param-cont_len,
pic_data like w3mime occurs 0,
pic_size type i.
* END OF DO NOT CHANGE*************************************
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.
*&-------------------------------------------------------------------
*& 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 = 1.
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 = 300
left = 400
top = 10
width = 600.
*CHANGE POSITION AND SIZE ABOVE***************************
if url is initial.
refresh query_table.
query_table-name = '_OBJECT_ID'.
*CHANGE IMAGE NAME BELOW UPLOADED IN SMW0******************
query_table-value = 'ZSCREEN'.
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.
if sy-subrc <> 0.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
* WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
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.
*Syntax for URL
*url = 'file://D:\corp-gbanerji\pickut\cartoon_184.gif'.
*url = 'http://l.yimg.com/a/i/ww/beta/y3.gif'.
endform. "show_pic
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |