‎2009 Sep 29 10:43 AM
Hi All,
I am looking for replacement of function module WWW_GET_MIME_OBJECT that is obselete in ECC 6.0,below is the code used in 4.6,the value return from function module WWW_GET_MIME_OBJECT passes to another function module.I found a class 'CL_MIME_REPOSITORY_API ' but i don't know which method should i use and how to use that method so that my requirement could be fullfill.
CALL FUNCTION 'WWW_GET_MIME_OBJECT'
TABLES
query_string = lquerytable
html = lhtmltable
mime = lpicdata
CHANGING
return_code = lretcode
content_type = lconttype
content_length = lcontlength
EXCEPTIONS
invalid_table = 1
parameter_not_found = 2
OTHERS = 3.
CHECK sy-subrc = 0.
lpicsize = lcontlength.
CALL FUNCTION 'DP_CREATE_URL'
EXPORTING
type = 'IMAGE'
subtype = 'X-UNKNOWN'
size = lpicsize
lifetime = 'T'
TABLES
data = lpicdata
CHANGING
url = v_url
EXCEPTIONS
dp_invalid_parameter = 1
dp_error_put_table = 2
dp_error_general = 3
OTHERS = 4.
ENDFORM. " get_picture_data
Thanks
Mohit
‎2009 Sep 29 10:48 AM
‎2009 Sep 30 1:49 AM
I don't advise you to rewrite all the code which is made obsolete. It still works, no?
It's useless to try following perfectly SAP rules, because I'm sure you don't : especially, we should not use function modules "not released for customers". This is impossible, and at our own risk. So... keep using WWW_GET_MIME_OBJECT.
BUT if you have to create new code, then do not use this function module anymore of course, use CL_MIME_REPOSITORY_API (check the examples given in the forum).