cancel
Showing results for 
Search instead for 
Did you mean: 

Image from archivelink in smartform

luscruz
Participant
0 Kudos

Hi all,

How can i get an image stored on a content server (archivelink) into a smartform?

I'm using tcode OAAD to upload employee photos (to be available in PA20).

Now i need to create a smartform displaying the employee's photo.

Thanks,

Luis Cruz

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I'm using the Function ARCHIVOBJECT_GET_TABLE to retrieve PDF from the content server. It returns the data in Binary format. May be you can try this and once you have the binary data, transfer it to a file on the app server with a jpg, gif, jpeg extension and then retrieve that file from the app server and see if you are able to use it in your smartform.

The function accepts :


Exporting
   archiv_id                =   toaom-archiv_id
   document_type      =   toaom-doc_type
   archiv_doc_id         =   toa01-arc_doc_id
TABLES
   archivobject             = it_arcobj
   binarchivobject          = it_binarcobj

" Data definition for tables parameters is as follows
DATA : it_arcobj  TYPE TABLE OF docs,
       w_arcobj LIKE LINE OF it_arcobj.

DATA : it_binarcobj TYPE TABLE OF tbl1024,
       w_binarcobj LIKE LINE OF it_binarcobj.

Hope this helps.

regards,

Advait

luscruz
Participant
0 Kudos

Thanks all.

I manage to put the photo in a interactive form, since in smartforms looks like it's not possible.

Former Member
0 Kudos

Hi,

In My knowledeg smartform only access graphics or photos from only two ways

1) from standard programe RSTXLDMC

2)SE78 Tcode

Regards

Jana