cancel
Showing results for 
Search instead for 
Did you mean: 

Upload image to MIME Respository

Former Member
0 Kudos

Hi all,

I have a problem while uploading the image to the MIME repository with the following code:


ls_info-OBJID = '11111111111asd'.

mime_repository = cl_mime_repository_api=>get_api( ).

call method mime_repository->put( exporting

                                                            i_url                = '/SAP/BC/WEBDYNPRO/SAP/Y_UPLOAD_IMG_MIME_RESPO/IMG/0001.JPG'

                                                            i_content         = LS_NODE-DATA

                                                            I_NEW_LOIO   = LS_INFO ).


and it catch an Exception cx_sy_send_dynpro_no_receiver.

anybody know how to fix this?

Thank in advance.

Best regards.

SAM.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

it work on program (SE38). there is no error exception.
I think because it is a GUI functions, it can not use in Web DyPro Abap.

Former Member
0 Kudos

Thanks ! For helping us to improve no. of closed thread.

Answers (2)

Answers (2)

Former Member
0 Kudos

Problem solved.

Former Member
0 Kudos

please share the solution and mark that as correct ans.

Former Member
0 Kudos

Try this..

DATA: lr_mime_rep TYPE REF TO if_mr_api.

<Some code ....>

lr_mime_rep = cl_mime_repository_api=>if_mr_api~get_api( ).

lr_mime_rep->put(...........

..

).

For more info, Please search there is some thread already available for the same.