Skip to Content
author's profile photo Former Member
Former Member

Access the photo with ArchiveLink to include in a smartform

We are trying to create an employee badge process within SAP. We have utilized ArchiveLink to store the employee photo, but we still need to find a way to access the photo and print it on a Smart Form. Has anyone had any experience with printing an image from archivelink on either a Smart Form or SAPscript form?

Best Regards,

António Oliveira

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 26, 2005 at 07:54 AM

    Me too. I also need to print it on smart form but still can not get any solution yet. anybody from SAP please sugest the solution I'd very appreciated

    Best regards

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 12, 2009 at 07:30 PM

    You can use the logic similar to below to retrieve the url of the image (we use IXOS aka Open Text).

    CALL FUNCTION 'HR_IMAGE_EXISTS'

    EXPORTING

    p_pernr = pernr

    p_begda = sy-datum

    p_endda = sy-datum

    IMPORTING

    p_exists = image_exists

    p_connect_info = image_info

    EXCEPTIONS

    error_connectiontable = 1

    OTHERS = 2.

    IF sy-subrc = 0.

    CALL FUNCTION 'ARCHIVOBJECT_GET_URI'

    EXPORTING

    objecttype = image_info-sap_object

    object_id = image_info-object_id

    TABLES

    uri_table = uri_tab

    EXCEPTIONS

    error_archiv = 1

    error_communicationtable = 2

    error_kernel = 3

    error_http = 4

    error_dp = 5

    OTHERS = 6.

    IF sy-subrc = 0.

    CLEAR edurl.

    LOOP AT uri_tab INTO wa_uri

    WHERE archiv_id = image_info-archiv_id

    AND ar_date = image_info-ar_date.

    edurl = wa_uri-uri.

    ENDLOOP.

    endif.

    endif.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.