Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

MIME image display in smartform ? Its normal to upload through Se78 requirement to display from MIME

0 Kudos

Hi Everyone,

I have a requirement to upload mime image to SMARTFORM. Has anyone done that before?

7 REPLIES 7

Sandra_Rossi
Active Contributor
0 Kudos

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.

0 Kudos

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 ?

0 Kudos

madhuri15borkar Thanks for clarification. Better edit your question so that everyone better understands, not only me.

0 Kudos

You can store images in SE78 right before running a Smart Form, you can get these images from the MIME Repository or anywhere else.

0 Kudos

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.

0 Kudos

Sandra_Rossi
Active Contributor

So, as you say, your question is about an image in the MIME Repository (SE80):

  • « 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 ? »