MIME object (excel file) to String
I would like to convert a mime object which is an excel file that i created in a bsp application to a string/xstring.
Let's say i named this mime-object "test.xls".
Does anyone has example code on how to retreive the object from the database and to convert it?
Martijn de Jong.
<removed by moderator>
Edited by: Durairaj Athavan Raja on Sep 5, 2008 1:40 PM
Durairaj Athavan Raja replied
data: lo_mr_api type ref to if_mr_api. data: i_url type string. i_url = '/SAP/BC/BSP/SAP/<your BSP app name>/test.xls' . call method cl_mime_repository_api=>if_mr_api~get_api receiving r_mr_api = lo_mr_api. call method lo_mr_api->get exporting i_url = i_url * I_CHECK_AUTHORITY = 'X' importing * e_is_folder = e_content = l_xstring e_mime_type = l_mimetype * E_LOIO = * CHANGING * C_LANGUAGE = exceptions parameter_missing = 1 error_occured = 2 not_found = 3 permission_failure = 4 others = 5.