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

Function module WWW_GET_MIME_OBJECT

Former Member
0 Likes
2,885

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

2 REPLIES 2
Read only

Former Member
0 Likes
1,843

Hi

Check This thread

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,843

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).