Displaying MIME picture in Adobe Form


 Go to Tx- SE80 and here we have the MIME repository. We have a picture  along the path  ‘SAP/PUBLIC/BC/ABAP/ABDOC_DEEP_STRUCTURE_EN.GIF’

0

1

Go to Tx- SFP and create an interface.

2

Go to Global data.

3

Create two variables LOGO and MIME_TYPE.

4

Go to Code initialization and provide below code, which reads MIME picture from the MIME repository and prepares XSTRING data. Activate the interface and go back.


 

CALL METHOD CL_MIME_REPOSITORY_API=>IF_MR_API~GET_API
  RECEIVING
    R_MR_API DATA(LR_MR_API).    ” MIME REPOSITORY API

CALL METHOD LR_MR_API->GET
  EXPORTING
    I_URL ‘SAP/PUBLIC/BC/ABAP/ABDOC_DEEP_STRUCTURE_EN.GIF’    ” OBJECT URL
  IMPORTING
    E_CONTENT              =  LOGO        ” OBJECT CONTENTS
    E_MIME_TYPE            =  MIME_TYPE   ” MIME TYPE
  EXCEPTIONS
    PARAMETER_MISSING      1
    ERROR_OCCURED          2
    NOT_FOUND              3
    PERMISSION_FAILURE     4
    OTHERS                 5.


 

5

Create a form and assign the form interface.

6

7

Map the interface global data to the form content area. Additionally create one GRAPHIC field in the form content area  and choose Graphic_type as Graphic Content and assign the field and mime type. Go to Form Layout.

8

Drag&drop Image field to the page design view.

9

Make the binding.

10

Activate and test the form.

11

12

13

So here we have the form preview.

14


 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s