Skip to Content
author's profile photo
Former Member

Function/Method for getting MIME object by name ??

Hi all,

does anyone know of a function/method to get a mime from the mime repository

using the mime name as input instead of the mime id ?

Background:

I use html-fragments which are stored in the mime repository. Now I'd like to

extract this fragment into a string variable in a bsp page. Right now I use

the method 'cl_wb_mime_repository=>get_all_mimes' using the folder name

as input to get all mimes in that specific folder. Using the result I filter the

relevant mime out of the list to get the mime ID.

Unfortunately this method takes AGES, when there are lots of mimes in

that folder or subfolders.

Now I'm looking for a way to get the mime directly using the path and

name (without knowing the mime ID).

Does anyone know if this is possible or what method/function to use ?

Thanks a lot.

Stefan

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Posted on Feb 16, 2004 at 02:29 PM

    try the tables starting with smim* - maybe you should read directly from database...

    Regards Matthias

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Feb 16, 2004 at 02:34 PM

    or try report MR_CHECK_MIMES in my oppinion it provides all needful data

    for mime objects...

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Matthias,

      thanks for your help. I have finally found a function

      which does exactly what I was looking for:

      'SKWF_NMSPC_IO_FIND_BY_ADDRESS'

      Regards,

      Stefan