on 01-16-2014 4:17 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Problem solved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.