09-22-2022 8:00 AM
Hi Everyone,
I have a requirement to upload mime image to SMARTFORM. Has anyone done that before?
09-22-2022 12:49 PM
Transaction code SE78: only BMP and TIFF (with specific formats, as discussed in the forum). "MIME image" doesn't mean anything concerning the type of image. Convert your image in BMP or TIFF (prefer BMP), upload via SE78, and refer to it in your Smart Form.
09-26-2022 7:40 AM
What i meant is , if i am storing bmp image in MIME repository in SE80, then how to use it in smartform.
Because the graphics visible in Smartform is only through SE78. And I don't want to upload manually as, image will be coming from third party and then will be stored in MIME repository using cl_mime_repository_api.
then how to read these images in Smartform, any idea ?
09-26-2022 8:12 AM
madhuri15borkar Thanks for clarification. Better edit your question so that everyone better understands, not only me.
09-26-2022 9:43 AM
You can store images in SE78 right before running a Smart Form, you can get these images from the MIME Repository or anywhere else.
09-26-2022 1:04 PM
Hi Sandra, Thanks for the response.
How can i store it in SE78 through coding ?
I tried using below code. I have stored it in MIME repository , I can see its available after uploading. but I am not able to read it on smartform and add under GRAPHICS window.
lv_url = cl_ssf_xsf_utilities=>mime_url_for_bds_graphic(
p_object = 'GRAPHICS'
p_name = 'ZTEST'
p_id = 'BMAP'
p_btype = 'BCOL'
).
Then calling method cl_mime_repository_api->put ( using above url).
Now , what code should I write to read above saved image in below G_LOGO variable.
09-26-2022 2:33 PM
You can get one part of this code: How to create a QR code and show it in a Smartform | SAP Blogs
09-26-2022 8:11 AM
So, as you say, your question is about an image in the MIME Repository (SE80):