MIME Objekte (xstring) in SOLI Table format umwandeln

Beispiel wandelt xstrings mit MIME Objekten in SOLI format um.
LT_MIME_SOLI kann in SAP Office weiterverarbeitet werden.

Like it? Share it!
DATA: lo_mime_repository TYPE REF TO if_mr_api, lv_mime_xstring TYPE xstring, lv_mime_length TYPE i, lt_mime_soli TYPE soli_tab, lv_url TYPE string VALUE '/SAP/PUBLIC/BC/mymime.doc'. lo_mime_repository ?= cl_mime_repository_api=>get_api( ). CALL METHOD lo_mime_repository->get EXPORTING i_url = lv_url IMPORTING e_content = lv_mime_xstring. CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING buffer = lv_mime_xstring IMPORTING output_length = lv_mime_length TABLES binary_tab = lt_mime_soli.

>_ Author

>_ last updated 4 yearss ago

>_ Language: ABAP

MIME