cancel
Showing results for 
Search instead for 
Did you mean: 

how to update image in adobe form

surendra_battula
Participant
0 Kudos

Good Day

I am trying to update image in adobeform. i used object library->image->and double clicked it and i got a popup and given the path. i got my image there

but when i am running my adobeform in url  I am unable to see the image on it.  is it  because the path is from my desktop.  there is no binding done with any field on the context of adobeform.. do i need to upload the image in se78 and then do binding....

pls help

Regards

Accepted Solutions (0)

Answers (3)

Answers (3)

Florian
Active Contributor
0 Kudos

hi surendra,

miguel nearly got the steps complete. There is one other option, you can click the checkbox "embedded" or something like that.

If you do this, your picture will be embedded into the xml-data of the form. So it is a fix picture.

It is only available at one of the fields. I think it is the "Image field" which contains this option.

Regards

Florian

0 Kudos
0 Kudos

hi, you dont ussualy need to bind the image or upload it on se78. Just

     create an image,

     put your pc image url,

     check the option witch says something like "incorporate image data",

     check the dimensioning properties,

     check the visible properties (visible).

did you do all the steps above?

Regards

Miguel

0 Kudos

hi battula,

1.upload the image in se78

2.Get the xstring of image by function module

data img_ x_string type  xstring.

data img_string type string.

CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
   EXPORTING
     p_object       = 'GRAPHICS'    " SAPscript Graphics Management: Application object
     p_name         'LOGO'   " Name of image
     p_id           'BMAP'   " SAPscript Graphics Management: ID
     p_btype        'BCOL'   " SAPscript: Type of graphic
   RECEIVING
    p_bmp          =    img_x_string.


and convert this xstring to string by function module


CALL FUNCTION 'SSFC_BASE64_ENCODE'
                 EXPORTING
                   bindata                        = V_FIELD
*                BINLENG                        = BINLENG
                IMPORTING
                  B64DATA                        img_string.
*               EXCEPTIONS
*                 SSF_KRN_ERROR                  = 1
*                 SSF_KRN_NOOP                   = 2
*                 SSF_KRN_NOMEMORY               = 3
*                 SSF_KRN_OPINV                  = 4
*                 SSF_KRN_INPUT_DATA_ERROR       = 5
*                 SSF_KRN_INVALID_PAR            = 6
*                 SSF_KRN_INVALID_PARLEN         = 7
*                 OTHERS                         = 8
                         .


3.bind the img_string to imageField in  adobe form ..

if you want to update image then update image in se78 keeping name same.

4.and write also javascript code

on initialization event of ImageField

this.access = "readOnly";

hope it will help.

regards

Jitendra..