Skip to Content
avatar image
Former Member

Image from archivelink in smartform

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 15, 2008 at 06:37 AM

    Hi,

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

    1) from standard programe RSTXLDMC

    2)SE78 Tcode

    Regards

    Jana

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 15, 2008 at 06:53 AM

    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

    Add comment
    10|10000 characters needed characters exceeded