cancel
Showing results for 
Search instead for 
Did you mean: 

Add image from MIME repository (SE78) in ADOBE form (SFP)

Jay_Kamdar
Participant
0 Kudos

Dear Experts,

There is a requirement where i have to add an image in an existing Adobe form which is called by a driver program.

I have uploaded a bitmap black and white image in MIME repository named 'SEAL'.

After a lot of R & D , i have found out that

two variables of type string and xstring have to be created in the interface

and a graphic node of type graphic content has to be created in context  with a field from form interface and MIME type 'bmp'.

I have to create an image field object in the form.

I have following queries :

How to use the two variables ?

How to bind image field  and the variables  in the form?

What code is required and do i have to write it in code initialization or the driver program ?

I'm totally confused ;

A step by step solution will really be helpful.

Thanks in advance,

Accepted Solutions (0)

Answers (3)

Answers (3)

Jay_Kamdar
Participant
0 Kudos

Got it

One of my seniors helped me to solve the issue.

2 variables to be declared in interface - global data with types string and xstring,

a small code to be added in code initialization,

a graphic node to be added of type graphic content in the form context,

an image field created in the design view/master page of pdf form with binding,

Jay_Kamdar
Participant

seal_string 'image/bmp'.

DATA: lv_logoname1 TYPE TDOBNAME.

lv_logoname1 = 'VWSEAL'.




CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
EXPORTING
   p_object       = 'GRAPHICS'
   p_name         = lv_logoname1
   p_id           = 'BMAP'
   p_btype        = 'BMON'
   RECEIVING
   p_bmp          = seal_xstring
EXCEPTIONS
   not_found      = 1
   internal_error = 2
   OTHERS         = 3.

Former Member
0 Kudos

Hi Jay,

You can convert the image to string and in the adobe forms you can bind the string with the image. Go through this link , it is not the actual solution for your requirement but still you can have a look at how to bind the string with the image field in adobe forms.(Refer the 5th image).

Refer this thread too.

Regards

Anoop

Ryan-Crosby
Active Contributor
0 Kudos

Hi Jay,

If you use the 'Graphic Reference' option then it would be a lot less work to insert your graphic.  See the help link below describing the two options:

SAP Library - SAP Interactive Forms by Adobe

Regards,

Ryan Crosby

Jay_Kamdar
Participant
0 Kudos

Hi Ryan,

yep i agree but  through that method the image needs to reside on the client's file system or a web server which is not feasible for me in this case.

Ryan-Crosby
Active Contributor
0 Kudos

Hi Jay,

You could use a simple BSP wrapper application to serve up the image in this case.  I did a similar example for someone else a couple of months back and could serve an image that way.

Regards,

Ryan Crosby